[PATCH] anaconda realm command
Stef Walter
stefw at redhat.com
Wed Nov 21 08:55:57 UTC 2012
This patch adds the realm command to anaconda. It depends on the
pykickstart changes I added earlier (hmmm, how should I reflect this
dependency?).
Again, the big use case is automatic AD domain joins by adding a
line to a kickstart file. The line in the kickstart file looks like:
realm join domain.example.com
or:
realm join --one-time-password=mypassword domain.example.com
Attached are two patches. The first one sets the kernel hostname during
the post install, so it can be used by stuff running in the chroot.
realmd needs the hostname to be appropriately set.
The second patch adds the realm command implementation. It does this:
* Early in the install the realm is discovered. This tells us what
kind of realm (such as AD domain vs. IPA domain etc.) and what
kind of packages need to be installed to support it. The required
packages are added to the install.
* After the install and configuration, we join the realm using the
realmd. realmd has support for running within a chroot, and without
a dbus system bus etc. So we use this to run within /mnt/sysimage.
Happy to adapt this as necessary. Looking forward to review.
Cheers,
Stef
More information about the anaconda-patches
mailing list