This is just a PoC showing how it could be done. There are no unit tests or other stuff.
Issues
Adding the i386-efi subvolume seems excessive (would also have to be added to control.xml) but it's the only technically correct way. Maybe find a way to limit the usage only to the bootloader actually installed.
Coverage: 97.754%. Remained the same when pulling 5bd40825a9311d0a470eeab629d31d2b224e9e57 on efi32 into 7b600199d83bd173d5e524aba362d21de11c66f8 on master.
Problem
This is just a PoC showing how it could be done. There are no unit tests or other stuff.
Issues
Adding the
i386-efi
subvolume seems excessive (would also have to be added tocontrol.xml
) but it's the only technically correct way. Maybe find a way to limit the usage only to the bootloader actually installed.See also