From 76f47d96b45c4ffb7185d0480ec8ac4f52d0bfc919ceca8dc758fd0a4d0bca85 Mon Sep 17 00:00:00 2001 From: Franck Bui Date: Wed, 26 Aug 2020 10:15:04 +0000 Subject: [PATCH 1/3] - Import commit a4e393eecb9dbe140a6c7d57419c291d786155cf d8e3bd4e22 Revert "core: don't send SIGKILL to user@.service immediatly during shutdown" - Drop requirement on 'sysvinit-tools' It was used to workaround bug #886599 by explicitly calling vhangup(8) from getty@.service so when this service was stopped a virtually hangup on the specified terminal when were stopped to give the shell a few seconds to save its history. But this workaround was dropped since it had no effect (SLE12-GM was released with it but was still suffering from the bug) and was replaced by commit e9db43d5910717a108, which was released from v226 and backported to SLE12/SLE12-SP1. OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1109 --- systemd-mini.changes | 22 ++++++++++++++++++++++ systemd-mini.spec | 3 +-- systemd-v245.7+suse.49.g6d6d92930a.tar.xz | 3 --- systemd-v245.7+suse.51.ga4e393eecb.tar.xz | 3 +++ systemd.changes | 22 ++++++++++++++++++++++ systemd.spec | 3 +-- 6 files changed, 49 insertions(+), 7 deletions(-) delete mode 100644 systemd-v245.7+suse.49.g6d6d92930a.tar.xz create mode 100644 systemd-v245.7+suse.51.ga4e393eecb.tar.xz diff --git a/systemd-mini.changes b/systemd-mini.changes index 6d682aa..a218a91 100644 --- a/systemd-mini.changes +++ b/systemd-mini.changes @@ -1,3 +1,25 @@ +------------------------------------------------------------------- +Wed Aug 26 09:46:46 UTC 2020 - Franck Bui + +- Import commit a4e393eecb9dbe140a6c7d57419c291d786155cf + + d8e3bd4e22 Revert "core: don't send SIGKILL to user@.service immediatly during shutdown" + +------------------------------------------------------------------- +Tue Aug 25 14:32:16 UTC 2020 - Franck Bui + +- Drop requirement on 'sysvinit-tools' + + It was used to workaround bug #886599 by explicitly calling + vhangup(8) from getty@.service so when this service was stopped a + virtually hangup on the specified terminal when were stopped to give + the shell a few seconds to save its history. + + But this workaround was dropped since it had no effect (SLE12-GM was + released with it but was still suffering from the bug) and was + replaced by commit e9db43d5910717a108, which was released from v226 + and backported to SLE12/SLE12-SP1. + ------------------------------------------------------------------- Thu Aug 20 10:24:37 UTC 2020 - Franck Bui diff --git a/systemd-mini.spec b/systemd-mini.spec index 2f2981e..a13df83 100644 --- a/systemd-mini.spec +++ b/systemd-mini.spec @@ -26,7 +26,7 @@ ##### WARNING: please do not edit this auto generated spec file. Use the systemd.spec! ##### %define mini -mini %define min_kernel_version 4.5 -%define suse_version +suse.49.g6d6d92930a +%define suse_version +suse.51.ga4e393eecb %bcond_with gnuefi %if 0%{?bootstrap} @@ -123,7 +123,6 @@ Requires: kbd Requires: kmod >= 15 Requires: netcfg >= 11.5 Requires: systemd-presets-branding -Requires: sysvinit-tools Requires: udev = %{version}-%{release} Requires: util-linux >= 2.27.1 Requires: group(lock) diff --git a/systemd-v245.7+suse.49.g6d6d92930a.tar.xz b/systemd-v245.7+suse.49.g6d6d92930a.tar.xz deleted file mode 100644 index 1d62bee..0000000 --- a/systemd-v245.7+suse.49.g6d6d92930a.tar.xz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:309ed00d37594c68875d38be600ae9b51614a2958af6c5b73d0d5bad5ece96e3 -size 6302108 diff --git a/systemd-v245.7+suse.51.ga4e393eecb.tar.xz b/systemd-v245.7+suse.51.ga4e393eecb.tar.xz new file mode 100644 index 0000000..815e59f --- /dev/null +++ b/systemd-v245.7+suse.51.ga4e393eecb.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e0cce0a5990f8ddc03e1dcdb1af7f20331e3e885596710f8a68563882c50d31e +size 6301856 diff --git a/systemd.changes b/systemd.changes index 6d682aa..a218a91 100644 --- a/systemd.changes +++ b/systemd.changes @@ -1,3 +1,25 @@ +------------------------------------------------------------------- +Wed Aug 26 09:46:46 UTC 2020 - Franck Bui + +- Import commit a4e393eecb9dbe140a6c7d57419c291d786155cf + + d8e3bd4e22 Revert "core: don't send SIGKILL to user@.service immediatly during shutdown" + +------------------------------------------------------------------- +Tue Aug 25 14:32:16 UTC 2020 - Franck Bui + +- Drop requirement on 'sysvinit-tools' + + It was used to workaround bug #886599 by explicitly calling + vhangup(8) from getty@.service so when this service was stopped a + virtually hangup on the specified terminal when were stopped to give + the shell a few seconds to save its history. + + But this workaround was dropped since it had no effect (SLE12-GM was + released with it but was still suffering from the bug) and was + replaced by commit e9db43d5910717a108, which was released from v226 + and backported to SLE12/SLE12-SP1. + ------------------------------------------------------------------- Thu Aug 20 10:24:37 UTC 2020 - Franck Bui diff --git a/systemd.spec b/systemd.spec index 12d8473..b2ff8ec 100644 --- a/systemd.spec +++ b/systemd.spec @@ -24,7 +24,7 @@ %define bootstrap 0 %define mini %nil %define min_kernel_version 4.5 -%define suse_version +suse.49.g6d6d92930a +%define suse_version +suse.51.ga4e393eecb %bcond_with gnuefi %if 0%{?bootstrap} @@ -121,7 +121,6 @@ Requires: kbd Requires: kmod >= 15 Requires: netcfg >= 11.5 Requires: systemd-presets-branding -Requires: sysvinit-tools Requires: udev = %{version}-%{release} Requires: util-linux >= 2.27.1 Requires: group(lock) From c74b1a000c2e6088a6abd9970b7f0f79af959639618a17db23709df0de30123a Mon Sep 17 00:00:00 2001 From: Franck Bui Date: Fri, 28 Aug 2020 10:41:59 +0000 Subject: [PATCH 2/3] - Adjust %pre and %post for the restoration of upstream tmp.mount (boo#1175779) - Adjust %pre and %post for the restoration of upstream tmp.mount (boo#1175779) Now with more whitespace and readlink -f. OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1110 --- systemd-mini.changes | 5 +++++ systemd-mini.spec | 13 +++++++------ systemd.changes | 5 +++++ systemd.spec | 13 +++++++------ 4 files changed, 24 insertions(+), 12 deletions(-) diff --git a/systemd-mini.changes b/systemd-mini.changes index a218a91..5ac5e11 100644 --- a/systemd-mini.changes +++ b/systemd-mini.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Aug 27 12:51:15 UTC 2020 - Fabian Vogt + +- Adjust %pre and %post for the restoration of upstream tmp.mount (boo#1175779) + ------------------------------------------------------------------- Wed Aug 26 09:46:46 UTC 2020 - Franck Bui diff --git a/systemd-mini.spec b/systemd-mini.spec index a13df83..1b8c166 100644 --- a/systemd-mini.spec +++ b/systemd-mini.spec @@ -786,12 +786,6 @@ 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 -if [ $1 -gt 1 ] ; then - case "$(systemctl show -pFragmentPath tmp.mount)" in - FragmentPath=/usr/lib/systemd/system/tmp.mount) - ln -sf %{_datadir}/systemd/tmp.mount /etc/systemd/system/ || : - esac -fi %post # Make /etc/machine-id an empty file during package installation. On @@ -869,6 +863,13 @@ fi # It's run only once. %{_prefix}/lib/systemd/scripts/migrate-sysconfig-i18n.sh || : +# Previous versions had tmp.mount moved to /usr/share/systemd/tmp.mount. +# It could be symlinked into /etc to make /tmp a tmpfs. The file does not exist anymore, +# so migrate the link to the new location. +if [ "$(readlink -f %{_sysconfdir}/systemd/system/tmp.mount)" = "%{_datadir}/systemd/tmp.mount" ] ; then + ln -sf %{_unitdir}/tmp.mount %{_sysconfdir}/systemd/system/tmp.mount +fi + %postun %systemd_postun # Avoid restarting logind until fixed upstream (issue #1163) diff --git a/systemd.changes b/systemd.changes index a218a91..5ac5e11 100644 --- a/systemd.changes +++ b/systemd.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Aug 27 12:51:15 UTC 2020 - Fabian Vogt + +- Adjust %pre and %post for the restoration of upstream tmp.mount (boo#1175779) + ------------------------------------------------------------------- Wed Aug 26 09:46:46 UTC 2020 - Franck Bui diff --git a/systemd.spec b/systemd.spec index b2ff8ec..a45247b 100644 --- a/systemd.spec +++ b/systemd.spec @@ -784,12 +784,6 @@ 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 -if [ $1 -gt 1 ] ; then - case "$(systemctl show -pFragmentPath tmp.mount)" in - FragmentPath=/usr/lib/systemd/system/tmp.mount) - ln -sf %{_datadir}/systemd/tmp.mount /etc/systemd/system/ || : - esac -fi %post # Make /etc/machine-id an empty file during package installation. On @@ -867,6 +861,13 @@ fi # It's run only once. %{_prefix}/lib/systemd/scripts/migrate-sysconfig-i18n.sh || : +# Previous versions had tmp.mount moved to /usr/share/systemd/tmp.mount. +# It could be symlinked into /etc to make /tmp a tmpfs. The file does not exist anymore, +# so migrate the link to the new location. +if [ "$(readlink -f %{_sysconfdir}/systemd/system/tmp.mount)" = "%{_datadir}/systemd/tmp.mount" ] ; then + ln -sf %{_unitdir}/tmp.mount %{_sysconfdir}/systemd/system/tmp.mount +fi + %postun %systemd_postun # Avoid restarting logind until fixed upstream (issue #1163) From 13448b70115ca8bc70b39a13b2708980a5af48b3068204af7fcc9d714f272ff8 Mon Sep 17 00:00:00 2001 From: Franck Bui Date: Fri, 28 Aug 2020 20:03:31 +0000 Subject: [PATCH 3/3] %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