From e7883a3ff9fd672c243fbb4d7a174477035eda97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Wed, 18 Jul 2018 10:53:19 +0200 Subject: [PATCH] Ignore return value from systemd-binfmt in scriptlet --- systemd.spec | 3 +++ triggers.systemd | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/systemd.spec b/systemd.spec index 593d30e..4be4b92 100644 --- a/systemd.spec +++ b/systemd.spec @@ -688,6 +688,9 @@ fi %files tests -f .file-list-tests %changelog +* Wed Jul 18 2018 Terje Rosten - 239-3 +- Ignore return value from systemd-binfmt in scriptlet (#1565425) + * Sun Jul 15 2018 Filipe Brandenburger - Override systemd-user PAM config in install and not prep diff --git a/triggers.systemd b/triggers.systemd index 04abfd1..90906e3 100644 --- a/triggers.systemd +++ b/triggers.systemd @@ -105,5 +105,7 @@ fi # This script will automatically apply binfmt rules if files have been # installed or updated in /usr/lib/binfmt.d. if test -d /run/systemd/system; then - /usr/lib/systemd/systemd-binfmt + # systemd-binfmt might fail if binfmt_misc kernel module is not loaded + # during install + /usr/lib/systemd/systemd-binfmt || : fi