+++ This bug was initially created as a clone of Bug #1123479 +++
To support Anaconda building Docker™ images, a handful of feature enhancements should be merged into RHEL:
- disable kernel installation
- disable installation of the boot loader
- prevent installing @core
- limit the installation of localization packages and documentation
The kickstart syntax introduced with these feature enhancements allows us to generate very minimal base images.
(In reply to Jay Greguske from comment #0)
> The kickstart syntax introduced with these feature enhancements allows us to
> generate very minimal base images.
What is going to be this syntax ? QE can't test if we don't know what. Please provide more info.
From a pykickstart perspective, it is only the following:
* Add bootloader --disabled, which just skips installation of the bootloader package and the bootloader to disk.
* Add %packages --nocore, which acts just like --nobase except for the core group.
For anaconda (bug 1123479) it means making sure the above work on the anaconda side, plus the following:
* Don't fail if firewalld and authconfig are not installed.
* Fix %packages --instLangs=.
for expected testing results see the relevant RHEL 6 bug:
That's an anaconda bug, which you can clearly tell from the traceback, so please do not reopen this bug. Further, if you'd do some research, you'd find bug 1147687 against anaconda which is currently in ON_QA which will take care of this. So again, this is just a pykickstart bug and as long as the pykickstart portion of comment #3 is working, this bug is fine. Putting back into MODIFIED.
Attempted to verify with pykickstart-18.104.22.168-1.el7.noarch, RHEL-7.1-20150122.0.
# ksvalidator ./ks-r7-min.cfg
The following problem occurred on line 9 of the kickstart file:
no such option: --disabled
# cat ./ks-r7-min.cfg
keyboard --vckeymap=us --xlayouts='us'
rootpw --plaintext redhat
timezone America/New_York --isUtc
clearpart --all --initlabel
%packages --nocore --instLangs=.
Moving back to assigned.
I'm going to need to do another patch to update pykickstart so that the RHEL7 version is the default version. For now, you can use --version=RHEL7 for ksvalidator and other tools and continue testing. Please do so and let me know if there are other problems so I can keep rebuilds to a minimum. Thanks.
Note that this didn't come up in development because anaconda sets the kickstart version to RHEL7 itself.
(In reply to Chris Lumens from comment #11)
> I'm going to need to do another patch to update pykickstart so that the
> RHEL7 version is the default version. For now, you can use --version=RHEL7
> for ksvalidator and other tools and continue testing. Please do so and let
> me know if there are other problems so I can keep rebuilds to a minimum.
Tested with --version=RHEL7 and it worked fine. Moving to verified.
I need this bug to be marked as an exception or blocker in order to apply the patch I mentioned in comment #11 to make sure that the workaround used in comment #13 doesn't need to happen.
Okay, well, I'm not going to be able to fix that issue until 7.2 it looks like. Luckily anaconda should be using the correct syntax version. We should probably document --version=RHEL7 somewhere.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.