From ecdab0450adbba4a475979cca7bce3807b5ab908 Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Wed, 28 Oct 2009 23:44:11 +0100 Subject: [PATCH] Add backwards compability checks and NEWS file --- cmdlineopts.clp | 5 +---- debian/NEWS | 15 +++++++++++++++ grml-debootstrap | 15 +++++++++++++++ 3 files changed, 31 insertions(+), 4 deletions(-) create mode 100644 debian/NEWS diff --git a/cmdlineopts.clp b/cmdlineopts.clp index 39f7e68..acb9489 100644 --- a/cmdlineopts.clp +++ b/cmdlineopts.clp @@ -13,7 +13,7 @@ ################################################################################ _opt_temp=`getopt --name grml-debootstrap -o +m:i:r:t:p:c:d:vhV --long \ - mirror:,iso:,release:,target:,mntpoint:,debopt:,interactive,nodebootstrap,config:,confdir:,packages::,chroot-scripts::,scripts::,debconf::,keep_src_list,hostname:,password:,bootappend:,groot:,grub:,arch:,verbose,help,version \ + mirror:,iso:,release:,target:,mntpoint:,debopt:,interactive,nodebootstrap,config:,confdir:,packages::,chroot-scripts::,scripts::,debconf::,keep_src_list,hostname:,password:,bootappend:,grub:,arch:,verbose,help,version \ -- "$@"` if [ $? != 0 ]; then eerror "Try 'grml-debootstrap --help' for more information."; eend 1; exit 1 @@ -88,9 +88,6 @@ while :; do --bootappend) # Add specified appendline to kernel whilst booting shift; _opt_bootappend="$1" ;; - --groot) # Root device for usage in grub, corresponds with $TARGET in grub - shift; _opt_groot="$1" - ;; --grub) # Target for grub installation. Use grub syntax for specifying shift; _opt_grub="$1" ;; diff --git a/debian/NEWS b/debian/NEWS new file mode 100644 index 0000000..460be23 --- /dev/null +++ b/debian/NEWS @@ -0,0 +1,15 @@ +grml-debootstrap (0.32) unstable; urgency=low + + * Starting with this release support for the Debian/etch release + does not exist any longer. + + * Starting with this release grml-debootstrap uses Grub2 + instead of Grub-legacy (v1). + + * To simplify handling for the user the configuration variable + GROOT was dropped and the syntax of GRUB slightly changed. + Instead of the old grub syntax style 'hd0' you can use + '/dev/sdX' for $GRUB nowadays. You don't have to care about + that if you are using the interactive mode. + + -- Michael Prokop Wed, 28 Oct 2009 23:39:19 +0100 diff --git a/grml-debootstrap b/grml-debootstrap index c8075d8..40480d2 100755 --- a/grml-debootstrap +++ b/grml-debootstrap @@ -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() { -- 2.1.4