From 3aa73011a14ca04e2ba24ff18783c15ffe6f21f1 Mon Sep 17 00:00:00 2001 From: Patrick Schleizer Date: Sat, 29 Nov 2014 16:23:02 +0000 Subject: [PATCH 1/1] Break when using unsupported generic codenames "stable" or "testing" Fixes #37 (GH-37, PR 43) --- grml-debootstrap | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/grml-debootstrap b/grml-debootstrap index 7a71239..a97f5ec 100755 --- a/grml-debootstrap +++ b/grml-debootstrap @@ -821,6 +821,14 @@ if [ "$CURRENT_ARCH" != "x86_64" ] ; then fi # }}} +# Support for generic release codenames is unavailable. {{{ +if [ "$RELEASE" = "stable" ] || [ "$RELEASE" = "testing" ] ; then + eerror "Generic release codenames (stable, testing) are unsupported. \ +Please use specific codenames such as lenny, squeeze, wheezy or jessie." ; eend 1 + bailout 1 +fi +# }}} + checkconfiguration # finally make sure at least $TARGET is set [the partition for the new system] {{{ -- 2.1.4