summaryrefslogtreecommitdiffstats
path: root/fsset.py
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2001-07-20 01:45:42 +0000
committerMatt Wilson <msw@redhat.com>2001-07-20 01:45:42 +0000
commit774b4fcd6f659c1caf8428021c85f67c37b86611 (patch)
tree25c6e238234f0d1d301e974f6305ba2a3b57db41 /fsset.py
parentab3865fba0e6ddce1332cc4a76323198b1521a5a (diff)
downloadanaconda-774b4fcd6f659c1caf8428021c85f67c37b86611.tar.gz
anaconda-774b4fcd6f659c1caf8428021c85f67c37b86611.tar.xz
anaconda-774b4fcd6f659c1caf8428021c85f67c37b86611.zip
turn on swap early in lowmem (#46304), prevent you from editing once things are turned on (#46321)
Diffstat (limited to 'fsset.py')
-rw-r--r--fsset.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/fsset.py b/fsset.py
index 1dfb99acf..d933ce7b1 100644
--- a/fsset.py
+++ b/fsset.py
@@ -461,7 +461,11 @@ class FileSystemSet:
def __init__(self):
self.messageWindow = None
self.progressWindow = None
+ self.mountcount = 0
self.reset()
+
+ def isActive(self):
+ return self.mountcount != 0
def registerMessageWindow(self, method):
self.messageWindow = method
@@ -660,6 +664,7 @@ class FileSystemSet:
and not entry.isMounted()):
try:
entry.mount(chroot)
+ self.mountcount = self.mountcount + 1
except SystemError, (errno, msg):
if self.messageWindow:
self.messageWindow(_("Error"),
@@ -764,6 +769,7 @@ class FileSystemSet:
continue
try:
entry.mount(instPath)
+ self.mountcount = self.mountcount + 1
except SystemError, (errno, msg):
if raiseErrors:
raise SystemError, (errno, msg)