Fix syntax error produced by genimage in initrd, require /bin/cpio in CentOS 5 as busybox vintage has broken cpio
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@444 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
0a61ca2925
commit
ccac86e3d8
@ -181,8 +181,12 @@ sub mkinitrd {
|
||||
print $inifile " mount -t tmpfs rootfs /sysroot\n";
|
||||
print $inifile " cd /sysroot\n";
|
||||
print $inifile " echo -n \"Extracting root filesystem:\"\n";
|
||||
print $inifile " if [ -x /bin/cpio ]; then\n";
|
||||
print $inifile " zcat /rootimg.gz |/bin/cpio -idum\n";
|
||||
print $inifile " else\n";
|
||||
print $inifile " zcat /rootimg.gz |cpio -idum\n";
|
||||
print $inifile " echo Done";
|
||||
print $inifile " fi\n";
|
||||
print $inifile " echo Done\n";
|
||||
print $inifile "else\n";
|
||||
print $inifile " echo -n Failed to download image, panicing in 5...\n";
|
||||
print $inifile " for i in 4 3 2 1 0; do\n";
|
||||
|
@ -182,7 +182,7 @@ sub mkinitrd {
|
||||
print $inifile " cd /sysroot\n";
|
||||
print $inifile " echo -n \"Extracting root filesystem:\"\n";
|
||||
print $inifile " zcat /rootimg.gz |cpio -idum\n";
|
||||
print $inifile " echo Done";
|
||||
print $inifile " echo Done\n";
|
||||
print $inifile "else\n";
|
||||
print $inifile " echo -n Failed to download image, panicing in 5...\n";
|
||||
print $inifile " for i in 4 3 2 1 0; do\n";
|
||||
|
Loading…
Reference in New Issue
Block a user