FS#38453 - [grub] /etc/grub.d/10_archlinux does not take btrfs subvolumes into account

Attached to Project: Arch Linux
Opened by Dan Doel (dolio) - Saturday, 11 January 2014, 04:40 GMT
Last edited by Tobias Powalowski (tpowa) - Sunday, 12 January 2014, 12:10 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Tobias Powalowski (tpowa)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Hello,

I have an arch install in which I have a btrfs partition with several subvolumes, one of which is the arch root. It looks something like (if we take / to be the btrfs partition):

/arch/root
/arch/snapshots
/common/home

The first is mounted as the root partition using root=subvol=arch/root.

When grub-mkconfig runs, the /etc/grub.d/10_archlinux spec does not take this into account. It specifies the kernel and initramfs paths as /boot/... rather than the correct /arch/root/boot/.... By contrast, 10_linux handles my situation correctly.

I'm uncertain of the purpose of 10_archlinux vs. 10_linux, but if the former is intended to take over for the latter eventually, it should probably support this kind of configuration.

My grub version is currently 1:2.02.beta2-1.

Cheers.
This task depends upon

Closed by  Tobias Powalowski (tpowa)
Sunday, 12 January 2014, 12:10 GMT
Reason for closing:  Duplicate
Additional comments about closing:  38446
Comment by Keshav Amburay (the.ridikulus.rat) - Saturday, 11 January 2014, 18:24 GMT
I contributed the 10_archlinux script but I have never used btrfs and have no idea how btrfs subvolumes work. The script detects kernel only from /boot, so it may not work for non-/boot scenario like in btrfs snapshots. Please feel free to contribute an updated script to work with btrfs.

Loading...