summaryrefslogtreecommitdiffstats
path: root/isys
diff options
context:
space:
mode:
authorDavid Cantrell <dcantrell@redhat.com>2009-03-17 11:28:51 -1000
committerDavid Cantrell <dcantrell@redhat.com>2009-03-18 09:21:50 -1000
commitbd18c5370cacbac9a88074d8b0b66f1824c9cdb7 (patch)
tree4fdd73fbadebc290aece1fb220bd676a6be4bd40 /isys
parente892c1599e9f8b2694a473bd709b0717aa5cb8b8 (diff)
downloadanaconda-bd18c5370cacbac9a88074d8b0b66f1824c9cdb7.tar.gz
anaconda-bd18c5370cacbac9a88074d8b0b66f1824c9cdb7.tar.xz
anaconda-bd18c5370cacbac9a88074d8b0b66f1824c9cdb7.zip
Use booleans in isys.mount() and isys.umount()
Use True/False over 1/0. It's the future.
Diffstat (limited to 'isys')
-rwxr-xr-xisys/isys.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/isys/isys.py b/isys/isys.py
index d2168dbf1..1f4f22286 100755
--- a/isys/isys.py
+++ b/isys/isys.py
@@ -130,7 +130,7 @@ def ddfile(file, megs, pw = None):
os.close(fd)
## Mount a filesystem, similar to the mount system call.
-# @param device The device to mount. If bindMount is 1, this should be an
+# @param device The device to mount. If bindMount is True, this should be an
# already mounted directory. Otherwise, it should be a device
# name.
# @param location The path to mount device on.
@@ -141,7 +141,8 @@ def ddfile(file, megs, pw = None):
# @param bindMount Is this a bind mount? (see the mount(8) man page)
# @param remount Are we mounting an already mounted filesystem?
# @return The return value from the mount system call.
-def mount(device, location, fstype = "ext2", readOnly = 0, bindMount = 0, remount = 0, options = "defaults"):
+def mount(device, location, fstype = "ext2", readOnly = False,
+ bindMount = False, remount = False, options = "defaults"):
flags = None
location = os.path.normpath(location)
opts = string.split(options)
@@ -180,7 +181,7 @@ def mount(device, location, fstype = "ext2", readOnly = 0, bindMount = 0, remoun
# absolute path.
# @param removeDir Should the mount point be removed after being unmounted?
# @return The return value from the umount system call.
-def umount(what, removeDir = 1):
+def umount(what, removeDir = True):
what = os.path.normpath(what)
if not os.path.isdir(what):