diff options
author | Jeremy Katz <katzj@redhat.com> | 2003-06-23 19:02:38 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2003-06-23 19:02:38 +0000 |
commit | c8c0190205336f69c1a94f890a28a3e040565a97 (patch) | |
tree | e14cbf45307c02955d4e358dfb7e584026346953 /lvm.py | |
parent | d1636e475e29facfa7c08db38d4845a9bfe682e7 (diff) | |
download | anaconda-c8c0190205336f69c1a94f890a28a3e040565a97.tar.gz anaconda-c8c0190205336f69c1a94f890a28a3e040565a97.tar.xz anaconda-c8c0190205336f69c1a94f890a28a3e040565a97.zip |
merge from taroon. highlights of this time around
* ppc boot constraints
* md5 endianness
* don't prompt to save tracebacks to a floppy without a floppy
* autopart for kickstart
* network configuration in the loader if vnc/display case
Diffstat (limited to 'lvm.py')
-rw-r--r-- | lvm.py | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -60,7 +60,7 @@ def vgscan(): stderr = output, searchPath = 1) if rc: - log("running vgscan failed. disabling lvm") + log("running vgscan failed: %s. disabling lvm" %(rc,)) lvmDevicePresent = 0 def vgactivate(volgroup = None): @@ -68,6 +68,7 @@ def vgactivate(volgroup = None): volgroup - optional single volume group to activate """ + global lvmDevicePresent if flags.test or lvmDevicePresent == 0: return @@ -79,13 +80,15 @@ def vgactivate(volgroup = None): stderr = output, searchPath = 1) if rc: - raise SystemError, "vgchange failed" + log("running vgchange failed: %s. disabling lvm" %(rc,)) + lvmDevicePresent = 0 def vgdeactivate(volgroup = None): """Deactivate volume groups by running vgchange -an. volgroup - optional single volume group to deactivate """ + global lvmDevicePresent if flags.test or lvmDevicePresent == 0: return @@ -97,7 +100,8 @@ def vgdeactivate(volgroup = None): stderr = output, searchPath = 1) if rc: - raise SystemError, "vgchange failed" + log("running vgchange failed: %s. disabling lvm" %(rc,)) + lvmDevicePresent = 0 def lvremove(lvname, vgname): @@ -106,6 +110,7 @@ def lvremove(lvname, vgname): lvname - name of logical volume to remove. vgname - name of volume group lv is in. """ + global lvmDevicePresent if flags.test or lvmDevicePresent == 0: return @@ -126,6 +131,7 @@ def vgremove(vgname): vgname - name of volume group. """ + global lvmDevicePresent if flags.test or lvmDevicePresent == 0: return |