diff --git a/xCAT-server-2.0/share/xcat/netboot/rh/genimage b/xCAT-server-2.0/share/xcat/netboot/rh/genimage index 0e8de47c7..949de4658 100755 --- a/xCAT-server-2.0/share/xcat/netboot/rh/genimage +++ b/xCAT-server-2.0/share/xcat/netboot/rh/genimage @@ -56,6 +56,7 @@ foreach (split /,/,$netdriver) { } my $installroot = "/install"; +unless ($onlyinitrd) { my $srcdir = "$installroot/$osver/$arch"; @yumdirs=(); find(\&isyumdir, <$installroot/$osver/$arch/>); @@ -98,7 +99,6 @@ while (<$yumconfig>) { $yumcmd .= $_ . " "; } $yumcmd =~ s/ $/\n/; -unless ($onlyinitrd) { my $rc = system($yumcmd); if ($rc) { print "yum invocation failed\n";