You are not logged in.
I have 2 drives installed on one of my machines set up as a raid 1 array (mirroring). Each drive has an EFI boot partition which when operating normally are mounted on /boot (sda1) and /boot-alt (sdb1).
When updating (with pacman), any changes to the kernel or initramfs result in only these changes being written to /boot only. The problem is that if the other drive is used to boot the system the result is that an incorrect version of the kernel/initramfs may be used, which results in numerous errors when booting. One such error is that the boot partition cannot be mounted as the 'vfat' module cannot be loaded when in the 'emergency' shell.
Is there any method to write changes to both boot partitions concurrently when upgrading the system? I realize that this may be achieved manually after an upgrade but inadvertently may miss this step.
Last edited by vicbis (2024-06-28 02:03:40)
Offline
Is there any method to write changes to both boot partitions concurrently when upgrading the system? I realize that this may be achieved manually after an upgrade but inadvertently may miss this step.
You can set up a hook for pacman, but I believe that's buggy for such use case. You can set up a filesystem watcher, but I believe that's not practical
.
What I see really looks like X Y problem, for raid1 you should also mirror esp. Set up raid1 with metadata 1.0 for your esp+boot and UEFI will be able to read it as a fat partition.
If your setup is not very complicated, you can move your /boot (kernels and stuff) to / while keeping /efi (bootloaders and stuff) on its partition.
Last edited by yataro (2024-06-27 04:40:45)
Offline
Offline
Thanks all, I've added a 'post generation hook' script in '/etc/initcpio/post' that calls rsync problem solved.
Offline