einfo "Bootoption debian2hd found. Setting up environment for automatic installation via grml-debootstrap." ; eend 0
if ! [ -x /usr/sbin/grml-debootstrap ] ; then
einfo "Bootoption debian2hd found. Setting up environment for automatic installation via grml-debootstrap." ; eend 0
if ! [ -x /usr/sbin/grml-debootstrap ] ; then
# notice: the following checks whether the given partition is available, if not the skip
# execution of grml-debootstrap as it might result in data loss...
# notice: the following checks whether the given partition is available, if not the skip
# execution of grml-debootstrap as it might result in data loss...
- if ! [ -r $PARTITION ] ; then
- eerror "Partition $PARTITION does not exist. Skipping execution of grml-debootstrap therefore." ; eend 1
+ if ! [ -r "$TARGET" ] ; then
+ eerror "Target $TARGET does not exist. Skipping execution of grml-debootstrap therefore." ; eend 1
fi
[ -n "$GRUB" ] && GRUBCMD="--grub $GRUB" || GRUBCMD=''
[ -n "$GROOT" ] && GROOTCMD="--groot $GROOT" || GROOTCMD=''
[ -n "$RELEASE" ] && RELEASECMD="--release $RELEASE" || RELEASECMD=''
[ -n "$MIRROR" ] && MIRRORCMD="--mirror $MIRROR" || MIRRORCMD=''
fi
[ -n "$GRUB" ] && GRUBCMD="--grub $GRUB" || GRUBCMD=''
[ -n "$GROOT" ] && GROOTCMD="--groot $GROOT" || GROOTCMD=''
[ -n "$RELEASE" ] && RELEASECMD="--release $RELEASE" || RELEASECMD=''
[ -n "$MIRROR" ] && MIRRORCMD="--mirror $MIRROR" || MIRRORCMD=''