From 2eaef641f28551681c27f7990949352f6cbfeda9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=2E=C3=87a=C4=9Flar=20Onur?= Date: Fri, 7 Jan 2011 15:10:13 -0500 Subject: [PATCH] add --allow-missing parameter to support different kernel configs --- source/steps/MakeInitrd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.43.0