URL:
  <https://savannah.gnu.org/bugs/?61688>

                 Summary: grub-mkconfig not using correct subvol output for
root os on BTRFS subvol
                 Project: GNU GRUB
            Submitted by: perkinsms
            Submitted on: Thu 16 Dec 2021 10:56:34 PM UTC
                Category: Configuration
                Severity: Major
                Priority: 5 - Normal
              Item Group: Software Error
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name: Michael Perkins
        Originator Email: perkin...@gmail.com
             Open/Closed: Open
                 Release: 
                 Release: 2.02
         Discussion Lock: Any
         Reproducibility: Every Time
         Planned Release: None

    _______________________________________________________

Details:

This is for grub-mkconfig 2.06

What happened:

Using grub-mkconfig to produce a grub.cfg file for a system with

## Arch Linux root partition
/dev/nvme0n1p4 / btrfs subvol=/@


## Manjaro root partition   
/dev/nvme0n1p3 /mnt btrfs subvol=/@

This produces the correct output for the Arch partition - finding all the
kernels in /boot and configuring them with the correct rootflags=subvol=@ and
the paths to the initrd and kernel correct.

For the Manjaro partitions detected using os-prober, the menu entry is missing
the rootflags=subvol=@ and the paths to the initrd and kernel are written as
if the disk partition starts at / instead of /@/

What should happen:

# grub-mkconfig -o testfile

testfile should contain an entry for another linux system with a btrfs root
partition at subvol=@ with an entry that includes:

linux /@/boot/vmlinuz-5.15xxxxx root=UUID=xxxxxxxxxxx rw rootflags=subvol=@
etc.
initrd /@/boot/intel-ucode.img /@/boot/initramfs-5.15-x86_64.img




    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?61688>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/


Reply via email to