2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-30 17:46:38 +00:00

Merge pull request #2288 from immarvin/onlock

correct the path of genimage lock
This commit is contained in:
Xiaopeng Wang 2016-12-07 17:25:53 +08:00 committed by GitHub
commit 8cdc81ac55

View File

@ -4817,7 +4817,7 @@ sub acquire_lock_imageop {
my $lock = xCAT::Utils->acquire_lock("$mylockfile", $NON_BLOCK);
unless ($lock){
my $pidfd;
open($pidfd,"<","/var/run/lock/xcat/$mylockfile");
open($pidfd,"<","/var/lock/xcat/$mylockfile");
my $pid=<$pidfd>;
close($pidfd);
return (1, "failed to acquire lock, seems there is another genimage/packimage/rmimage process $pid running on root image dir \"$rootimg_dir\"");