2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-17 20:00:19 +00:00

fix issue 3142 delete useless dracut.* files under rootimg/tmp in liteimg (#3154)

* fix issue 3142 useless dracut.* files under rootimg/tmp cause liteimg cost much time

* polished

* polished
This commit is contained in:
Yuan Bai
2017-06-02 11:25:35 +08:00
committed by yangsong
parent 9c434368cb
commit 0dae47b9a5

View File

@ -355,6 +355,11 @@ sub process_request {
xCAT::Utils->runcmd("mkdir $rootimg_dir/.statebackup", 0, 1);
}
#delete useless rootimg/tmp/dracut.* files
#fix copy many dracut.* files cost too much time in liteimg
$verbose && $callback->({ info => ["removing \"$rootimg_dir/tmp/dracut.*\""] });
unlink glob "$rootimg_dir/tmp/dracut.*";
# recovery the files in litefile.save if necessary
foreach my $line (keys %hashSaved) {
my @oldentry = split(/\s+/, $line);