8
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
this post was submitted on 13 Feb 2024
8 points (100.0% liked)
Fedora Linux
5 readers
1 users here now
All about Fedora Linux
founded 5 years ago
MODERATORS
check the
GRUB_CMDLINE_LINUX
key in/etc/default/grub
it should contain the info about any subvolume. if it does not then there might be another grub config hook that is used by Fedora to add that info. If you want to be able to change subvol names without having to touch the grub config you might also want to switch to usingsubvolid
instead ofsubvol
keys on the kernel command line, because the id will stay the same after a rename (this could backfire though if you assign functions to certain names like "fallback" etc.).Edit: found the hook that adds the kernel command line option for btrfs subvolumes. in
/etc/grub.d/10_linux
there is this bit of code:so it seems it is always looking at the subvol name of the currently mounted root fs.
Thank you man, I dont understand much of the syntax (like at all) but i figured if I just change the subvol from the variable to the name of my root it would work, and it did. Jank as fuck but hey, its my system aha. Appreciate you man
It's just the basic posix shell syntax. It just looks weird because they are using lots of library functions and in-place substitutions. also apparently the function, to translate a system path to something grub will understand, is an ELF binary 0_o