The efi.mount and efi.automount units created by this generator if: * the ESP has the partition-type-uuid set to the ESP one * the system uses a boot-loader that sets the LoaderUUID efivar (systemd-boot and grub without secure-boot enabled) * does not have the ESP mounted by default cause the ESP to be mounted at /efi, which in turn cause issues when systemd-boot (metapackage) is installed/updated - as it autoinstalls itself at /efi, but does not create the loader-entries for the kernel, since we disabled /etc/kernel/postinst.d/zz-systemd-boot
Simply mask the generator, as its functionality is not needed on any regular Proxmox system. Signed-off-by: Stoiko Ivanov <s.iva...@proxmox.com> --- Tested on a VM where I reproduced the setup above. This is also why I used the all-caps: MASKING in the output - as it's easy to overlook in the large number of lines that are printed. src/proxmox-boot/zz-proxmox-boot | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/proxmox-boot/zz-proxmox-boot b/src/proxmox-boot/zz-proxmox-boot index ad6620a..7847777 100755 --- a/src/proxmox-boot/zz-proxmox-boot +++ b/src/proxmox-boot/zz-proxmox-boot @@ -271,6 +271,18 @@ check_grub_efi_removable_status() { echo "" } +mask_sd_gpt_generator() { + generator="systemd-gpt-auto-generator" + mask_dir="/etc/systemd/system-generators" + # already masked (or re-enabled manually) - nothing to do: + if [ -e "$mask_dir/$generator" ]; then + return + fi + warn "$generator causes problems in certain configurations - MASKING it!" + mkdir -p "$mask_dir" + ln -s /dev/null "$mask_dir/$generator" +} + set -- $DEB_MAINT_PARAMS mode="${1#\'}" mode="${mode%\'}" @@ -286,6 +298,7 @@ case $0:$mode in disable_systemd_boot_hook check_grub_efi_package check_grub_efi_removable_status + mask_sd_gpt_generator ;; */postrm.d/*:|*/postrm.d/*:remove) reexec_in_mountns "$@" @@ -295,6 +308,7 @@ case $0:$mode in disable_systemd_boot_hook check_grub_efi_package check_grub_efi_removable_status + mask_sd_gpt_generator ;; esac -- 2.39.5 _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel