forked from pool/systemd
- machines.target belongs to systemd-container, do its init/cleanup steps from
the scriptlets of this sub-package. OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1342
This commit is contained in:
parent
b595a77284
commit
b630827444
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jan 26 14:02:11 UTC 2023 - Franck Bui <fbui@suse.com>
|
||||||
|
|
||||||
|
- machines.target belongs to systemd-container, do its init/cleanup steps from
|
||||||
|
the scriptlets of this sub-package.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Jan 24 13:19:01 UTC 2023 - Franck Bui <fbui@suse.com>
|
Tue Jan 24 13:19:01 UTC 2023 - Franck Bui <fbui@suse.com>
|
||||||
|
|
||||||
|
10
systemd.spec
10
systemd.spec
@ -962,7 +962,6 @@ find %{buildroot}%{_testsuitedir}/ -name .git\* -exec rm -fr {} \;
|
|||||||
%pre
|
%pre
|
||||||
# Units listed below can be enabled at installation according to their preset
|
# Units listed below can be enabled at installation according to their preset
|
||||||
# setting.
|
# setting.
|
||||||
%systemd_pre machines.target
|
|
||||||
%systemd_pre remote-fs.target
|
%systemd_pre remote-fs.target
|
||||||
%systemd_pre getty@.service
|
%systemd_pre getty@.service
|
||||||
%systemd_pre systemd-timesyncd.service
|
%systemd_pre systemd-timesyncd.service
|
||||||
@ -1022,7 +1021,6 @@ fi
|
|||||||
|
|
||||||
# Units listed below can be enabled at installation accoding to their preset
|
# Units listed below can be enabled at installation accoding to their preset
|
||||||
# setting.
|
# setting.
|
||||||
%systemd_post machines.target
|
|
||||||
%systemd_post remote-fs.target
|
%systemd_post remote-fs.target
|
||||||
%systemd_post getty@.service
|
%systemd_post getty@.service
|
||||||
%systemd_post systemd-timesyncd.service
|
%systemd_post systemd-timesyncd.service
|
||||||
@ -1136,7 +1134,11 @@ rm -f /etc/udev/rules.d/{20,55,65}-cdrom.rules
|
|||||||
%postun -n libudev%{?mini}1 -p %ldconfig
|
%postun -n libudev%{?mini}1 -p %ldconfig
|
||||||
%postun -n libsystemd0%{?mini} -p %ldconfig
|
%postun -n libsystemd0%{?mini} -p %ldconfig
|
||||||
|
|
||||||
|
%pre container
|
||||||
|
%systemd_pre machines.target
|
||||||
|
|
||||||
%post container
|
%post container
|
||||||
|
%systemd_post machines.target
|
||||||
%tmpfiles_create systemd-nspawn.conf
|
%tmpfiles_create systemd-nspawn.conf
|
||||||
%if %{with machined}
|
%if %{with machined}
|
||||||
%ldconfig
|
%ldconfig
|
||||||
@ -1157,7 +1159,11 @@ if [ $1 -gt 1 ]; then
|
|||||||
%{_prefix}/lib/systemd/scripts/fix-machines-btrfs-subvol.sh || :
|
%{_prefix}/lib/systemd/scripts/fix-machines-btrfs-subvol.sh || :
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
%preun container
|
||||||
|
%systemd_preun machines.target
|
||||||
|
|
||||||
%postun container
|
%postun container
|
||||||
|
%systemd_postun machines.target
|
||||||
%ldconfig
|
%ldconfig
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user