mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-22 03:32:04 +00:00
correct the path of genimage lock
This commit is contained in:
parent
cfbced8d83
commit
6495de9cda
@ -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