projects
/
grml-debootstrap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
818e52a
)
Only set PARTITION=1 if target is a block device.
author
Ulrich Dangel
<uli@spamt.net>
Thu, 3 Dec 2009 21:06:57 +0000
(22:06 +0100)
committer
Ulrich Dangel
<uli@spamt.net>
Thu, 3 Dec 2009 21:08:09 +0000
(22:08 +0100)
grml-debootstrap
patch
|
blob
|
history
diff --git
a/grml-debootstrap
b/grml-debootstrap
index
83ae0d3
..
0409092
100755
(executable)
--- a/
grml-debootstrap
+++ b/
grml-debootstrap
@@
-576,13
+576,11
@@
set_target_directory(){
GRUB=''
}
-case $TARGET in
- /dev/shm/*) set_target_directory ;;
- /dev/*)
+if [ -b "$TARGET" ] ; then
PARTITION=1
- ;;
- *) set_target_directory ;;
-esac
+else
+ set_target_directory
+fi
# }}}
# architecture setup {{{