2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-23 03:30:33 +00:00

create /opt/xcat under rootimage dir incase it is not there

This commit is contained in:
immarvin
2016-11-10 01:07:59 -05:00
parent 9ce51e7c4d
commit aac736afcb

View File

@@ -2020,7 +2020,10 @@ sub generic_post { #This function is meant to leave the image in a state approxi
if(-e "$rootimg_dir/etc/rc3.d/S61xcatpostinit"){
unlink("$rootimg_dir/etc/rc3.d/S61xcatpostinit");
}
if (!-d "$rootimg_dir/opt/xcat/") {
mkdir "$rootimg_dir/opt/xcat/";
}
if(-e "$rootimg_dir/usr/lib/systemd/"){
#if systemd is the service management framework for the diskless image