# HG changeset patch
# User john.levon@sun.com
# Date 1228271149 28800
# Node ID a4538c6c2d6690526d80c011b46b4700c23a9ffd
# Parent 7069ca5b2ced261f19438d3091af89aea2441b88
Fix mount/unmount for Solaris
def cleanupLocation(self):
logging.debug("Cleaning up mount at " + self.srcdir)
- cmd = ["umount", self.srcdir]
+ if os.uname()[0] == "SunOS":
+ cmd = ["/usr/sbin/umount", self.srcdir]
+ else:
+ cmd = ["/bin/umount", self.srcdir]
subprocess.call(cmd)
try:
os.rmdir(self.srcdir)
_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@redhat.com
https://www.redhat.com/mailman/listinfo/et-mgmt-tools
12-03-2008, 08:39 AM
"Daniel P. Berrange"
Fix mount/unmount for Solaris
On Tue, Dec 02, 2008 at 06:26:02PM -0800, john.levon@sun.com wrote:
> # HG changeset patch
> # User john.levon@sun.com
> # Date 1228271149 28800
> # Node ID a4538c6c2d6690526d80c011b46b4700c23a9ffd
> # Parent 7069ca5b2ced261f19438d3091af89aea2441b88
> Fix mount/unmount for Solaris
>
> mount is not portable: fix for Solaris
ACK.
Daniel
--
|: Red Hat, Engineering, London -o- http://people.redhat.com/berrange/ :|
|: http://libvirt.org -o- http://virt-manager.org -o- http://ovirt.org :|
|: http://autobuild.org -o- http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|
_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@redhat.com
https://www.redhat.com/mailman/listinfo/et-mgmt-tools
12-03-2008, 02:51 PM
Cole Robinson
Fix mount/unmount for Solaris
john.levon@sun.com wrote:
> # HG changeset patch
> # User john.levon@sun.com
> # Date 1228271149 28800
> # Node ID a4538c6c2d6690526d80c011b46b4700c23a9ffd
> # Parent 7069ca5b2ced261f19438d3091af89aea2441b88
> Fix mount/unmount for Solaris
>
> mount is not portable: fix for Solaris
>
> Signed-off-by: John Levon <john.levon@sun.com>
>