From: S.Çağlar Onur <caglar@cs.princeton.edu>
Date: Tue, 7 Dec 2010 22:36:52 +0000 (-0500)
Subject: add --allow-missing parameter to support different kernel configs
X-Git-Tag: bootmanager-5.0-13~1
X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=a4455d364061831f242c7d491d1eaa71a7d811ed;p=bootmanager.git

add --allow-missing parameter to support different kernel configs
---

diff --git a/source/steps/MakeInitrd.py b/source/steps/MakeInitrd.py
index b4a8917..4b63bac 100644
--- a/source/steps/MakeInitrd.py
+++ b/source/steps/MakeInitrd.py
@@ -67,7 +67,7 @@ def Run( vars, log ):
 
     # hack for CentOS 5.3
     bypassRaidIfNeeded(SYSIMG_PATH)
-    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 )
 
     utils.sysexec_noerr("umount %s/sys" % SYSIMG_PATH)