From 52f78c5449305921d71abc5b83381f06e3e35ade Mon Sep 17 00:00:00 2001 From: daniceexi Date: Tue, 10 Mar 2015 01:25:11 -0400 Subject: [PATCH] defect 4586: copy /proc/cpuinfo from host node to rootimage --- xCAT-server/share/xcat/netboot/ubuntu/genimage | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xCAT-server/share/xcat/netboot/ubuntu/genimage b/xCAT-server/share/xcat/netboot/ubuntu/genimage index 7dc708701..a2cdc9cd6 100755 --- a/xCAT-server/share/xcat/netboot/ubuntu/genimage +++ b/xCAT-server/share/xcat/netboot/ubuntu/genimage @@ -320,6 +320,10 @@ unless ($onlyinitrd) { print "Error: cannnot create bootstraps for rootimage. Make sure you specified full http mirror path.\n"; exit 1; } + + # Since kernel-image package needs the /proc/cpuinfo file to validate the cpu type, + # copy the /proc/cpuinfo from host node + copy("/proc/cpuinfo", "$rootimg_dir/proc/cpuinfo"); # Prepare the installation mirror for the package install print("Mount /proc, /dev, /sys, pkgdir and otherpkgdir to the rootimg.\n");