Only set PARTITION=1 if target is a block device.
[grml-debootstrap.git] / grml-debootstrap
index 83ae0d3..0409092 100755 (executable)
@@ -576,13 +576,11 @@ set_target_directory(){
     GRUB=''
 }
 
     GRUB=''
 }
 
-case $TARGET in
-  /dev/shm/*) set_target_directory ;;
-  /dev/*)
+if [ -b "$TARGET" ] ; then
     PARTITION=1
     PARTITION=1
-    ;;
-  *) set_target_directory ;;
-esac
+else
+    set_target_directory
+fi
 # }}}
 
 # architecture setup {{{
 # }}}
 
 # architecture setup {{{