projects
/
grml-debootstrap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
762223a
)
Merge remote-tracking branch 'origin/pr/116'
author
Michael Prokop
<mika@grml.org>
Fri, 14 Dec 2018 15:30:06 +0000
(16:30 +0100)
committer
Michael Prokop
<mika@grml.org>
Fri, 14 Dec 2018 15:30:06 +0000
(16:30 +0100)
grml-debootstrap
patch
|
blob
|
history
diff --git
a/grml-debootstrap
b/grml-debootstrap
index
ab7c577
..
776825d
100755
(executable)
--- a/
grml-debootstrap
+++ b/
grml-debootstrap
@@
-1187,6
+1187,12
@@
set_target_directory(){
if [ -b "$TARGET" ] || [ -n "$VIRTUAL" ] ; then
PARTITION=1
else
+ # $TARGET was not detected as block device, but we do not want to create target directory in /dev/
+ if [[ $TARGET == "/dev/"* ]]; then
+ eerror "Error: Will not create target directory $TARGET in /dev."
+ eerror " Please check the partition(s) of the blockdevice."; eend 1
+ bailout 1
+ fi
set_target_directory
fi
# }}}