diff options
author | dlehman <dlehman> | 2007-02-22 00:06:15 +0000 |
---|---|---|
committer | dlehman <dlehman> | 2007-02-22 00:06:15 +0000 |
commit | 2c5edecc9801488063b93da903cc98f02be7135d (patch) | |
tree | f135f77f7dea2199b358c6f2a891e5ca96088a79 /autopart.py | |
parent | 27c231de0fe23d95150e9baa6639e9d258dbc677 (diff) | |
download | anaconda-2c5edecc9801488063b93da903cc98f02be7135d.tar.gz anaconda-2c5edecc9801488063b93da903cc98f02be7135d.tar.xz anaconda-2c5edecc9801488063b93da903cc98f02be7135d.zip |
* partedUtils.py (openDevices): don't relabel disks that contain
protected partitions (#220331)
* autopart.py (doClearPartAction): clear all non-protected partitions
from disks that contain a protected partition IFF initAll is set
* partedUtils.py (hasProtectedPartitions): new method to check if a
drive contains protected partitions
* packages.py (writeRegKey): method to write out regkey
* dispatch.py: add writeregkey step
* installclass.py (BaseInstallClass): add regkey fields and step
* instdata.py: include regkey settings in anaconda-ks.cfg
* packages.py (regKeyScreen): allow access to regkey screen while
moving backwards (#219361)
* installclasses/rhel.py: add support for real regkeys (via instnum)
Diffstat (limited to 'autopart.py')
-rw-r--r-- | autopart.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/autopart.py b/autopart.py index d527efdb6..02ba29479 100644 --- a/autopart.py +++ b/autopart.py @@ -1072,6 +1072,7 @@ def doPartitioning(diskset, requests, doRefresh = 1): def doClearPartAction(anaconda, partitions, diskset): type = partitions.autoClearPartType cleardrives = partitions.autoClearPartDrives + initAll = partitions.reinitializeDisks if type == CLEARPART_TYPE_LINUX: linuxOnly = 1 @@ -1107,7 +1108,10 @@ def doClearPartAction(anaconda, partitions, diskset): # 3) there's not fsystem but the numeric id of partition is native # 4) the ptable doesn't support numeric ids, but it appears to be # a RAID or LVM device (#107319) + # 5) the drive contains protected partitions and initAll is set if ((linuxOnly == 0) or (ptype and ptype.isLinuxNativeFS()) or + (initAll and + partedUtils.hasProtectedPartitions(drive, anaconda)) or (not ptype and partedUtils.isLinuxNativeByNumtype(part.native_type)) or ((part.native_type == -1) and # the ptable doesn't have types |