Truenas Scale - how to remove options from GRUB_CMDLINE_LINUX_DEFAULT

dawwe

Cadet
Joined
Apr 20, 2022
Messages
2
Hi!

I've been trying to configure GPU passthrough to my VMs and unfortunately managed to mess up the current configuration. :cool:

Not sure if this will cause my current issues with GPU passthrough, but I would like to remove these duplicate entries:

Code:
GRUB_CMDLINE_LINUX_DEFAULT="libata.allow_tpm=1 systemd.unified_cgroup_hierarchy=0 amd_iommu=on iommu=pt kvm_amd.npt=1 kvm_amd.avic=1 intel_iommu=on zfsforce=1 libata.allow_tpm=1 systemd.unified_cgroup_hierarchy=0 amd_iommu=on iommu=pt kvm_amd.npt=1 kvm_amd.avic=1 intel_iommu=on zfsforce=1"


I used following command to update options/parameters:
Code:
midclt call system.advanced.update '{"kernel_extra_options": "firstoption=value secondoption=value thirdoption=value"}


I've been trying to find documentation on how to remove options using midclt, but haven't really found anything useful yet. Have I missed or misunderstood something here?

Any help is appreciated!
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
I would try setting the kernel_extra_options to an empty string... that will bring it back to the iX original... then add back as you want.

I doubt that duplicates are harmful if values are aligned.
 
Top