Add kernel parameter to dracut

I try to add iomem=relaxed as kernel parameters.
I tried adding it to /etc/dracut.conf.d/cmdline.conf as kernel_cmdline=“iomem=relaxed” and than
tried every combination of:

dracut -force
dracut --regenerate-all --force
reinstall-kernel

but the parameter will not work. Manually adding it at boot time works…
What am i missing?

We manage kernel parameters via the bootloader.

You should add them to /etc/kernel/cmdline or /etc/default/grub for systemd-boot and grub respectively.

1 Like

thanks i will try that :slight_smile:

2 Likes

Also for systemd-boot you will need to run sudo reinstall-kernels and for grub run sudo grub-mkconfig /boot/grub/grub.cfg after making the change.

1 Like

Is update-grub different from grub-mkcomfig? Both do this at once

1 Like

There is no update-grub command on Arch.

There is an update-grub package in AUR but it is pointless to install it since it is a wrapper around grub-mkconfig.

4 Likes

What are you talking about?

1 Like

update-grub is a Manjaro thing, it’s grub-mkcomfig+a workaround for encrypted disks.

2 Likes

https://aur.archlinux.org/packages/update-grub

Ah this, I have an alias doing the same thing, no need for this package :

alias update-grub='sudo grub-mkconfig -o /boot/grub/grub.cfg'

At least Manjaro brings a bit more :

1 Like