Issue with grubby on BTRFS

Hi everyone, I want to add an argument to GRUB_CMDLINE_LINUX_DEFAULT using grubby, but I get an error:

# grubby --args "usbhid.quirks=0x04d9:0xa292:0x00000400" --update-kernel /boot/vmlinuz-5.16.5-200.fc35.x86_64

The param /boot/vmlinuz-5.16.5-200.fc35.x86_64 is incorrect

Is there a way to fix?

I think it should be:

# grubby --args="usbhid.quirks=0x04d9:0xa292:0x00000400" --update-kernel="/boot/vmlinuz-5.16.5-200.fc35.x86_64"

Usually I uses --args="<arguments>" and --update-kernel="<kernel-to-update>" with =.

1 Like

Thank you for your reply.
I fixed in another way, by specifing the BTRFS subvolume, in my case root is @
Full command
# grubby --args "usbhid.quirks=0x04d9:0xa292:0x00000400" --update-kernel /@/boot/vmlinuz-5.16.5-200.fc35.x86_64



I change the solution mark to your comment to be more specific with on how you solve it.