From 13448b70115ca8bc70b39a13b2708980a5af48b3068204af7fcc9d714f272ff8 Mon Sep 17 00:00:00 2001 From: Franck Bui Date: Fri, 28 Aug 2020 20:03:31 +0000 Subject: [PATCH] %pre must not be empty OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1111 --- systemd-mini.spec | 1 + systemd.spec | 1 + 2 files changed, 2 insertions(+) diff --git a/systemd-mini.spec b/systemd-mini.spec index 1b8c166..406e052 100644 --- a/systemd-mini.spec +++ b/systemd-mini.spec @@ -786,6 +786,7 @@ cat %{S:14} >>%{buildroot}%{_datarootdir}/systemd/kbd-model-map # a %pre that needs to be run during the build. systemd is one of them # so keep the section even if it's empty. %pre +: %post # Make /etc/machine-id an empty file during package installation. On diff --git a/systemd.spec b/systemd.spec index a45247b..2d9078c 100644 --- a/systemd.spec +++ b/systemd.spec @@ -784,6 +784,7 @@ cat %{S:14} >>%{buildroot}%{_datarootdir}/systemd/kbd-model-map # a %pre that needs to be run during the build. systemd is one of them # so keep the section even if it's empty. %pre +: %post # Make /etc/machine-id an empty file during package installation. On