From 031c7d8617b0d9b47f59307bd3f2e27076fbf3b6 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Wed, 13 Feb 2008 20:10:06 +0000 Subject: [PATCH] Have genintrd move new kernel git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@473 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server-2.0/share/xcat/netboot/rh/genimage | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xCAT-server-2.0/share/xcat/netboot/rh/genimage b/xCAT-server-2.0/share/xcat/netboot/rh/genimage index 5c267212b..ac9c1f6bd 100755 --- a/xCAT-server-2.0/share/xcat/netboot/rh/genimage +++ b/xCAT-server-2.0/share/xcat/netboot/rh/genimage @@ -127,7 +127,8 @@ sub getlibs { } sub mkinitrd { - mkpath("/tmp/xcatinitrd.$$/bin"); + mkpath("/tmp/xcatinitrd.$$/bin"); + rename(<$installroot/netboot/$osver/$arch/$profile/rootimg/boot/vmlinuz*>,"$installroot/netboot/$osver/$arch/$profile/kernel"); symlink("bin","/tmp/xcatinitrd.$$/sbin"); mkpath("/tmp/xcatinitrd.$$/usr/bin"); mkpath("/tmp/xcatinitrd.$$/usr/sbin");