SHA256
1
0
forked from pool/systemd

Accepting request 479432 from Base:System

1

OBS-URL: https://build.opensuse.org/request/show/479432
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd?expand=0&rev=252
This commit is contained in:
Dominique Leuenberger 2017-03-17 13:59:32 +00:00 committed by Git OBS Bridge
parent 149bd462d0
commit 1481556801
4 changed files with 38 additions and 2 deletions

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Tue Mar 14 14:13:56 UTC 2017 - fbui@suse.com
- Initialize /etc/machine-id during the first boot (bsc#1024740)
Previously that was done at package installation but it didn't fit
well for appliance builds.
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Mar 7 09:22:30 UTC 2017 - fbui@suse.com Tue Mar 7 09:22:30 UTC 2017 - fbui@suse.com

View File

@ -646,13 +646,23 @@ cat %{S:14} >>%{buildroot}%{_datarootdir}/systemd/kbd-model-map
exit 0 exit 0
%post %post
# Make /etc/machine-id an empty file during package installation. On
# the first boot, machine-id is initialized and either committed (if
# /etc/ is writable) or the system/image runs with a transient machine
# ID, that changes on each boot (if the image is read-only). This is
# especially important for appliance builds to avoid an identical
# machine ID in all images.
if [ $1 -eq 1 ]; then
touch %{_sysconfdir}/machine-id
chmod 666 %{_sysconfdir}/machine-id
fi
%sysusers_create /usr/lib/sysusers.d/systemd.conf %sysusers_create /usr/lib/sysusers.d/systemd.conf
%if ! 0%{?bootstrap} %if ! 0%{?bootstrap}
pam-config -a --systemd || : pam-config -a --systemd || :
%endif %endif
ldconfig ldconfig
[ -e %{_localstatedir}/lib/random-seed ] && mv %{_localstatedir}/lib/random-seed %{_localstatedir}/lib/systemd/ || : [ -e %{_localstatedir}/lib/random-seed ] && mv %{_localstatedir}/lib/random-seed %{_localstatedir}/lib/systemd/ || :
systemd-machine-id-setup || :
/usr/lib/systemd/systemd-random-seed save || : /usr/lib/systemd/systemd-random-seed save || :
systemctl daemon-reexec || : systemctl daemon-reexec || :
%journal_catalog_update %journal_catalog_update

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Tue Mar 14 14:13:56 UTC 2017 - fbui@suse.com
- Initialize /etc/machine-id during the first boot (bsc#1024740)
Previously that was done at package installation but it didn't fit
well for appliance builds.
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Mar 7 09:22:30 UTC 2017 - fbui@suse.com Tue Mar 7 09:22:30 UTC 2017 - fbui@suse.com

View File

@ -644,13 +644,23 @@ cat %{S:14} >>%{buildroot}%{_datarootdir}/systemd/kbd-model-map
exit 0 exit 0
%post %post
# Make /etc/machine-id an empty file during package installation. On
# the first boot, machine-id is initialized and either committed (if
# /etc/ is writable) or the system/image runs with a transient machine
# ID, that changes on each boot (if the image is read-only). This is
# especially important for appliance builds to avoid an identical
# machine ID in all images.
if [ $1 -eq 1 ]; then
touch %{_sysconfdir}/machine-id
chmod 666 %{_sysconfdir}/machine-id
fi
%sysusers_create /usr/lib/sysusers.d/systemd.conf %sysusers_create /usr/lib/sysusers.d/systemd.conf
%if ! 0%{?bootstrap} %if ! 0%{?bootstrap}
pam-config -a --systemd || : pam-config -a --systemd || :
%endif %endif
ldconfig ldconfig
[ -e %{_localstatedir}/lib/random-seed ] && mv %{_localstatedir}/lib/random-seed %{_localstatedir}/lib/systemd/ || : [ -e %{_localstatedir}/lib/random-seed ] && mv %{_localstatedir}/lib/random-seed %{_localstatedir}/lib/systemd/ || :
systemd-machine-id-setup || :
/usr/lib/systemd/systemd-random-seed save || : /usr/lib/systemd/systemd-random-seed save || :
systemctl daemon-reexec || : systemctl daemon-reexec || :
%journal_catalog_update %journal_catalog_update