on ubuntu14.04 MN, "genimage ubuntu14.04-x86_64-netboot-compute" throw out 2 warnings:
...
depmod: WARNING: could not open /lib/modules/3.13.0-24-generic/modules.order: No such file or directory
depmod: WARNING: could not open /lib/modules/3.13.0-24-generic/modules.builtin: No such file or directory
162775 blocks
chroot /tmp/xcatinitrd.19166/ depmod 3.13.0-24-generic xxx
depmod: WARNING: could not open /lib/modules/3.13.0-24-generic/modules.order: No such file or directory
depmod: WARNING: could not open /lib/modules/3.13.0-24-generic/modules.builtin: No such file or directory
162774 blocks
...
fixed in 2.8.5:
commit a504b0f45bb5af7354da22944c5f083f910f9ff4
Author: immarvin yangsbj@cn.ibm.com
Date: Fri Jul 4 23:32:01 2014 -0700
diff --git a/xCAT-server/share/xcat/netboot/ubuntu/genimage b/xCAT-server/share/xcat/netboot/ubuntu/genimage
index 4b2868e..9341d7f 100755
--- a/xCAT-server/share/xcat/netboot/ubuntu/genimage
+++ b/xCAT-server/share/xcat/netboot/ubuntu/genimage
@@ -99,6 +99,7 @@ if (@ARGV > 0) {
$imagename=$ARGV[0];
}
+
my %updates_os = (); # the hash for updating osimage table
my %updates = (); # the hash for updating linuximage table
@@ -787,7 +788,6 @@ sub mkinitrd_dracut {
sub mkinitrd {
my ($mode) = @_; # statelite or stateless
-
if($mode eq "statelite") {
push @ndrivers, "fscache.ko";
push @ndrivers, "sunrpc.ko";
@@ -1438,6 +1438,12 @@ EOMS
if ( -d "$rootimg_dir/lib/firmware/" ){
system("cp -r $rootimg_dir/lib/firmware/* /tmp/xcatinitrd.$$/lib/firmware");
}
+
+ if ( -d "$rootimg_dir/lib/modules/$kernelver/" ){
+ system("cp $rootimg_dir/lib/modules/$kernelver/modules.builtin /tmp/xcatinitrd.$$/lib/modules/$kernelver/modules.builtin");
+ system("cp $rootimg_dir/lib/modules/$kernelver/modules.order /tmp/xcatinitrd.$$/lib/modules/$kernelver/modules.order");
+ }
+
system("chroot /tmp/xcatinitrd.$$/ depmod $kernelver");
# Copy udev and network scripts into initrd for s390x, which also works for other platforms
# udev
@@ -1464,6 +1470,7 @@ EOMS
symlink("busybox", "/tmp/xcatinitrd.$$/sbin/ifconfig");
symlink("busybox", "/tmp/xcatinitrd.$$/bin/hostname");
symlink("busybox", "/tmp/xcatinitrd.$$/bin/route");
+ symlink("busybox", "/tmp/xcatinitrd.$$/bin/nc");
symlink("bash", "/tmp/xcatinitrd.$$/bin/sh");
symlink("bash", "/tmp/xcatinitrd.$$/sbin/sh");
fixed in 2.9:
commit b5ff0604a24023aa84503947fb9dd3ba4c9d08c7
Author: immarvin yangsbj@cn.ibm.com
Date: Fri Jul 4 23:32:01 2014 -0700
diff --git a/xCAT-server/share/xcat/netboot/ubuntu/genimage b/xCAT-server/share/xcat/netboot/ubuntu/genimage
index 2ba3287..204b3fc 100755
--- a/xCAT-server/share/xcat/netboot/ubuntu/genimage
+++ b/xCAT-server/share/xcat/netboot/ubuntu/genimage
@@ -99,6 +99,7 @@ if (@ARGV > 0) {
$imagename=$ARGV[0];
}
+
my %updates_os = (); # the hash for updating osimage table
my %updates = (); # the hash for updating linuximage table
@@ -793,7 +794,6 @@ sub mkinitrd_dracut {
sub mkinitrd {
my ($mode) = @_; # statelite or stateless
-
if($mode eq "statelite") {
push @ndrivers, "fscache.ko";
push @ndrivers, "sunrpc.ko";
@@ -1444,6 +1444,12 @@ EOMS
if ( -d "$rootimg_dir/lib/firmware/" ){
system("cp -r $rootimg_dir/lib/firmware/* /tmp/xcatinitrd.$$/lib/firmware");
}
+
+ if ( -d "$rootimg_dir/lib/modules/$kernelver/" ){
+ system("cp $rootimg_dir/lib/modules/$kernelver/modules.builtin /tmp/xcatinitrd.$$/lib/modules/$kernelver/modules.builtin");
+ system("cp $rootimg_dir/lib/modules/$kernelver/modules.order /tmp/xcatinitrd.$$/lib/modules/$kernelver/modules.order");
+ }
+
system("chroot /tmp/xcatinitrd.$$/ depmod $kernelver");
# Copy udev and network scripts into initrd for s390x, which also works for other platforms
# udev
@@ -1470,6 +1476,7 @@ EOMS
symlink("busybox", "/tmp/xcatinitrd.$$/sbin/ifconfig");
symlink("busybox", "/tmp/xcatinitrd.$$/bin/hostname");
symlink("busybox", "/tmp/xcatinitrd.$$/bin/route");
+ symlink("busybox", "/tmp/xcatinitrd.$$/bin/nc");
symlink("bash", "/tmp/xcatinitrd.$$/bin/sh");
symlink("bash", "/tmp/xcatinitrd.$$/sbin/sh");