Re: [PATCH] grub2/btrfs: Add ability to boot from subvolumes

2020-07-13 Thread Michael Chang
Besides Jeff's patch, we had been using patch to have grub booting from default subvolume with the path relative to it, rather than booting from real root and using absoute path [1]. [1] http://git.savannah.gnu.org/cgit/grub.git/commit/?id=82591fa6e7941efe2723a23cb1d924dfe0641974 IMHO grub shoul

Re: [PATCH] grub2/btrfs: Add ability to boot from subvolumes

2020-07-13 Thread Thomas Schneider
Hello, in order to answer questions why this feature is needed I'll re-post my original feature request. Grub is booting the default subvolume in BTRFS w/o any manual modification in Grub configuration. Current situation: Booting a snapshot created with Snapper

Re: [PATCH] grub2/btrfs: Add ability to boot from subvolumes

2020-07-12 Thread Jeff Mahoney
On 7/11/20 7:09 AM, Vladimir 'phcoder' Serbinenko wrote: > Why is this patch needed? Can't subvolumes be reached from real root? > Isn't autogenerated grub.cfg use the names based on real root We use it to boot from snapshots, which include the grub configs (though not grub itself). It allows all

Re: [PATCH] grub2/btrfs: Add ability to boot from subvolumes

2020-07-11 Thread Vladimir 'phcoder' Serbinenko
Why is this patch needed? Can't subvolumes be reached from real root? Isn't autogenerated grub.cfg use the names based on real root On Sat, Jul 11, 2020, 05:52 wrote: > From: Jeff Mahoney > > This patch adds the ability to specify a different root on a btrfs > filesystem too boot from other tha

[PATCH] grub2/btrfs: Add ability to boot from subvolumes

2020-07-10 Thread jeffm
From: Jeff Mahoney This patch adds the ability to specify a different root on a btrfs filesystem too boot from other than the default one. btrfs-list-snapshots will list the subvolumes available on the filesystem. set btrfs_subvol= and set btrfs_subvolid= will specify which subvolume to use an