• 0 Posts
  • 16 Comments
Joined 1 year ago
cake
Cake day: June 15th, 2023

help-circle





  • 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 using subvolid instead of subvol 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:

    case x"$GRUB_FS" in
        xbtrfs)
            rootsubvol="`make_system_path_relative_to_its_root /`"
            rootsubvol="${rootsubvol#/}"
            if [ "x${rootsubvol}" != x ]; then
                GRUB_CMDLINE_LINUX="rootflags=subvol=${rootsubvol} ${GRUB_CMDLINE_LINUX}"
            fi;;
        xzfs)
            [skipped for brevity]
            ;;
    esac
    

    so it seems it is always looking at the subvol name of the currently mounted root fs.







  • instead of putting a grub config in /boot/grub you could also try embedding it directly with grub-mkimage. you would need to point to the grub config that you have with -c and add all the needed modules as extra arguments at the end.

    it is possible that the grub image you installed is just not looking for the config file at the right place.

    or maybe try putting the grub.cfg in the same directory as the grubx64.efi






  • woah this is awesome!

    maglevs need classical wheel systems anyway because there might be a power outage, so simply having wheels that are compatible with the local rail system is a brilliant idea.

    add in a tiny propulsion system so they can use the normal tracks at low speed without the help of the maglev tracks and you can sort of blend the two systems together in critical locations like switches and train stations.