dracut: Disable ostree-prepare-root
Resolves: RHEL-35885 commit 42cdc05a8c99a2c0834377faca04b583404cb86f Author: Colin Walters <walters@verbum.org> Date: Fri Jul 19 14:23:39 2024 -0400 dracut: Disable ostree-prepare-root In some images such as the recent fedora/rhel bootc base image, the ostree dracut module is statically enabled:40df0eb382/tier-0/initramfs.yaml (L9)
And also recently, we changed the ostree systemd unit to enter emergency.target if it fails in:05b3b66275
These two things combine mean we'll fail before kdump gets a chance to run. For our use case we don't need ostree in the initrd. I tried to override this with `--omit=ostree` in our dracut invocation, but that causes an error (dracut doesn't let the cmdline override static config). For now, let's just mask the service in our initrd. Signed-off-by: Lichen Liu <lichliu@redhat.com>
This commit is contained in:
parent
eeea6fa847
commit
be56205d06
@ -1088,6 +1088,9 @@ install() {
|
||||
# Also redirect dracut-emergency to kdump error handler
|
||||
ln_r "$systemdsystemunitdir/emergency.service" "$systemdsystemunitdir/dracut-emergency.service"
|
||||
|
||||
# Disable ostree as we only need the physical root
|
||||
systemctl -q --root "$initdir" mask ostree-prepare-root.service
|
||||
|
||||
# Check for all the devices and if any device is iscsi, bring up iscsi
|
||||
# target. Ideally all this should be pushed into dracut iscsi module
|
||||
# at some point of time.
|
||||
|
Loading…
Reference in New Issue
Block a user