X-Git-Url: https://git.grml.org/?p=grml-debootstrap.git;a=blobdiff_plain;f=grml-debootstrap;h=48f7c64fd1670d17f66fe1b55c501c5821dacd1b;hp=53f1e20fc208975d87f2cfdcff99cdcd6dc0f09c;hb=ee2a7490fd324489ab008239c0b8657e880df2db;hpb=abaa0ae3ce13b407e587d5ec5884695203e0bf7f diff --git a/grml-debootstrap b/grml-debootstrap index 53f1e20..48f7c64 100755 --- a/grml-debootstrap +++ b/grml-debootstrap @@ -576,6 +576,10 @@ set_target_directory(){ TUNE2FS='' FSCK='' GRUB='' + # make sure we normalise the path to an absolute directory name so something like: + # mkdir -p foo/a bar/a; (cd foo; grml-debootstrap -t a)&; (cd bar; grml-debootstrap -t a)&; wait + # works + TARGET="$(readlink -f $TARGET)" } if [ -b "$TARGET" ] ; then