From: S.Çağlar Onur Date: Fri, 7 Jan 2011 20:10:13 +0000 (-0500) Subject: add --allow-missing parameter to support different kernel configs X-Git-Tag: bootmanager-4.3-20~1 X-Git-Url: http://git.onelab.eu/?p=bootmanager.git;a=commitdiff_plain;h=2eaef641f28551681c27f7990949352f6cbfeda9 add --allow-missing parameter to support different kernel configs --- diff --git a/source/steps/MakeInitrd.py b/source/steps/MakeInitrd.py index 576a679..42ccf87 100644 --- a/source/steps/MakeInitrd.py +++ b/source/steps/MakeInitrd.py @@ -75,7 +75,7 @@ def Run( vars, log ): # hack for CentOS 5.3 bypassRaidIfNeeded(SYSIMG_PATH) if kernelHasMkinitrd() == True: - utils.sysexec_chroot( SYSIMG_PATH, "mkinitrd -v /boot/initrd-%s.img %s" % \ + utils.sysexec_chroot( SYSIMG_PATH, "mkinitrd -v --allow-missing /boot/initrd-%s.img %s" % \ (kernel_version, kernel_version), log ) else: shutil.copy("./mkinitrd.sh","%s/tmp/mkinitrd.sh" % SYSIMG_PATH)