2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-07-27 14:51:10 +00:00

Check if the postscript is only for diskless

This commit is contained in:
root
2016-06-20 03:08:00 -04:00
parent b7cb44b811
commit 5942dfdc99

View File

@@ -436,6 +436,13 @@ sub assign_to_osimage
}
if ( $osimagetable->{provmethod} =~ /install/ ) {
# If the script is only for diskless node
my $cmd = "grep \"#FLAG FOR DISKLESS ONLY#\" $installdir/postscripts/$kitcompscript";
my $res = xCAT::Utils->runcmd($cmd, -1);
if ($res eq "#FLAG FOR DISKLESS ONLY#"){
next;
}
# for diskfull node
my $match = 0;
my @scripts = split ',', $osimagetable->{postbootscripts};