X-Git-Url: https://git.grml.org/?p=grml-debootstrap.git;a=blobdiff_plain;f=grml-debootstrap;h=a82a8536dccdafbb585ce41642d1a0270136cb27;hp=c8075d811109bd56de7fe9cbd27747db84cd669a;hb=2d9ca17693a4521b5aaadb090586b816152d1505;hpb=27b5b46a512f5131d99917846857eb8fcae2bc96 diff --git a/grml-debootstrap b/grml-debootstrap index c8075d8..a82a853 100755 --- a/grml-debootstrap +++ b/grml-debootstrap @@ -11,7 +11,7 @@ set -e # exit on any error # variables {{{ PN="$(basename $0)" -VERSION='0.32' +VERSION='0.33-pre1' MNTPOINT="/mnt/debootstrap.$$" # inside the chroot system locales might not be available, so use minimum: @@ -163,6 +163,21 @@ fi } # }}} +# backwards compability checks {{{ +if [ -n "$GROOT" ] ; then + echo "Error: you seem to have \$GROOT configured." >&2 + echo "This variable is no longer supported, please visit the" >&2 + echo "grml-debootstrap documentation for details." >&2 + exit 1 +fi + +if echo "$GRUB" | grep -q '^hd' ; then + echo "Error: this syntax for the grub configuration variable is no longer supported." >&2 + echo "Please do not use hd... any longer but /dev/sdX instead." >&2 + exit 1 +fi +# }}} + # welcome screen {{{ welcome_dialog() { @@ -237,7 +252,6 @@ prompt_for_bootmanager() GETMBR=$(dialog --stdout --title "$PN" --default-item mbr \ --menu "Where do you want to install the bootmanager grub?" 0 0 0 \ mbr "install bootmanager into $MBRPART" \ - partition "install bootmanager into partition $TARGET" \ nowhere "do not install bootmanager at all" \ ${ADDITIONAL_PARAMS}) [ $? -eq 0 ] || bailout 3 @@ -257,9 +271,6 @@ prompt_for_bootmanager() GRUB="$MBRDISK" fi ;; - partition) - GRUB="$TARGET" - ;; hda) GRUB="/dev/hda" ;;