2
0
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:
immarvin 2016-12-07 03:59:23 -05:00
parent cfbced8d83
commit 6495de9cda

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\"");