[PATCH 3/3 rhel7-branch] atomic: set up atomic specific partitioning defaults
Radek Vykydal
rvykydal at redhat.com
Wed Oct 22 08:25:33 UTC 2014
On 10/22/2014 10:01 AM, Vratislav Podzimek wrote:
> On Wed, 2014-10-22 at 09:44 +0200, Radek Vykydal wrote:
>> Resolves: rhbz#1155452
>>
>> /boot will be 300M and / LV will be 3G. LVs for docker will be created by special
>> service using root's VG.
>> ---
>> pyanaconda/installclasses/rhel.py | 36 ++++++++++++++++++++++++++++++++++--
>> 1 file changed, 34 insertions(+), 2 deletions(-)
>>
>> diff --git a/pyanaconda/installclasses/rhel.py b/pyanaconda/installclasses/rhel.py
>> index 1c968be..1e797ab 100644
>> --- a/pyanaconda/installclasses/rhel.py
>> +++ b/pyanaconda/installclasses/rhel.py
>> @@ -22,11 +22,15 @@ from pyanaconda.product import productName
>> from pyanaconda import network
>> from pyanaconda import nm
>> from pyanaconda import iutil
>> +from pyanaconda.kickstart import getAvailableDiskSpace
>> +from blivet.partspec import PartSpec
>> +from blivet.platform import platform
>> +from blivet.devicelibs import swap
>>
>> class RHELBaseInstallClass(BaseInstallClass):
>> name = "Red Hat Enterprise Linux"
>> sortPriority = 20000
>> - if not productName.startswith(("Red Hat ", "RHEL Atomic")):
>> + if not productName.startswith("Red Hat "):
>> hidden = True
>> defaultFS = "xfs"
>>
>> @@ -46,7 +50,7 @@ class RHELBaseInstallClass(BaseInstallClass):
>>
>> def configure(self, anaconda):
>> BaseInstallClass.configure(self, anaconda)
>> - BaseInstallClass.setDefaultPartitioning(self, anaconda.storage)
>> + self.setDefaultPartitioning(anaconda.storage)
>>
>> # Set first boot policy regarding ONBOOT value
>> # (i.e. which network devices should be activated automatically after reboot)
>> @@ -85,3 +89,31 @@ class RHELBaseInstallClass(BaseInstallClass):
>>
>> def __init__(self):
>> BaseInstallClass.__init__(self)
>> +
>> +class RHELAtomicInstallClass(RHELBaseInstallClass):
>> + name = "RHEL Atomic Host"
>> + if productName.startswith("RHEL Atomic"):
>> + hidden = 0
> This should be False instead of 0.
>
Thanks for the catch!
More information about the anaconda-patches
mailing list