2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-29 17:23:08 +00:00

Additional packages locations for diskless image generation

This commit is contained in:
Mark Gurevich 2021-03-19 15:56:07 -04:00
parent e6a7a2d332
commit 237c7fee91

View File

@ -2006,7 +2006,13 @@ sub generic_post { # This function is meant to leave the image in a state approx
print $cfgfile "NETWORKING=yes\n";
close($cfgfile);
# SLE15 has a symlink to /run/netconfig/resolv.conf and does not need a dummy file
# SLE15.2 has a symlink to /run/netconfig/resolv.conf but still need a dummy file
if (-l "$rootimg_dir/etc/resolv.conf" && $osver =~ "15.2") {
# Remove resolv.conf, so that link is gone and code below will
# create a dummy file
unlink("$rootimg_dir/etc/resolv.conf");
}
# SLE15.0 has a symlink to /run/netconfig/resolv.conf and does not need a dummy file
if (! -l "$rootimg_dir/etc/resolv.conf") {
open($cfgfile, ">", "$rootimg_dir/etc/resolv.conf");
print $cfgfile "#Dummy resolv.conf to make boot cleaner";