#991945 refind: debian netinst (bullseye): refind fails to install

Package:
refind
Source:
refind
Description:
boot manager for EFI-based computers
Submitter:
Marc Leeman
Date:
2021-08-06 15:03:02 UTC
Severity:
normal
#991945#5
Date:
2021-08-06 13:39:07 UTC
From:
To:
Dear Maintainer,

I am using refind with an netinst installer. Since bullseye this seems
broken because sysfs/efivarfs is no longer mounted by default in the
target and efibootmgr fails

I've tested this patch on my side (simply trying to mount sys/efivarfs
before efibootmgr and this seems to work.

For completeness, I added such a mount in the postinst, but that one
was not enough to fix the installation.

https://salsa.debian.org/den_erpel-guest/refind/-/blob/debian/televic/bullseye/unstable/debian/patches/bullseye-efivarfs.patch


https://salsa.debian.org/den_erpel-guest/refind/-/tree/debian/televic/bullseye/unstable

If you want a clean MR, just let me know

#991945#10
Date:
2021-08-06 14:29:17 UTC
From:
To:
Great catch!  Shouldn't the script also take care of unmounting these
if it's the one who mounted them, though?  (It makes the logic a bit
more complex, but seems like the "right" solution to me.)

I've also added Rod explicitly to CC here, since this is really an
upstream rEFInd bug (and his opinion on it might differ from mine!).
:)

♥,
- Tianon
  4096R / B42F 6819 007F 00F8 8E36  4FD4 036A 9C25 BF35 7DD4

#991945#15
Date:
2021-08-06 15:00:49 UTC
From:
To:
Great catch!  Shouldn't the script also take care of unmounting these
The new refind also needs the '/' to point to ESP files (this was not the
case for the buster variant).

On your question of unmounting; it depends on your point of view. Normally
these partitions are already mounted so a I assumed they always need to be
mounted. That's why there is an || after an attempt to mount.

You could also unmount them again after using the refind-install; but then
other scripts that might delete entries with efibootmgr need to mount this
themselves.