defect 3131: fix the msg of dracut version
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14467 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
1e899c10eb
commit
d2fae3ae5f
@ -487,7 +487,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";
|
||||
|
Loading…
Reference in New Issue
Block a user