El dom, 05-03-2023 a las 06:04 -0500, Genes Lists escribió: > > [..] > I would keep separate boot partition(s) - using XBOOTLDR - these can > also be mirrored using btrfs. As you said, you now only need to sync > <esp> and with kernels and initrds on separate boot, the <esp> will > rarely change. > Personally I prefer to use the ESP partition as /boot to avoid having a separate partition and simplify the scheme. At the end you have to keep in mind that in /boot you are only going to store the kernel and the initrd and if you have them in the ESP partition you avoid having to "make calls" elsewhere and you can put directly in the loader conf this: linux /vmlinuz-linux initrd /initramfs-linux.img In fact as the boot line is exactly the same (since you have a single UUID for the btrfs raid system) you can use exactly the same loader entry: $ sudo btrfs filesystem show # To get UUID Label: 'disk1' uuid: 1b962b21-3130-498b-9543-e84c90f12fce Total devices 2 FS bytes used 3.86TiB devid 1 size 7.28TiB used 3.87TiB path /dev/sdb devid 2 size 7.28TiB used 2.56TiB path /dev/sdc And conf: title Arch Linux linux /vmlinuz-linux initrd /initramfs-linux.img options root=UUID=1b962b21-3130-498b-9543-e84c90f12fce rootfstype=btrfs rootflags=subvol=root add_efi_memmap rw > Summary: > - 2 x <esp> - kept in sync > - boot - btrfs raid-1 (data and metadata) > - root - btrfs raid-1 (data and metadata) > > I like it. > Summary: - 2xESP in sync -> You can use a pacman hook - btrfs raid-1 (data and metadata), remain partitions as subvol In fact at hook level you can put one like in the example of the manual page[1] that acts after any installation and does an rsync. As the rsync is immediate if there are no changes this ensures that you will always have the ESP partitions in sync and that you will not miss any package that could write to ESP and you will not notice it. [1]: https://archlinux.org/pacman/alpm-hooks.5.html -- Óscar García Amor | ogarcia at moire.org | http://ogarcia.me
Attachment:
signature.asc
Description: This is a digitally signed message part