summaryrefslogtreecommitdiffstats
path: root/fsset.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2002-05-30 22:00:38 +0000
committerJeremy Katz <katzj@redhat.com>2002-05-30 22:00:38 +0000
commit73c71e5f54603561e85da669164a5a1e8f47ac18 (patch)
treedca1f73220bafad8e170b0907177f68ffb2f3436 /fsset.py
parentc7277bcd2ee35a8cce0adbda8c7664eb914fc66e (diff)
downloadanaconda-73c71e5f54603561e85da669164a5a1e8f47ac18.tar.gz
anaconda-73c71e5f54603561e85da669164a5a1e8f47ac18.tar.xz
anaconda-73c71e5f54603561e85da669164a5a1e8f47ac18.zip
rootOnLoop cases should be dead
Diffstat (limited to 'fsset.py')
-rw-r--r--fsset.py32
1 files changed, 0 insertions, 32 deletions
diff --git a/fsset.py b/fsset.py
index f97efa526..7388b0fab 100644
--- a/fsset.py
+++ b/fsset.py
@@ -900,13 +900,6 @@ class FileSystemSet:
f.close()
- def rootOnLoop (self):
- for entry in self.entries:
- if (entry.mountpoint == '/'
- and entry.device.getName() == "LoopbackDevice"):
- return 1
- return 0
-
# return the "boot" devicce
def getBootDev(self):
mntDict = {}
@@ -1245,13 +1238,6 @@ class FileSystemSet:
def hasDirtyFilesystems(self, mountpoint):
ret = []
- if self.rootOnLoop():
- entry = self.getEntryByMountPoint('/')
- mountLoopbackRoot(entry.device.host[5:], skipMount = 1,
- mountpoint = mountpoint)
- dirty = isys.ext2IsDirty("loop1")
- unmountLoopbackRoot(skipMount = 1, mountpoint = mountpoint)
- if dirty: return [ "loop" ]
for entry in self.entries:
# XXX - multifsify, virtualize isdirty per fstype
@@ -1896,23 +1882,6 @@ def allocateLoopback(file):
return dev
return None
-_loopbackRootDevice = None
-def mountLoopbackRoot(device, skipMount=0, mountpoint="/mnt/sysimage"):
- global _loopbackRootDevice
- isys.mount(device, '/mnt/loophost', fstype = "vfat")
- _loopbackRootDevice = allocateLoopback("/mnt/loophost/redhat.img")
- if not skipMount:
- isys.mount(_loopbackRootDevice, mountpoint)
-
-def unmountLoopbackRoot(skipMount=0, mountpoint="/mnt/sysimage"):
- global _loopbackRootDevice
- if not skipMount:
- isys.umount(mountpoint)
- path = '/tmp/' + _loopbackRootDevice
- isys.makeDevInode(_loopbackRootDevice, path)
- isys.unlosetup(path)
- isys.umount('/mnt/loophost')
-
def ext2FormatFilesystem(argList, messageFile, windowCreator, mntpoint):
if windowCreator:
w = windowCreator(_("Formatting"),
@@ -1999,7 +1968,6 @@ if __name__ == "__main__":
fsset = readFstab("fstab")
print fsset.fstab()
- print fsset.rootOnLoop()
sys.exit(0)
fsset = FileSystemSet()