Improve adjustment of suite for $FAI_DEBOOTSTRAP
authorMichael Prokop <devnull@localhost>
Sun, 7 Oct 2007 11:02:18 +0000 (13:02 +0200)
committerMichael Prokop <devnull@localhost>
Sun, 7 Oct 2007 11:02:18 +0000 (13:02 +0200)
debian/changelog
grml-live

index 873f8ed..539c197 100644 (file)
@@ -26,6 +26,7 @@ grml-live (0.0.4) unstable; urgency=low
   * Use iceweasel/firefox as x-www-browser and w3m as www-browser (if
     available). 
   * Check for presence of the initrd.
+  * Improve adjustment of suite for $FAI_DEBOOTSTRAP.
 
  -- Michael Prokop <mika@grml.org>  Thu, 04 Oct 2007 22:16:34 +0200
 
index 0ad0e75..36359b0 100755 (executable)
--- a/grml-live
+++ b/grml-live
@@ -242,9 +242,8 @@ if [ -n "$SUITE" ] ; then
    sed -i "s/\(deb .\+\)\([ \t]+\)$DIST\([ \t]+\)\(main \)/\1\2 $SUITE \3\4/" $LIVE_CONF
    sed -i "s/\(deb .\+\)\([ \t]+\)$DIST\([ \t]+\)\(main \)/\1\2 $SUITE \3\4/" /etc/grml/fai/apt/sources.list
 
-   DIST='\"etch\|=\"stable=\"lenny=\"testing=\"sid=\"unstable'
-   sed -i "s#FAI_DEBOOTSTRAP=$DIST#FAI_DEBOOTSTRAP=\"$SUITE#" $LIVE_CONF
-   sed -i "s#FAI_DEBOOTSTRAP=$DIST#FAI_DEBOOTSTRAP=\"$SUITE#" /etc/grml/fai/make-fai-nfsroot.conf
+   sed -i "s|FAI_DEBOOTSTRAP=\"[a-z]* |FAI_DEBOOTSTRAP=\"$SUITE |" $LIVE_CONF
+   sed -i "s|FAI_DEBOOTSTRAP=\"[a-z]* |FAI_DEBOOTSTRAP=\"$SUITE |" /etc/grml/fai/make-fai-nfsroot.conf
 fi
 # }}}