X-Git-Url: https://git.grml.org/?p=grml-debootstrap.git;a=blobdiff_plain;f=grml-debootstrap;h=776825d4548d74bcc14180041cc5d561b8592a6c;hp=ab7c577439963bdc5ad1a2691183f3caa682c63d;hb=65c84c8b75ff4ce1abfdda8b1909f3ace4091aa4;hpb=2cba71c7ac06006c75c1f2157f529d2efd89ea42 diff --git a/grml-debootstrap b/grml-debootstrap index ab7c577..776825d 100755 --- 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 # }}}