From aac736afcb7f463b00ea983638c568f533b8c018 Mon Sep 17 00:00:00 2001 From: immarvin Date: Thu, 10 Nov 2016 01:07:59 -0500 Subject: [PATCH] create /opt/xcat under rootimage dir incase it is not there --- xCAT-server/share/xcat/netboot/rh/genimage | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xCAT-server/share/xcat/netboot/rh/genimage b/xCAT-server/share/xcat/netboot/rh/genimage index 3289000a1..17e06fd19 100755 --- a/xCAT-server/share/xcat/netboot/rh/genimage +++ b/xCAT-server/share/xcat/netboot/rh/genimage @@ -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