handle /dev/shm/* as directory, not as an mountpoint
authorMichael Gebetsroither <michael@mgeb.org>
Thu, 3 Dec 2009 17:10:22 +0000 (18:10 +0100)
committerMichael Gebetsroither <michael@mgeb.org>
Thu, 3 Dec 2009 17:23:10 +0000 (18:23 +0100)
grml-debootstrap

index 7434527..2544c85 100755 (executable)
@@ -566,11 +566,7 @@ fi
 PARTITION=''
 DIRECTORY=''
 
 PARTITION=''
 DIRECTORY=''
 
-case $TARGET in
-  /dev/*)
-    PARTITION=1
-    ;;
-  *)
+set_target_directory(){
     # assume we are installing into a directory, don't run mkfs and grub related stuff therefore
     DIRECTORY=1
     MNTPOINT="$TARGET"
     # assume we are installing into a directory, don't run mkfs and grub related stuff therefore
     DIRECTORY=1
     MNTPOINT="$TARGET"
@@ -578,7 +574,14 @@ case $TARGET in
     TUNE2FS=''
     FSCK=''
     GRUB=''
     TUNE2FS=''
     FSCK=''
     GRUB=''
+}
+
+case $TARGET in
+  /dev/shm/*) set_target_directory ;;
+  /dev/*)
+    PARTITION=1
     ;;
     ;;
+  *) set_target_directory ;;
 esac
 # }}}
 
 esac
 # }}}