Thanks, I'll fix it. It is me juggling rhel-7.0-atomic branch and
rhel7-branch :(
On 10/22/2014 03:02 PM, David Lehman wrote:
On 10/22/2014 02:44 AM, 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
<snip>
> @@ -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
> +
> + def setDefaultPartitioning(self, storage):
> + autorequests = [PartSpec(mountpoint="/",
> fstype=storage.defaultFSType,
> + size=1024, maxSize=3*1024,
> grow=True, lv=True)]
Sizes should use blivet.size.Size, eg: size=Size("1 GiB"),
maxSize=Size("3 GiB").
> +
> + bootreqs = platform.setDefaultPartitioning()
> + if bootreqs:
> + autorequests.extend(bootreqs)
> +
> + disk_space = getAvailableDiskSpace(storage)
> + swp = swap.swapSuggestion(disk_space=disk_space)
> + autorequests.append(PartSpec(fstype="swap", size=swp,
> grow=False,
> + lv=True, encrypted=True))
> +
> + for autoreq in autorequests:
> + if autoreq.fstype is None:
> + if autoreq.mountpoint == "/boot":
> + autoreq.fstype = storage.defaultBootFSType
> + autoreq.size = 300
Size("300 MiB")
> + else:
> + autoreq.fstype = storage.defaultFSType
> +
> + storage.autoPartitionRequests = autorequests
>
_______________________________________________
anaconda-patches mailing list
anaconda-patches(a)lists.fedorahosted.org
https://lists.fedorahosted.org/mailman/listinfo/anaconda-patches