# Customise grub flags

**URL:** <https://universal-blue.discourse.group/t/customise-grub-flags/2162>\
**Category:** Bluefin\
**Created:** [June 7, 2024, 4:37am UTC](https://universal-blue.discourse.group/t/customise-grub-flags/2162 "2024-06-07T04:37:26Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![tolga\_erok](https://yyz2.discourse-cdn.com/free1/user_avatar/universal-blue.discourse.group/tolga_erok/32/2017_2.png) [@tolga\_erok](https://universal-blue.discourse.group/u/tolga_erok)\
**Post date:** [June 7, 2024, 4:37am UTC](https://universal-blue.discourse.group/t/customise-grub-flags/2162/1 "2024-06-07T04:37:26Z")

</div>

hi all  
i would like the following to be enabled in bluefin like i do in my mutable systems:

```auto
GRUB_CMDLINE_LINUX="rhgb quiet elevator=mq-deadline rw mitigations=off"
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash zswap.enabled=1 zswap.compressor=lz4 zswap.max_pool_percent=10 zswap.zpool=zsmalloc"

```

how can i get it to ostree this or make it stay / work in bluefin?  
i rebuild my grub but when i enter the grub entry at boot, i dont see my custom config?

Much appreciated.

---

<div class="post-metadata">

**Author:** ![HikariKnight](https://yyz2.discourse-cdn.com/free1/user_avatar/universal-blue.discourse.group/hikariknight/32/318_2.png) [@HikariKnight](https://universal-blue.discourse.group/u/HikariKnight)\
**Post date:** [June 7, 2024, 8:14am UTC](https://universal-blue.discourse.group/t/customise-grub-flags/2162/2 "2024-06-07T08:14:20Z")

</div>

you would want to look into `rpm-ostree kargs --help` 😀  
`rpm-ostree kargs` will show the current kernel args for grub, and you can pass arguments to it to modify the kernel argument line for grub.

you will not be able to split it up between `DEFAULT` and non default though.  
the arguments listed are the ones that will be used.

---

<div class="post-metadata">

**Author:** ![tolga\_erok](https://yyz2.discourse-cdn.com/free1/user_avatar/universal-blue.discourse.group/tolga_erok/32/2017_2.png) [@tolga\_erok](https://universal-blue.discourse.group/u/tolga_erok)\
**Post date:** [June 7, 2024, 11:24am UTC](https://universal-blue.discourse.group/t/customise-grub-flags/2162/3 "2024-06-07T11:24:18Z")

</div>

Hello and thankyou for the insight.

Bluefin/Silverblue is definately a different beast compared to nixos!

With your help Ive sorted it out and it works, well i hope so.

**Original:**

```auto
┌(tolga@bluefin) ➤ ~  
└➤ rpm-ostree kargs
rhgb quiet root=UUID=81ce8f42-fbc6-40ee-912d-7b0fe9ac341e rootflags=subvol=root rw ostree=/ostree/boot.1/default/b7cffa6760fe30f62cff9b5afdeb39426704395cad384f848f3293fd028a1ba1/0 initcall_blacklist=simpledrm_platform_driver_init

```

**Amended:**

> sudo rpm-ostree kargs --append=“rhgb quiet elevator=mq-deadline rw mitigations=off”
> 
> sudo rpm-ostree kargs --append=“quiet splash zswap.enabled=1 zswap.compressor=lz4 zswap.max\_pool\_percent=10 zswap.zpool=zsmalloc”

**Result:**

```auto
┌(tolga@bluefin) ➤ ~  
└➤ rpm-ostree kargs
rhgb quiet root=UUID=81ce8f42-fbc6-40ee-912d-7b0fe9ac341e rootflags=subvol=root rw ostree=/ostree/boot.0/default/b7cffa6760fe30f62cff9b5afdeb39426704395cad384f848f3293fd028a1ba1/0 initcall_blacklist=simpledrm_platform_driver_init rhgb quiet elevator=mq-deadline rw mitigations=off quiet splash zswap.enabled=1 zswap.compressor=lz4 zswap.max_pool_percent=10 zswap.zpool=zsmalloc

```

 ![image](https://global.discourse-cdn.com/free1/uploads/univeral_blue/original/2X/5/574d41c844d541639fd4a1141ce4d7246a65a577.jpeg)

**Out-come:**  
Faster boot and alot more responisive. Also added CAKE qdisc with a bandwidth limit of 1 Gbit/s to both `wlo1` and `wlp3s0` interfaces

---

<div class="post-metadata">

**Author:** ![iamwoz](https://yyz2.discourse-cdn.com/free1/user_avatar/universal-blue.discourse.group/iamwoz/32/1256_2.png) [@iamwoz](https://universal-blue.discourse.group/u/iamwoz)\
**Post date:** [June 8, 2024, 8:05pm UTC](https://universal-blue.discourse.group/t/customise-grub-flags/2162/4 "2024-06-08T20:05:23Z")

</div>

Thanks for these suggestions @tolga_erok but there is something unusual about the quotation marks used in your code snippets (for me at least).

Copy/paste into my terminal gives me this:

 ![Screenshot from 2024-06-09 08-07-15](https://global.discourse-cdn.com/free1/uploads/univeral_blue/original/2X/9/995cfa90c43994323c43ffaf05f235961047b9e1.png)

Instead if this:

 ![Screenshot from 2024-06-09 08-07-27](https://global.discourse-cdn.com/free1/uploads/univeral_blue/original/2X/d/d2c9633491c545f1f3d632d8ae76b67fe4cc326f.png)

Which created a bunch of this weirdness in my kargs

![Screenshot from 2024-06-09 08-02-32](https://global.discourse-cdn.com/free1/uploads/univeral_blue/original/2X/c/c5729a7474e39df55fb9fb40b8f11806fd3eea35.png)

In the end I used this to correct:

```auto
sudo rpm-ostree kargs --editor

```

> While I’m here - what did you use to get that awesome looking top bar in your screenshot?

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/univeral_blue/original/2X/e/e39f7d1952979cf23b0f8d634e025fb38da50026.png) [@system](https://universal-blue.discourse.group/u/system)\
**Post date:** [September 6, 2024, 8:05pm UTC](https://universal-blue.discourse.group/t/customise-grub-flags/2162/5 "2024-09-06T20:05:25Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
