diff --git a/xCAT-server/lib/xcat/plugins/anaconda.pm b/xCAT-server/lib/xcat/plugins/anaconda.pm index 05d08fa2d..316bee41d 100644 --- a/xCAT-server/lib/xcat/plugins/anaconda.pm +++ b/xCAT-server/lib/xcat/plugins/anaconda.pm @@ -1690,12 +1690,19 @@ sub mksysclone copy("/var/lib/systemimager/scripts/post-install/10all.fix_swap_uuids","$pspath"); } - unless (-r "$pspath/95all.monitord_rebooted") + #unless (-r "$pspath/95all.monitord_rebooted") + #{ + # mkpath("$pspath"); + # copy("/var/lib/systemimager/scripts/post-install/95all.monitord_rebooted","$pspath"); + #} + + + if(-e "$pspath/95all.monitord_rebooted") { - mkpath("$pspath"); - copy("/var/lib/systemimager/scripts/post-install/95all.monitord_rebooted","$pspath"); + `rm $pspath/95all.monitord_rebooted`; } + # copy hosts copy("/etc/hosts","$installroot/sysclone/scripts/"); diff --git a/xCAT-server/lib/xcat/plugins/sles.pm b/xCAT-server/lib/xcat/plugins/sles.pm index 32552732e..032df544e 100755 --- a/xCAT-server/lib/xcat/plugins/sles.pm +++ b/xCAT-server/lib/xcat/plugins/sles.pm @@ -1379,12 +1379,18 @@ sub mksysclone # copy("/var/lib/systemimager/scripts/post-install/11all.replace_byid_device","$pspath"); #} - unless (-r "$pspath/95all.monitord_rebooted") + #unless (-r "$pspath/95all.monitord_rebooted") + #{ + # mkpath("$pspath"); + # copy("/var/lib/systemimager/scripts/post-install/95all.monitord_rebooted","$pspath"); + #} + + if(-e "$pspath/95all.monitord_rebooted") { - mkpath("$pspath"); - copy("/var/lib/systemimager/scripts/post-install/95all.monitord_rebooted","$pspath"); + `rm $pspath/95all.monitord_rebooted`; } + # copy hosts copy("/etc/hosts","$installroot/sysclone/scripts/");