defect 4586: copy /proc/cpuinfo from host node to rootimage

This commit is contained in:
daniceexi 2015-03-10 01:25:11 -04:00
parent 85f758bd0d
commit 52f78c5449

View File

@ -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");