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:
commit
8cdc81ac55
@ -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\"");
|
||||
|
Loading…
x
Reference in New Issue
Block a user