defect 3131: fix the msg of dracut version

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.7@14468 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
daniceexi 2012-11-29 02:56:13 +00:00
parent b8c42d07ae
commit 39123d48ac

View File

@ -460,7 +460,8 @@ unlink "/tmp/genimage.$$.yum.conf";
if (-d "$rootimg_dir/usr/share/dracut") {
$dracutmode = 1;
# get dracut version
my $dracutver = `rpm -R $rootimg_dir -qi dracut | grep Version | awk -F' ' '{print \$3}'`;
my $dracutver = `rpm --root $rootimg_dir -qi dracut | grep Version | awk -F' ' '{print \$3}'`;
chomp($dracutver);
if ($dracutver =~ /^\d\d\d$/) {
if ($dracutver >= "009") {
$dracutdir = "dracut_009";