Commit 5a6fff7
committed
isoBuilder: put installer-requestable packages on the media
Two gaps in how the download list is built.
1. The STIG menu offers "Apply STIG hardening", which makes the installer
request KS_STIG_PACKAGES at install time. Those names were never added to
the ISO's own RPMS/, so on a minimal ISO - where downloadPkgs() resolves a
closure rather than copying every rpm - the packages simply were not there
and the install failed with "Error(1011) : No matching packages".
Import the list from stigenable rather than restating the names in a
package list file; restating them is exactly how the media and the
installer drifted apart. Imported locally because stigenable pulls in the
curses UI modules, which need not be a module-level dependency of the ISO
builder.
2. Packages named via --initrd-pkgs never reached this list either. Only the
list *file* was parsed, so a package requested on the command line could
not be installed into the initrd from the ISO's own RPMS/.
Both extend self.pkg_list only, so they land in the ISO's RPMS/ and the
initrd does not grow.
Verified end to end: a minimal ISO built with this carries 290 rpms instead
of 254, including selinux-policy, libselinux-utils, rsyslog, aide,
openssl-fips-provider and ntpsec; the UI wizard's STIG option completes; and
the installed system comes up SELinux Enforcing with 0 failed ansible tasks.
Signed-off-by: Daniel Casota <dcasota@gmail.com>1 parent f614b59 commit 5a6fff7
1 file changed
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
198 | 214 | | |
199 | 215 | | |
200 | 216 | | |
| |||
0 commit comments