From f4f88334969982938eafd77ef9114c8290a8fc9e Mon Sep 17 00:00:00 2001 From: Meliox Date: Tue, 9 Jun 2026 22:00:45 +0200 Subject: [PATCH] don't let a patch failure abort apt install --- debian/pve-mod.postinst | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/debian/pve-mod.postinst b/debian/pve-mod.postinst index 1140cb4..2a33baa 100644 --- a/debian/pve-mod.postinst +++ b/debian/pve-mod.postinst @@ -71,8 +71,11 @@ EOF case "$1" in configure) - # Apply patches for any enabled modules. Fails loudly on error. - /usr/lib/pve-mod/apply-patches.sh + # Apply patches for any enabled modules. Don't abort the install if a + # patch fails — warn instead so dpkg doesn't end half-configured. + if ! /usr/lib/pve-mod/apply-patches.sh; then + echo "pve-mod: WARNING: Some patches failed to apply. Run 'pve-mod-configure' to retry." >&2 + fi if [ -z "$2" ]; then echo ""