mkinitrd_dracut and mkinitrd can generate two different initial ramdisks, one is initrd-statelite.gz, the other one is initrd-stateless.gz

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7386 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
mxi1 2010-09-09 08:17:39 +00:00
parent cd9ad4b94f
commit 66c6d5fedd

View File

@ -622,7 +622,7 @@ sub mkinitrd_dracut {
system("chroot $rootimg_dir dracut -f /tmp/initrd.$$.gz $kernelver");
print "the initial ramdisk is generated successfully.\n";
move("$rootimg_dir/tmp/initrd.$$.gz", "$destdir/initrd.gz");
move("$rootimg_dir/tmp/initrd.$$.gz", "$destdir/initrd-$mode.gz");
}
sub mkinitrd {
@ -1177,7 +1177,7 @@ EOMS
}
#copy("$rootimg_dir/lib/modules/*d","/tmp/xcatinitrd.$$/$_");
system("cd /tmp/xcatinitrd.$$;find .|cpio -H newc -o|gzip -9 -c - > $destdir/initrd.gz");
system("cd /tmp/xcatinitrd.$$;find .|cpio -H newc -o|gzip -9 -c - > $destdir/initrd-$mode.gz");
system("rm -rf /tmp/xcatinitrd.$$");
}