The dracut-config-generic package (sometimes installed by default in
the overcloud image) provides a configuration file that turns off the
host-specific initramfs generation with dracut:
$ cat /usr/lib/dracut/dracut.conf.d/02-generic-image.conf
hostonly="no"
The result is that the generated initrams does not contain:
- /etc/systemd/journald.conf
- /etc/systemd/system.conf
- /etc/hostname
- /etc/machine-id
- /etc/vconsole.conf
- /etc/locale.conf
- /etc/modules-load.d/*.conf
- /etc/sysctl.d/*.conf
- /etc/sysctl.conf
Especially problematic is the absence of sysctl.conf when ipv6 is
disabled via "KernelDisableIPv6: 1" because we end up half-disabling
ipv6 and services like rpbcind end up in failed state.
Original issue: https://bugs.launchpad.net/tripleo/+bug/1830574
This commit builds on top of https://review.opendev.org/#/c/661528/
adding the '--hostonly' option to dracut so to bypass 'hostonly="no"'
eventually contained in the default config file.
Change-Id: Ia4a39721268fe9bb0fdcc8bf4eb148263d4df46e