fix initrd stuff for sarge
authorMichael Prokop <mika@grml.org>
Fri, 3 Nov 2006 22:49:14 +0000 (23:49 +0100)
committerMichael Prokop <mika@grml.org>
Fri, 3 Nov 2006 22:49:14 +0000 (23:49 +0100)
TODO
chroot-script
config

diff --git a/TODO b/TODO
index aa0b712..c89a0dc 100644 (file)
--- a/TODO
+++ b/TODO
@@ -5,6 +5,7 @@ TODO list for grml-debootstrap
 * support automatic installation of grml core packages
 * support bootoption debian2hd for installation through bootoption
 * support *full* automatic installation where not a single keypress is necessary
 * support automatic installation of grml core packages
 * support bootoption debian2hd for installation through bootoption
 * support *full* automatic installation where not a single keypress is necessary
+* should we support mkinitrd for initrd creation in sarge?
 
 Test matrix
 -----------
 
 Test matrix
 -----------
index 4142beb..7192cdc 100644 (file)
@@ -131,6 +131,10 @@ KERNELVER=${KERNELIMG#/boot/vmlinuz-}
 
 # generate initrd
 if [ -n "$INITRD" ] ; then
 
 # generate initrd
 if [ -n "$INITRD" ] ; then
+   if [ "$RELEASE" = 'sarge' ] ; then
+      einfo "Release sarge detected, will not create an initrd."
+      return 0
+   fi
    echo "Generating initrd."
    update-initramfs -c -t -k $KERNELVER
    if [ -f "/boot/initrd.img-$KERNELVER" ] ; then
    echo "Generating initrd."
    update-initramfs -c -t -k $KERNELVER
    if [ -f "/boot/initrd.img-$KERNELVER" ] ; then
diff --git a/config b/config
index f710c54..ed85370 100644 (file)
--- a/config
+++ b/config
@@ -81,6 +81,7 @@ LOCALES='yes'
 TIMEZONE='Europe/Vienna'
 
 # generate initrd via update-initramfs?
 TIMEZONE='Europe/Vienna'
 
 # generate initrd via update-initramfs?
+# notice: won't do anything when release is sarge as update-initramfs does not exist there
 INITRD='yes'
 
 ## END OF FILE #################################################################
 INITRD='yes'
 
 ## END OF FILE #################################################################