X-Git-Url: https://git.grml.org/?p=grml-debootstrap.git;a=blobdiff_plain;f=grml-debootstrap;h=7edc29b31fe259831dd95a5e6dbbc662d4df82bd;hp=53f1e20fc208975d87f2cfdcff99cdcd6dc0f09c;hb=190788f7894ad368ea24d27b8acc2cef7db692d4;hpb=22e306074e919b92cbf50939112ac69e98c13a27 diff --git a/grml-debootstrap b/grml-debootstrap index 53f1e20..7edc29b 100755 --- a/grml-debootstrap +++ b/grml-debootstrap @@ -11,7 +11,7 @@ set -e # exit on any error # variables {{{ PN="$(basename $0)" -VERSION='0.33-pre1' +VERSION='0.33' MNTPOINT="/mnt/debootstrap.$$" # inside the chroot system locales might not be available, so use minimum: @@ -57,15 +57,15 @@ Configuration options: /etc/debootstrap/config -d, --confdir Place of config files for debootstrap, defaults to /etc/debootstrap - --packages Install packages defined in specified list file. - --debconf Pre-seed packages using specified pre-seed db file. + --packages[=] Install packages defined in specified list file. + --debconf[=] Pre-seed packages using specified pre-seed db file. --keep_src_list Do not overwrite user provided apt sources.list. --hostname Hostname of Debian system. --password Use specified password as password for user root. --bootappend Add specified appendline to kernel whilst booting. --chroot-scripts Execute chroot scripts from specified directory. - --pre-scripts Execute scripts from specified directory (before chroot-scripts). - --scripts Execute scripts from specified directory (after chroot-scripts). + --pre-scripts[=] Execute scripts from specified directory (before chroot-scripts). + --scripts[=] Execute scripts from specified directory (after chroot-scripts). Other options: @@ -237,7 +237,7 @@ prompt_for_bootmanager() MBRDISK=$(readlink -f $MBRDISK) else # fall back to old behaviour - MBRDISK=$(echo ${TARGET} | sed -e 's/[0-9][0-9]*$/') + MBRDISK=$(echo ${TARGET} | sed -e 's/[0-9][0-9]*$//') fi MBRPART="MBR of $MBRDISK" @@ -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