summaryrefslogtreecommitdiffstats
path: root/kickstart.py
diff options
context:
space:
mode:
authorDavid Cantrell <dcantrell@redhat.com>2009-09-01 14:21:04 -1000
committerDavid Cantrell <dcantrell@redhat.com>2009-09-03 11:30:10 -1000
commit1ce1ff033efabfc9ad6b731adc51fa6ab06068e4 (patch)
tree16970c3f9685db2a66d554800708d9b005f2e2db /kickstart.py
parentaad14f014b9cf8c2d9e5e3cfb6521740eb29b002 (diff)
downloadanaconda-1ce1ff033efabfc9ad6b731adc51fa6ab06068e4.tar.gz
anaconda-1ce1ff033efabfc9ad6b731adc51fa6ab06068e4.tar.xz
anaconda-1ce1ff033efabfc9ad6b731adc51fa6ab06068e4.zip
Expose common fsset methods and properties in class Storage.
Add the following methods and properties to class Storage which map through to FSSet methods, modify existing calls to use the method on class Storage: turnOnSwap() mountFilesystems() umountFilesystems() parseFSTab() mkDevRoot() createSwapFile() fsFreeSpace() mtab mountpoints migratableDevices rootDevice Callers no longer need to pass the Anaconda object to the FSSet methods directly. The method on Storage takes care of that. The mtab() method on FSSet is exposed as a property on Storage. The same is true for fsFreeSpace().
Diffstat (limited to 'kickstart.py')
-rw-r--r--kickstart.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/kickstart.py b/kickstart.py
index 2337d2cfa..81182cce2 100644
--- a/kickstart.py
+++ b/kickstart.py
@@ -436,7 +436,7 @@ class LogVol(commands.logvol.F9_LogVol):
# old one.
try:
if lvd.mountpoint:
- device = storage.fsset.mountpoints[lvd.mountpoint]
+ device = storage.mountpoints[lvd.mountpoint]
storage.destroyDevice(device)
except KeyError:
pass
@@ -684,7 +684,7 @@ class Partition(commands.partition.F11_Partition):
# old one.
try:
if pd.mountpoint:
- device = storage.fsset.mountpoints[pd.mountpoint]
+ device = storage.mountpoints[pd.mountpoint]
storage.destroyDevice(device)
except KeyError:
pass
@@ -820,7 +820,7 @@ class Raid(commands.raid.F9_Raid):
# old one.
try:
if rd.mountpoint:
- device = storage.fsset.mountpoints[rd.mountpoint]
+ device = storage.mountpoints[rd.mountpoint]
storage.destroyDevice(device)
except KeyError:
pass