## ## lorax --add-template `pwd`/add_template.tmpl ## postconfigurations for i586 ## ## see below for directives: ## /usr/share/doc/lorax/lorax.rst ## /usr/lib/python3.6/site-packages/pylorax/ltmpl.py ## ## RHEL 8 seems to always default to America/New York, regardess of language append usr/share/anaconda/interactive-defaults.ks '' append usr/share/anaconda/interactive-defaults.ks 'timezone UTC' append usr/share/anaconda/interactive-defaults.ks '' ## make minimum install the default ## (this seems not evaluated on inst.text install) ## /usr/share/anaconda/interactive-defaults.ks wil be deprecated, ## rewrite /etc/anaconda/anaconda.conf replace "default_environment =" "default_environment = minimal-environment" etc/anaconda/anaconda.conf #append usr/share/anaconda/interactive-defaults.ks '%packages' #append usr/share/anaconda/interactive-defaults.ks '@^minimal-environment' #append usr/share/anaconda/interactive-defaults.ks '%end' #append usr/share/anaconda/interactive-defaults.ks '' ## enlengthen 120000 ## in /usr/share/anaconda/dbus/anaconda-bus.conf ## (ineffective?) replace 'name="service_start_timeout">120000<' 'name="service_start_timeout">998000<' usr/share/anaconda/dbus/anaconda-bus.conf ## dbus: enlengthen default hardcoded ## 25000 ## (dbus package, bus/config-parser.c:parser->limits.activation_timeout = 25000; /* 25 seconds */) ## to longer value, using system drop-in included from ## /usr/share/dbus-1/system.conf append etc/dbus-1/system-local.conf '' append etc/dbus-1/system-local.conf '' append etc/dbus-1/system-local.conf ' 240045' append etc/dbus-1/system-local.conf '' ## systemd-hwdb-update.service fails by timeout. Enlengthen mkdir etc/systemd/system/systemd-hwdb-update.service.d append etc/systemd/system/systemd-hwdb-update.service.d/timeout.conf '[Service]' append etc/systemd/system/systemd-hwdb-update.service.d/timeout.conf 'TimeoutStartSec=5min' ## polkit.service fails by 1.5min timeout. Enlengthen mkdir etc/systemd/system/polkit.service.d append etc/systemd/system/polkit.service.d/timeout.conf '[Service]' append etc/systemd/system/polkit.service.d/timeout.conf 'TimeoutStartSec=5min' ## hardcoded timeout of 30 secs; enlengthen ## NetworkManager nm-online patched to honor --timeout for ## NMClient object regstration replace '--timeout=30' '--timeout=300' usr/lib/systemd/system/NetworkManager-wait-online.service mkdir etc/systemd/system/NetworkManager-wait-online.service.d append etc/systemd/system/NetworkManager-wait-online.service.d/timeout.conf '[Service]' append etc/systemd/system/NetworkManager-wait-online.service.d/timeout.conf 'TimeoutStartSec=5min' ## Default timeout 90 secs too short; enlengthen mkdir etc/systemd/system/systemd-hostnamed.service.d append etc/systemd/system/systemd-hostnamed.service.d/timeout.conf '[Service]' append etc/systemd/system/systemd-hostnamed.service.d/timeout.conf 'TimeoutStartSec=5min' ## Default timeout 90 secs too short; enlengthen ## -> Red Hat Subscription Manager needed for anaconda mkdir etc/systemd/system/rhsm.service.d append etc/systemd/system/rhsm.service.d/timeout.conf '[Service]' append etc/systemd/system/rhsm.service.d/timeout.conf 'TimeoutStartSec=20min' ## Default timeout 90 secs too short; enlengthen mkdir etc/systemd/system/udisks2.service.d append etc/systemd/system/udisks2.service.d/timeout.conf '[Service]' append etc/systemd/system/udisks2.service.d/timeout.conf 'TimeoutStartSec=5min' mkdir etc/systemd/system/systemd-logind.service.d append etc/systemd/system/systemd-logind.service.d/timeout.conf '[Service]' append etc/systemd/system/systemd-logind.service.d/timeout.conf 'RestartSec=2s' append etc/systemd/system/systemd-logind.service.d/timeout.conf 'TimeoutStartSec=5min' mkdir etc/systemd/system/systemd-journald.service.d append etc/systemd/system/systemd-journald.service.d/timeout.conf '[Service]' append etc/systemd/system/systemd-journald.service.d/timeout.conf 'TimeoutStartSec=5min' ## deprecated ## cf. ## systemd-udev-settle.service is deprecated. Please fix multipathd.service not to pull it in. ## https://bugzilla.redhat.com/show_bug.cgi?id=2001058 ## ## should fix anaconda-direct.service, anaconda-pre.service, initrd-udevadm-cleanup-db.service, multipathd.service ## #mkdir etc/systemd/system/systemd-udev-settle.service.d #append etc/systemd/system/systemd-udev-settle.service.d/timeout.conf '[Service]' #append etc/systemd/system/systemd-udev-settle.service.d/timeout.conf 'TimeoutStartSec=10min' removepkg device-mapper-multipath # ineffective; .device does not take [Service] #mkdir etc/systemd/system/dev-zram0.device.d #append etc/systemd/system/dev-zram0.device.d/timeout.conf '[Service]' #append etc/systemd/system/dev-zram0.device.d/timeout.conf 'TimeoutStartSec=5min' mkdir etc/systemd/system/dev-zram0.device.d append etc/systemd/system/dev-zram0.device.d/timeout.conf '[Unit]' append etc/systemd/system/dev-zram0.device.d/timeout.conf 'JobRunningTimeoutSec=5min' ## disable services probably unused in i686 ## ("systemctl disable rdma" ineffective; invoked as dependency?) ## Invoked as Infiniband device dependency via udev ## systemctl disable rdma ## replace rngd with EPEL haveged, which is lighter on CPU %if exists("usr/sbin/haveged"): systemctl disable rngd ## rngd is enabled in /usr/share/lorax/templates.d/80-rhel/runtime-postinstall.tmpl ## which is run after this. We do not want to change the .tmpl, ## so uninstall rngd to make it bogus removepkg rng-tools systemctl enable haveged %endif