Stop lazy unmounting when loopback devices are on the line...

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13923 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2012-10-01 19:52:03 +00:00
parent 786e61680f
commit 1ea24371ca

View File

@ -4212,7 +4212,7 @@ sub copycd {
}
if ($::CDMOUNTPATH) {
chdir("/");
system("umount -l $::CDMOUNTPATH");
system("umount $::CDMOUNTPATH");
}
};
my $KID;
@ -4765,11 +4765,12 @@ sub cpNetbootImages {
if(system("cp /mnt/xcat/* $destDir/")){
xCAT::SvrUtils::sendmsg([1,"Could not copy netboot contents to $destDir"], $output_handler);
system("umount -l /mnt/xcat");
chdir("/");
system("umount /mnt/xcat");
return;
}
chdir("/tmp");
system("umount -l /mnt/xcat");
system("umount /mnt/xcat");
print "tempDir: $tmpDir\n";
system("rm -rf $tmpDir");
} elsif (-r "$srcDir/cim.vgz" and -r "$srcDir/vmkernel.gz" and -r "$srcDir/vmkboot.gz" and -r "$srcDir/sys.vgz") {