# Add kernel parameter to dracut

**URL:** <https://forum.endeavouros.com/t/add-kernel-parameter-to-dracut/40659>\
**Category:** Newbie\
**Created:** [May 10, 2023, 7:37pm UTC](https://forum.endeavouros.com/t/add-kernel-parameter-to-dracut/40659 "2023-05-10T19:37:51Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![dudt](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/d/4da419/32.png) [@dudt](https://forum.endeavouros.com/u/dudt)\
**Post date:** [May 10, 2023, 7:37pm UTC](https://forum.endeavouros.com/t/add-kernel-parameter-to-dracut/40659/1 "2023-05-10T19:37:51Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![dalto](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/dalto/32/5577_2.png) [@dalto](https://forum.endeavouros.com/u/dalto)\
**Post date:** [May 10, 2023, 7:40pm UTC](https://forum.endeavouros.com/t/add-kernel-parameter-to-dracut/40659/2 "2023-05-10T19:40:52Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![dudt](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/d/4da419/32.png) [@dudt](https://forum.endeavouros.com/u/dudt)\
**Post date:** [May 10, 2023, 7:43pm UTC](https://forum.endeavouros.com/t/add-kernel-parameter-to-dracut/40659/3 "2023-05-10T19:43:34Z")

</div>

thanks i will try that 🙂

---

<div class="post-metadata">

**Author:** ![dalto](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/dalto/32/5577_2.png) [@dalto](https://forum.endeavouros.com/u/dalto)\
**Post date:** [May 10, 2023, 7:51pm UTC](https://forum.endeavouros.com/t/add-kernel-parameter-to-dracut/40659/4 "2023-05-10T19:51:44Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Newuser2](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/newuser2/32/69390_2.png) [@Newuser2](https://forum.endeavouros.com/u/Newuser2)\
**Post date:** [May 12, 2023, 6:28am UTC](https://forum.endeavouros.com/t/add-kernel-parameter-to-dracut/40659/5 "2023-05-12T06:28:35Z")

</div>

> [@dalto](#):
>
> sudo grub-mkconfig

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

---

<div class="post-metadata">

**Author:** ![pebcak](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/pebcak/32/100472_2.png) [@pebcak](https://forum.endeavouros.com/u/pebcak)\
**Post date:** [May 12, 2023, 6:31am UTC](https://forum.endeavouros.com/t/add-kernel-parameter-to-dracut/40659/6 "2023-05-12T06:31:58Z")

</div>

> [@Newuser2](#):
>
> update-grub

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.

---

<div class="post-metadata">

**Author:** ![anon11595408](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/a/f1d935/32.png) [@anon11595408](https://forum.endeavouros.com/u/anon11595408)\
**Post date:** [May 12, 2023, 4:10pm UTC](https://forum.endeavouros.com/t/add-kernel-parameter-to-dracut/40659/7 "2023-05-12T16:10:25Z")

</div>

> [@Newuser2](#):
>
> Both do this at once

What are you talking about?

---

<div class="post-metadata">

**Author:** ![vazicebon](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/vazicebon/32/81098_2.png) [@vazicebon](https://forum.endeavouros.com/u/vazicebon)\
**Post date:** [May 12, 2023, 6:23pm UTC](https://forum.endeavouros.com/t/add-kernel-parameter-to-dracut/40659/8 "2023-05-12T18:23:12Z")

</div>

> [@Newuser2](#):
>
> Is update-grub different from grub-mkcomfig? Both do this at once

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

---

<div class="post-metadata">

**Author:** ![Newuser2](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/newuser2/32/69390_2.png) [@Newuser2](https://forum.endeavouros.com/u/Newuser2)\
**Post date:** [May 13, 2023, 1:37pm UTC](https://forum.endeavouros.com/t/add-kernel-parameter-to-dracut/40659/9 "2023-05-13T13:37:23Z")

</div>

> [@vazicebon](#):
>
> update-grub is a Manjaro thing, it’s grub-mkcomfig+a workaround for encrypted disks.

[https://aur.archlinux.org/packages/update-grub](https://aur.archlinux.org/packages/update-grub)

---

<div class="post-metadata">

**Author:** ![vazicebon](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/vazicebon/32/81098_2.png) [@vazicebon](https://forum.endeavouros.com/u/vazicebon)\
**Post date:** [May 13, 2023, 2:11pm UTC](https://forum.endeavouros.com/t/add-kernel-parameter-to-dracut/40659/10 "2023-05-13T14:11:24Z")

</div>

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

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

```

At least Manjaro brings a bit more :

> **[update-grub · master · Packages / Core / grub · GitLab](https://gitlab.manjaro.org/packages/core/grub/-/blob/master/update-grub)**
>
> GNU GRand Unified Bootloader (2)
