Menu

#4189 [DEV] "ubuntu14.04-x86_64-netboot-compute" provision complains "/tmp/updateflag: line 4: nc: command not found"

2.8.5
pending
yangsong
linux provisioning
5
2014-07-05
2014-07-05
yangsong
No

During provisioning of"ubuntu14.04-x86_64-netboot-compute", found the following error message:
Lease of 10.1.5.187 obtained, lease time 43200
deleting routers
route: SIOCDELRT: No such process
adding dns 10.1.5.185
inet addr:10.1.5.187 Bcast:10.1.255.255 Mask:255.255.0.0
/tmp/updateflag: line 4: nc: command not found
Getting http://10.1.5.185//install/netboot/ubuntu14.04/x86_64/compute/rootimg.gz...
Connecting to 10.1.5.185 (10.1.5.185:80)

Discussion

  • yangsong

    yangsong - 2014-07-05
    • status: open --> pending
     
  • yangsong

    yangsong - 2014-07-05

    fixed in 2.8.5:
    commit a504b0f45bb5af7354da22944c5f083f910f9ff4
    Author: immarvin yangsbj@cn.ibm.com
    Date: Fri Jul 4 23:32:01 2014 -0700

    fix defect #4189 [DEV] ubuntu14.04-x86_64-netboot-compute provision complains (/tmp/updateflag: line 4: nc: command not found) and defect #4188 [DEV]2 warning message during genimage ubuntu14.04-x86_64-netboot-compute

    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

    fix defect #4189 [DEV] ubuntu14.04-x86_64-netboot-compute provision complains (/tmp/updateflag: line 4: nc: command not found) and defect #4188 [DEV]2 warning message during genimage ubuntu14.04-x86_64-netboot-compute

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

     
MongoDB Logo MongoDB