2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-14 15:20:29 +00:00

Merge pull request #2137 from immarvin/onxcatservice

create /opt/xcat under rootimage dir incase it is not there
This commit is contained in:
Xiaopeng Wang
2016-11-10 14:47:15 +08:00
committed by GitHub

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