From 8dea21b6c1ac6ffc020d84057950548bbb95ea36 Mon Sep 17 00:00:00 2001 From: immarvin Date: Fri, 28 Aug 2015 03:00:19 -0400 Subject: [PATCH] remove some code commented out --- xCAT-server/share/xcat/netboot/ubuntu/genimage | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/xCAT-server/share/xcat/netboot/ubuntu/genimage b/xCAT-server/share/xcat/netboot/ubuntu/genimage index 7ab1679d0..dd880ad36 100755 --- a/xCAT-server/share/xcat/netboot/ubuntu/genimage +++ b/xCAT-server/share/xcat/netboot/ubuntu/genimage @@ -1624,9 +1624,6 @@ EOMS } -# if (-d "$rootimg_dir/lib/powerpc64le-linux-gnu/"){ -# system("cp -rf $rootimg_dir/lib/powerpc64le-linux-gnu/* /tmp/xcatinitrd.$$/lib/powerpc64le-linux-gnu/"); -# } system("chroot /tmp/xcatinitrd.$$/ depmod $kernelver"); # Copy udev and network scripts into initrd for s390x, which also works for other platforms @@ -1639,16 +1636,6 @@ EOMS system("cp -r /proc/self/oom_adj /tmp/xcatinitrd.$$/proc/self"); # Network related scripts - #system("echo $kernelver\n"); - #system("mkdir -p /tmp/xcatinitrd.$$/sbin"); - #system("cp -r $rootimg_dir/sbin/* /tmp/xcatinitrd.$$/sbin"); - #system("mkdir -p /tmp/xcatinitrd.$$/lib/modules/$kernelver"); - #system("cp -r $rootimg_dir/lib/modules/$kernelver/modules.dep /tmp/xcatinitrd.$$/lib/modules/$kernelver/modules.dep"); - #system("mkdir -p /tmp/xcatinitrd.$$/etc/init.d"); - #system("cp -r $rootimg_dir/etc/init.d/* /tmp/xcatinitrd.$$/etc/init.d"); - #system("mkdir -p /tmp/xcatinitrd.$$/lib64"); - #system("cp -r $rootimg_dir/lib64/* /tmp/xcatinitrd.$$/lib64"); - #system("mkdir -p /tmp/xcatinitrd.$$/var/run/netreport"); symlink("busybox","/tmp/xcatinitrd.$$/bin/pivot_root"); symlink("busybox", "/tmp/xcatinitrd.$$/bin/udhcpc"); symlink("busybox", "/tmp/xcatinitrd.$$/sbin/ifconfig");