[PATCH] [F19?] install biosdevname if it's on the commandline
Vratislav Podzimek
vpodzime at redhat.com
Mon Jun 17 08:52:44 UTC 2013
> This is the anaconda parth of
> https://bugzilla.redhat.com/show_bug.cgi?id=965718, which is about
> attempting to standardize when biosdevname names are used vs. when
> systemd names are used. The rest is done with a minor comps tweak
> and changing the biosdevname rules.
>
> (Not tested on a tree yet.)
>
> Bill
> -------------- next part --------------
> commit 00898d5bccb7a1629cfb11df4df3bb5794ac891d (HEAD, f19-branch)
> Author: Bill Nottingham <notting at redhat.com>
> Date: Wed Jun 12 12:33:36 2013 -0400
>
> If biosdevname=1 is passed on the commandline, make sure biosdevname is installed.
>
> Stuffed into install.py for lack of a better place.
>
> diff --git a/pyanaconda/install.py b/pyanaconda/install.py
> index dd39442..84fc743 100644
> --- a/pyanaconda/install.py
> +++ b/pyanaconda/install.py
> @@ -151,6 +151,8 @@ def doInstall(storage, payload, ksdata, instClass):
> # system is bootable and configurable, and some other packages in order
> # to finish setting up the system.
> packages = storage.packages + ["authconfig", "firewalld"] + ksdata.realm.packages
> + if flags.cmdline.get("biosdevname") == "1":
> + packages = packages + ["biosdevname"]
> payload.preInstall(packages=packages, groups=payload.languageGroups())
> payload.install()
I believe you could use flags.cmdline.getbool() [1] here.
[1] https://git.fedorahosted.org/cgit/anaconda.git/tree/pyanaconda/flags.py#n157
--
Vratislav Podzimek
Anaconda Rider | Red Hat, Inc. | Brno - Czech Republic
More information about the anaconda-patches
mailing list