Only set PARTITION=1 if target is a block device.
authorUlrich Dangel <uli@spamt.net>
Thu, 3 Dec 2009 21:06:57 +0000 (22:06 +0100)
committerUlrich Dangel <uli@spamt.net>
Thu, 3 Dec 2009 21:08:09 +0000 (22:08 +0100)
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 {{{