diff options
author | Jeremy Katz <katzj@redhat.com> | 2007-01-17 22:49:50 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2007-01-17 22:49:50 +0000 |
commit | abb6ec58462064d9874945efb8215e1b6cd76d71 (patch) | |
tree | 2d2406b1c3ebc65db0beb28895083fe32df5e073 /fsset.py | |
parent | 48cb0bc9f3e2d13813f325964793e0944eb6e549 (diff) | |
download | anaconda-abb6ec58462064d9874945efb8215e1b6cd76d71.tar.gz anaconda-abb6ec58462064d9874945efb8215e1b6cd76d71.tar.xz anaconda-abb6ec58462064d9874945efb8215e1b6cd76d71.zip |
2007-01-17 Jeremy Katz <katzj@redhat.com>
* iw/progress_gui.py (InstallProgressWindow.completePackage):
Quick and dirty way of handling-non rpm installs. This needs to
be reworked more completely
* timezone.py (Timezone.__init__): Add a default in case the step
is skipped
* instdata.py (InstallData.write): Ensure that network is written
out rather than counting on our backend to do so in its preinstall
* fsset.py (FileSystemType.isKernelFS): Add a method to determine
if we're an in-kernel pseudo-filesystem
(PsudoFileSystem.isKernelFS): And implement it
(FileSystemSet.umountFilesystems): Allow unmounting filesystems
without turning off swap.
Diffstat (limited to 'fsset.py')
-rw-r--r-- | fsset.py | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -176,6 +176,10 @@ class FileSystemType: self.maxLabelChars = 16 self.packages = [] + def isKernelFS(self): + """Returns True if this is an in-kernel pseudo-filesystem.""" + return False + def mount(self, device, mountpoint, readOnly=0, bindMount=0, instroot=""): if not self.isMountable(): @@ -966,6 +970,9 @@ class PsudoFileSystem(FileSystemType): self.name = name self.supported = 0 + def isKernelFS(self): + return True + class ProcFileSystem(PsudoFileSystem): def __init__(self): PsudoFileSystem.__init__(self, "proc") @@ -1870,7 +1877,7 @@ MAILADDR root return ret - def umountFilesystems(self, instPath, ignoreErrors = 0): + def umountFilesystems(self, instPath, ignoreErrors = 0, swapoff = True): # XXX remove special case try: isys.umount(instPath + '/proc/bus/usb', removeDir = 0) @@ -1884,6 +1891,8 @@ MAILADDR root reverse.reverse() for entry in reverse: + if entry.mountpoint == "swap" and not swapoff: + continue entry.umount(instPath) class FileSystemSetEntry: |