Add backwards compability checks and NEWS file v0.32
authorMichael Prokop <mika@grml.org>
Wed, 28 Oct 2009 22:44:11 +0000 (23:44 +0100)
committerMichael Prokop <mika@grml.org>
Wed, 28 Oct 2009 23:52:55 +0000 (00:52 +0100)
cmdlineopts.clp
debian/NEWS [new file with mode: 0644]
grml-debootstrap

index 39f7e68..acb9489 100644 (file)
@@ -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 (file)
index 0000000..460be23
--- /dev/null
@@ -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 <mika@grml.org>  Wed, 28 Oct 2009 23:39:19 +0100
index c8075d8..40480d2 100755 (executable)
@@ -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()
 {