SHA256
1
0
forked from pool/systemd

Accepting request 579036 from home:fbui:systemd:Factory

- Split off systemd-container sub-package off
  Other distros already do it and it seems a good idea to not install
  this stuff on new installations by default. At least
  /var/lib/machines subvol is not created anymore at boot even if it
  wasn't used at all.

OBS-URL: https://build.opensuse.org/request/show/579036
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1014
This commit is contained in:
Franck Bui 2018-02-22 15:07:17 +00:00 committed by Git OBS Bridge
parent 926a234c77
commit aee6daab3a
4 changed files with 228 additions and 90 deletions

View File

@ -1,3 +1,13 @@
-------------------------------------------------------------------
Thu Feb 22 14:57:19 UTC 2018 - fbui@suse.com
- Split off systemd-container sub-package off
Other distros already do it and it seems a good idea to not install
this stuff on new installations by default. At least
/var/lib/machines subvol is not created anymore at boot even if it
wasn't used at all.
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Feb 19 14:26:51 UTC 2018 - fbui@suse.com Mon Feb 19 14:26:51 UTC 2018 - fbui@suse.com
@ -75,13 +85,13 @@ Fri Feb 9 07:59:56 UTC 2018 - fbui@suse.com
The previous fix couldn't work on platforms using a RO The previous fix couldn't work on platforms using a RO
rootfs. Therefore we don't ship /usr/lib/systemd/system/tmp.mnt but rootfs. Therefore we don't ship /usr/lib/systemd/system/tmp.mnt but
we still ship a copy in /var. we still ship a copy in /usr/share/systemd.
Users who want to use tmpfs on /tmp are supposed to add a symlink in Users who want to use tmpfs on /tmp are supposed to add a symlink in
/etc/ pointing to the copy shipped in /var. /etc/ pointing to the copy shipped in /usr/share/systemd.
To support the update path we automatically create the symlink if To support the update path we automatically create the symlink if
tmp.mount in use is located in /usr. tmp.mount in use is located in /usr/lib/systemd.
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Feb 6 16:11:40 UTC 2018 - fbui@suse.com Tue Feb 6 16:11:40 UTC 2018 - fbui@suse.com

View File

@ -293,6 +293,20 @@ Conflicts: libudev-devel
This package contains the development files for the library libudev, a This package contains the development files for the library libudev, a
dynamic library, which provides access to udev device information. dynamic library, which provides access to udev device information.
%package container
Summary: Systemd tools for container management
License: LGPL-2.1+
Group: System/Base
Requires: %{name} = %{version}-%{release}
%systemd_requires
Provides: systemd:%{_bindir}/systemd-nspawn
%description container
Systemd tools to spawn and manage containers and virtual machines.
This package contains systemd-nspawn, machinectl, systemd-machined,
and systemd-importd.
%if ! 0%{?bootstrap} %if ! 0%{?bootstrap}
%package logger %package logger
Summary: Journal only logging Summary: Journal only logging
@ -697,23 +711,6 @@ done
%{_prefix}/lib/systemd/scripts/upgrade-from-pre-210.sh || : %{_prefix}/lib/systemd/scripts/upgrade-from-pre-210.sh || :
if [ $1 -gt 1 ]; then if [ $1 -gt 1 ]; then
# Convert /var/lib/machines subvolume to make it suitable for
# rollbacks, if needed. See bsc#992573. The installer has been fixed
# to create it at installation time.
#
# The convertion might only be problematic for openSUSE distros
# (TW/Factory) where previous versions had already created the
# subvolume at the wrong place (via tmpfiles for example) and user
# started to populate and use it. In this case we'll let the user fix
# it manually.
#
# For SLE12 this subvolume was only introduced during the upgrade from
# v210 to v228 when we added this workaround. Note that the subvolume
# is still created at the wrong place due to the call to
# tmpfiles_create macro previously however it's empty so there
# shouldn't be any issues.
%{_prefix}/lib/systemd/scripts/fix-machines-btrfs-subvol.sh || :
# Migrate i18n setting stuff thout could be previously # Migrate i18n setting stuff thout could be previously
# configured in /etc/sysconfig but now is defined only in the # configured in /etc/sysconfig but now is defined only in the
# systemd official places (/etc/locale.conf, # systemd official places (/etc/locale.conf,
@ -778,6 +775,26 @@ systemctl daemon-reload || :
%postun -n libudev%{?mini}1 -p /sbin/ldconfig %postun -n libudev%{?mini}1 -p /sbin/ldconfig
%postun -n libsystemd0%{?mini} -p /sbin/ldconfig %postun -n libsystemd0%{?mini} -p /sbin/ldconfig
%post container
if [ $1 -gt 1 ]; then
# Convert /var/lib/machines subvolume to make it suitable for
# rollbacks, if needed. See bsc#992573. The installer has been fixed
# to create it at installation time.
#
# The convertion might only be problematic for openSUSE distros
# (TW/Factory) where previous versions had already created the
# subvolume at the wrong place (via tmpfiles for example) and user
# started to populate and use it. In this case we'll let the user fix
# it manually.
#
# For SLE12 this subvolume was only introduced during the upgrade from
# v210 to v228 when we added this workaround. Note that the subvolume
# is still created at the wrong place due to the call to
# tmpfiles_create macro previously however it's empty so there
# shouldn't be any issues.
%{_prefix}/lib/systemd/scripts/fix-machines-btrfs-subvol.sh || :
fi
%if ! 0%{?bootstrap} %if ! 0%{?bootstrap}
%post logger %post logger
%tmpfiles_create -- --prefix=%{_localstatedir}/log/journal/ %tmpfiles_create -- --prefix=%{_localstatedir}/log/journal/
@ -842,9 +859,6 @@ fi
%{_bindir}/kernel-install %{_bindir}/kernel-install
%{_bindir}/hostnamectl %{_bindir}/hostnamectl
%{_bindir}/localectl %{_bindir}/localectl
%if %{with machined}
%{_bindir}/machinectl
%endif
%{_bindir}/systemctl %{_bindir}/systemctl
%{_bindir}/systemd-analyze %{_bindir}/systemd-analyze
%{_bindir}/coredumpctl %{_bindir}/coredumpctl
@ -864,7 +878,6 @@ fi
%{_bindir}/systemd-tty-ask-password-agent %{_bindir}/systemd-tty-ask-password-agent
%{_bindir}/systemd-tmpfiles %{_bindir}/systemd-tmpfiles
%{_bindir}/systemd-machine-id-setup %{_bindir}/systemd-machine-id-setup
%{_bindir}/systemd-nspawn
%if %{with resolved} %if %{with resolved}
%{_bindir}/systemd-resolve %{_bindir}/systemd-resolve
%endif %endif
@ -896,6 +909,24 @@ fi
%exclude %{_unitdir}/systemd-udev*.* %exclude %{_unitdir}/systemd-udev*.*
%exclude %{_unitdir}/*.target.wants/systemd-udev*.* %exclude %{_unitdir}/*.target.wants/systemd-udev*.*
%exclude %{_unitdir}/initrd-udevadm-cleanup-db.service %exclude %{_unitdir}/initrd-udevadm-cleanup-db.service
%exclude %{_unitdir}/systemd-nspawn@.service
%if %{with machined}
%exclude %{_prefix}/lib/systemd/systemd-machined
%exclude %{_unitdir}/systemd-machined.service
%exclude %{_unitdir}/dbus-org.freedesktop.machine1.service
%exclude %{_unitdir}/var-lib-machines.mount
%exclude %{_unitdir}/machine.slice
%exclude %{_unitdir}/machines.target*
%exclude %{_unitdir}/*.target.wants/var-lib-machines.mount
%endif
%if %{with importd}
%exclude %{_prefix}/lib/systemd/systemd-import*
%exclude %{_prefix}/lib/systemd/systemd-pull
%exclude %{_prefix}/lib/systemd/import-pubring.gpg
%exclude %{_unitdir}/systemd-importd.service
%exclude %{_unitdir}/dbus-org.freedesktop.import1.service
%endif
%{_unitdir}/*.automount %{_unitdir}/*.automount
%{_unitdir}/*.service %{_unitdir}/*.service
%{_unitdir}/*.slice %{_unitdir}/*.slice
@ -914,6 +945,7 @@ fi
%{_prefix}/lib/systemd/resolv.conf %{_prefix}/lib/systemd/resolv.conf
%endif %endif
%{_prefix}/lib/systemd/scripts %{_prefix}/lib/systemd/scripts
%exclude %{_prefix}/lib/systemd/scripts/fix-machines-btrfs-subvol.sh
%dir %{_journalcatalogdir} %dir %{_journalcatalogdir}
%{_journalcatalogdir}/systemd.catalog %{_journalcatalogdir}/systemd.catalog
%{_journalcatalogdir}/systemd.*.catalog %{_journalcatalogdir}/systemd.*.catalog
@ -930,9 +962,6 @@ fi
%dir %{_unitdir}/user@0.service.d %dir %{_unitdir}/user@0.service.d
%{_unitdir}/getty@tty1.service.d/noclear.conf %{_unitdir}/getty@tty1.service.d/noclear.conf
%{_unitdir}/user@0.service.d/nodelagate.conf %{_unitdir}/user@0.service.d/nodelagate.conf
%if %{with importd}
%{_prefix}/lib/systemd/import-pubring.gpg
%endif
/%{_lib}/security/pam_systemd.so /%{_lib}/security/pam_systemd.so
%if %{with gnuefi} %if %{with gnuefi}
@ -949,6 +978,7 @@ fi
%{_sysusersdir}/ %{_sysusersdir}/
%dir %{_sysconfdir}/tmpfiles.d %dir %{_sysconfdir}/tmpfiles.d
%{_tmpfilesdir}/ %{_tmpfilesdir}/
%exclude %{_tmpfilesdir}/systemd-nspawn.conf
%if %{with journal_remote} %if %{with journal_remote}
%exclude %{_sysusersdir}/systemd-remote.conf %exclude %{_sysusersdir}/systemd-remote.conf
@ -998,9 +1028,6 @@ fi
%{_datadir}/dbus-1/system.d/org.freedesktop.systemd1.conf %{_datadir}/dbus-1/system.d/org.freedesktop.systemd1.conf
%{_datadir}/dbus-1/system.d/org.freedesktop.hostname1.conf %{_datadir}/dbus-1/system.d/org.freedesktop.hostname1.conf
%{_datadir}/dbus-1/system.d/org.freedesktop.timedate1.conf %{_datadir}/dbus-1/system.d/org.freedesktop.timedate1.conf
%if %{with machined}
%{_datadir}/dbus-1/system.d/org.freedesktop.machine1.conf
%endif
%if %{with networkd} %if %{with networkd}
%{_sysconfdir}/systemd/system/dbus-org.freedesktop.network1.service %{_sysconfdir}/systemd/system/dbus-org.freedesktop.network1.service
%{_datadir}/dbus-1/system.d/org.freedesktop.network1.conf %{_datadir}/dbus-1/system.d/org.freedesktop.network1.conf
@ -1009,9 +1036,6 @@ fi
%{_sysconfdir}/systemd/system/dbus-org.freedesktop.resolve1.service %{_sysconfdir}/systemd/system/dbus-org.freedesktop.resolve1.service
%{_datadir}/dbus-1/system.d/org.freedesktop.resolve1.conf %{_datadir}/dbus-1/system.d/org.freedesktop.resolve1.conf
%endif %endif
%if %{with importd}
%{_datadir}/dbus-1/system.d/org.freedesktop.import1.conf
%endif
# Some files created at runtime. # Some files created at runtime.
%ghost %config(noreplace) %{_sysconfdir}/X11/xorg.conf.d/00-keyboard.conf %ghost %config(noreplace) %{_sysconfdir}/X11/xorg.conf.d/00-keyboard.conf
@ -1043,12 +1067,6 @@ fi
%if %{with resolved} %if %{with resolved}
%{_datadir}/dbus-1/system-services/org.freedesktop.resolve1.service %{_datadir}/dbus-1/system-services/org.freedesktop.resolve1.service
%endif %endif
%if %{with machined}
%{_datadir}/dbus-1/system-services/org.freedesktop.machine1.service
%endif
%if %{with importd}
%{_datadir}/dbus-1/system-services/org.freedesktop.import1.service
%endif
%dir %{_datadir}/polkit-1 %dir %{_datadir}/polkit-1
%dir %{_datadir}/polkit-1/actions %dir %{_datadir}/polkit-1/actions
@ -1057,12 +1075,6 @@ fi
%{_datadir}/polkit-1/actions/org.freedesktop.locale1.policy %{_datadir}/polkit-1/actions/org.freedesktop.locale1.policy
%{_datadir}/polkit-1/actions/org.freedesktop.timedate1.policy %{_datadir}/polkit-1/actions/org.freedesktop.timedate1.policy
%{_datadir}/polkit-1/actions/org.freedesktop.login1.policy %{_datadir}/polkit-1/actions/org.freedesktop.login1.policy
%if %{with machined}
%{_datadir}/polkit-1/actions/org.freedesktop.machine1.policy
%endif
%if %{with importd}
%{_datadir}/polkit-1/actions/org.freedesktop.import1.policy
%endif
%if %{with networkd} %if %{with networkd}
%{_datadir}/polkit-1/rules.d/systemd-networkd.rules %{_datadir}/polkit-1/rules.d/systemd-networkd.rules
%endif %endif
@ -1081,6 +1093,13 @@ fi
%{_mandir}/man8/systemd-journald* %{_mandir}/man8/systemd-journald*
%{_mandir}/man8/systemd-u[ps]* %{_mandir}/man8/systemd-u[ps]*
%{_mandir}/man8/30-systemd-environment-d-generator.* %{_mandir}/man8/30-systemd-environment-d-generator.*
%if %{with machined}
%exclude %{_mandir}/man*/machinectl*
%exclude %{_mandir}/man*/systemd-machined*
%endif
%if %{with importd}
%exclude %{_mandir}/man*/systemd-importd*
%endif
%endif %endif
%{_docdir}/systemd %{_docdir}/systemd
@ -1202,6 +1221,46 @@ fi
%{_mandir}/man3/*udev*.3* %{_mandir}/man3/*udev*.3*
%endif %endif
%files container
%defattr(-,root,root)
%{_bindir}/systemd-nspawn
%{_unitdir}/systemd-nspawn@.service
%{_tmpfilesdir}/systemd-nspawn.conf
%if %{with machined}
%{_bindir}/machinectl
%{_prefix}/lib/systemd/systemd-machined
%{_unitdir}/systemd-machined.service
%{_unitdir}/dbus-org.freedesktop.machine1.service
%{_unitdir}/var-lib-machines.mount
%{_unitdir}/machine.slice
%{_unitdir}/machines.target*
%{_unitdir}/*.target.wants/var-lib-machines.mount
%{_prefix}/lib/systemd/scripts/fix-machines-btrfs-subvol.sh
%{_datadir}/dbus-1/system.d/org.freedesktop.machine1.conf
%{_datadir}/dbus-1/system-services/org.freedesktop.machine1.service
%{_datadir}/polkit-1/actions/org.freedesktop.machine1.policy
%endif
%if %{with importd}
%{_prefix}/lib/systemd/systemd-import*
%{_prefix}/lib/systemd/systemd-pull
%{_prefix}/lib/systemd/import-pubring.gpg
%{_unitdir}/systemd-importd.service
%{_unitdir}/dbus-org.freedesktop.import1.service
%{_datadir}/dbus-1/system.d/org.freedesktop.import1.conf
%{_datadir}/dbus-1/system-services/org.freedesktop.import1.service
%{_datadir}/polkit-1/actions/org.freedesktop.import1.policy
%endif
%if ! 0%{?bootstrap}
%{_mandir}/man*/*nspawn*
%if %{with machined}
%{_mandir}/man*/machinectl*
%{_mandir}/man*/systemd-machined*
%endif
%if %{with importd}
%{_mandir}/man*/systemd-importd*
%endif
%endif
%if ! 0%{?bootstrap} %if ! 0%{?bootstrap}
%files logger %files logger
%defattr(-,root,root) %defattr(-,root,root)

View File

@ -1,3 +1,13 @@
-------------------------------------------------------------------
Thu Feb 22 14:57:19 UTC 2018 - fbui@suse.com
- Split off systemd-container sub-package off
Other distros already do it and it seems a good idea to not install
this stuff on new installations by default. At least
/var/lib/machines subvol is not created anymore at boot even if it
wasn't used at all.
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Feb 19 14:26:51 UTC 2018 - fbui@suse.com Mon Feb 19 14:26:51 UTC 2018 - fbui@suse.com
@ -75,13 +85,13 @@ Fri Feb 9 07:59:56 UTC 2018 - fbui@suse.com
The previous fix couldn't work on platforms using a RO The previous fix couldn't work on platforms using a RO
rootfs. Therefore we don't ship /usr/lib/systemd/system/tmp.mnt but rootfs. Therefore we don't ship /usr/lib/systemd/system/tmp.mnt but
we still ship a copy in /var. we still ship a copy in /usr/share/systemd.
Users who want to use tmpfs on /tmp are supposed to add a symlink in Users who want to use tmpfs on /tmp are supposed to add a symlink in
/etc/ pointing to the copy shipped in /var. /etc/ pointing to the copy shipped in /usr/share/systemd.
To support the update path we automatically create the symlink if To support the update path we automatically create the symlink if
tmp.mount in use is located in /usr. tmp.mount in use is located in /usr/lib/systemd.
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Feb 6 16:11:40 UTC 2018 - fbui@suse.com Tue Feb 6 16:11:40 UTC 2018 - fbui@suse.com

View File

@ -291,6 +291,20 @@ Conflicts: libudev-devel
This package contains the development files for the library libudev, a This package contains the development files for the library libudev, a
dynamic library, which provides access to udev device information. dynamic library, which provides access to udev device information.
%package container
Summary: Systemd tools for container management
License: LGPL-2.1+
Group: System/Base
Requires: %{name} = %{version}-%{release}
%systemd_requires
Provides: systemd:%{_bindir}/systemd-nspawn
%description container
Systemd tools to spawn and manage containers and virtual machines.
This package contains systemd-nspawn, machinectl, systemd-machined,
and systemd-importd.
%if ! 0%{?bootstrap} %if ! 0%{?bootstrap}
%package logger %package logger
Summary: Journal only logging Summary: Journal only logging
@ -695,23 +709,6 @@ done
%{_prefix}/lib/systemd/scripts/upgrade-from-pre-210.sh || : %{_prefix}/lib/systemd/scripts/upgrade-from-pre-210.sh || :
if [ $1 -gt 1 ]; then if [ $1 -gt 1 ]; then
# Convert /var/lib/machines subvolume to make it suitable for
# rollbacks, if needed. See bsc#992573. The installer has been fixed
# to create it at installation time.
#
# The convertion might only be problematic for openSUSE distros
# (TW/Factory) where previous versions had already created the
# subvolume at the wrong place (via tmpfiles for example) and user
# started to populate and use it. In this case we'll let the user fix
# it manually.
#
# For SLE12 this subvolume was only introduced during the upgrade from
# v210 to v228 when we added this workaround. Note that the subvolume
# is still created at the wrong place due to the call to
# tmpfiles_create macro previously however it's empty so there
# shouldn't be any issues.
%{_prefix}/lib/systemd/scripts/fix-machines-btrfs-subvol.sh || :
# Migrate i18n setting stuff thout could be previously # Migrate i18n setting stuff thout could be previously
# configured in /etc/sysconfig but now is defined only in the # configured in /etc/sysconfig but now is defined only in the
# systemd official places (/etc/locale.conf, # systemd official places (/etc/locale.conf,
@ -776,6 +773,26 @@ systemctl daemon-reload || :
%postun -n libudev%{?mini}1 -p /sbin/ldconfig %postun -n libudev%{?mini}1 -p /sbin/ldconfig
%postun -n libsystemd0%{?mini} -p /sbin/ldconfig %postun -n libsystemd0%{?mini} -p /sbin/ldconfig
%post container
if [ $1 -gt 1 ]; then
# Convert /var/lib/machines subvolume to make it suitable for
# rollbacks, if needed. See bsc#992573. The installer has been fixed
# to create it at installation time.
#
# The convertion might only be problematic for openSUSE distros
# (TW/Factory) where previous versions had already created the
# subvolume at the wrong place (via tmpfiles for example) and user
# started to populate and use it. In this case we'll let the user fix
# it manually.
#
# For SLE12 this subvolume was only introduced during the upgrade from
# v210 to v228 when we added this workaround. Note that the subvolume
# is still created at the wrong place due to the call to
# tmpfiles_create macro previously however it's empty so there
# shouldn't be any issues.
%{_prefix}/lib/systemd/scripts/fix-machines-btrfs-subvol.sh || :
fi
%if ! 0%{?bootstrap} %if ! 0%{?bootstrap}
%post logger %post logger
%tmpfiles_create -- --prefix=%{_localstatedir}/log/journal/ %tmpfiles_create -- --prefix=%{_localstatedir}/log/journal/
@ -840,9 +857,6 @@ fi
%{_bindir}/kernel-install %{_bindir}/kernel-install
%{_bindir}/hostnamectl %{_bindir}/hostnamectl
%{_bindir}/localectl %{_bindir}/localectl
%if %{with machined}
%{_bindir}/machinectl
%endif
%{_bindir}/systemctl %{_bindir}/systemctl
%{_bindir}/systemd-analyze %{_bindir}/systemd-analyze
%{_bindir}/coredumpctl %{_bindir}/coredumpctl
@ -862,7 +876,6 @@ fi
%{_bindir}/systemd-tty-ask-password-agent %{_bindir}/systemd-tty-ask-password-agent
%{_bindir}/systemd-tmpfiles %{_bindir}/systemd-tmpfiles
%{_bindir}/systemd-machine-id-setup %{_bindir}/systemd-machine-id-setup
%{_bindir}/systemd-nspawn
%if %{with resolved} %if %{with resolved}
%{_bindir}/systemd-resolve %{_bindir}/systemd-resolve
%endif %endif
@ -894,6 +907,24 @@ fi
%exclude %{_unitdir}/systemd-udev*.* %exclude %{_unitdir}/systemd-udev*.*
%exclude %{_unitdir}/*.target.wants/systemd-udev*.* %exclude %{_unitdir}/*.target.wants/systemd-udev*.*
%exclude %{_unitdir}/initrd-udevadm-cleanup-db.service %exclude %{_unitdir}/initrd-udevadm-cleanup-db.service
%exclude %{_unitdir}/systemd-nspawn@.service
%if %{with machined}
%exclude %{_prefix}/lib/systemd/systemd-machined
%exclude %{_unitdir}/systemd-machined.service
%exclude %{_unitdir}/dbus-org.freedesktop.machine1.service
%exclude %{_unitdir}/var-lib-machines.mount
%exclude %{_unitdir}/machine.slice
%exclude %{_unitdir}/machines.target*
%exclude %{_unitdir}/*.target.wants/var-lib-machines.mount
%endif
%if %{with importd}
%exclude %{_prefix}/lib/systemd/systemd-import*
%exclude %{_prefix}/lib/systemd/systemd-pull
%exclude %{_prefix}/lib/systemd/import-pubring.gpg
%exclude %{_unitdir}/systemd-importd.service
%exclude %{_unitdir}/dbus-org.freedesktop.import1.service
%endif
%{_unitdir}/*.automount %{_unitdir}/*.automount
%{_unitdir}/*.service %{_unitdir}/*.service
%{_unitdir}/*.slice %{_unitdir}/*.slice
@ -912,6 +943,7 @@ fi
%{_prefix}/lib/systemd/resolv.conf %{_prefix}/lib/systemd/resolv.conf
%endif %endif
%{_prefix}/lib/systemd/scripts %{_prefix}/lib/systemd/scripts
%exclude %{_prefix}/lib/systemd/scripts/fix-machines-btrfs-subvol.sh
%dir %{_journalcatalogdir} %dir %{_journalcatalogdir}
%{_journalcatalogdir}/systemd.catalog %{_journalcatalogdir}/systemd.catalog
%{_journalcatalogdir}/systemd.*.catalog %{_journalcatalogdir}/systemd.*.catalog
@ -928,9 +960,6 @@ fi
%dir %{_unitdir}/user@0.service.d %dir %{_unitdir}/user@0.service.d
%{_unitdir}/getty@tty1.service.d/noclear.conf %{_unitdir}/getty@tty1.service.d/noclear.conf
%{_unitdir}/user@0.service.d/nodelagate.conf %{_unitdir}/user@0.service.d/nodelagate.conf
%if %{with importd}
%{_prefix}/lib/systemd/import-pubring.gpg
%endif
/%{_lib}/security/pam_systemd.so /%{_lib}/security/pam_systemd.so
%if %{with gnuefi} %if %{with gnuefi}
@ -947,6 +976,7 @@ fi
%{_sysusersdir}/ %{_sysusersdir}/
%dir %{_sysconfdir}/tmpfiles.d %dir %{_sysconfdir}/tmpfiles.d
%{_tmpfilesdir}/ %{_tmpfilesdir}/
%exclude %{_tmpfilesdir}/systemd-nspawn.conf
%if %{with journal_remote} %if %{with journal_remote}
%exclude %{_sysusersdir}/systemd-remote.conf %exclude %{_sysusersdir}/systemd-remote.conf
@ -996,9 +1026,6 @@ fi
%{_datadir}/dbus-1/system.d/org.freedesktop.systemd1.conf %{_datadir}/dbus-1/system.d/org.freedesktop.systemd1.conf
%{_datadir}/dbus-1/system.d/org.freedesktop.hostname1.conf %{_datadir}/dbus-1/system.d/org.freedesktop.hostname1.conf
%{_datadir}/dbus-1/system.d/org.freedesktop.timedate1.conf %{_datadir}/dbus-1/system.d/org.freedesktop.timedate1.conf
%if %{with machined}
%{_datadir}/dbus-1/system.d/org.freedesktop.machine1.conf
%endif
%if %{with networkd} %if %{with networkd}
%{_sysconfdir}/systemd/system/dbus-org.freedesktop.network1.service %{_sysconfdir}/systemd/system/dbus-org.freedesktop.network1.service
%{_datadir}/dbus-1/system.d/org.freedesktop.network1.conf %{_datadir}/dbus-1/system.d/org.freedesktop.network1.conf
@ -1007,9 +1034,6 @@ fi
%{_sysconfdir}/systemd/system/dbus-org.freedesktop.resolve1.service %{_sysconfdir}/systemd/system/dbus-org.freedesktop.resolve1.service
%{_datadir}/dbus-1/system.d/org.freedesktop.resolve1.conf %{_datadir}/dbus-1/system.d/org.freedesktop.resolve1.conf
%endif %endif
%if %{with importd}
%{_datadir}/dbus-1/system.d/org.freedesktop.import1.conf
%endif
# Some files created at runtime. # Some files created at runtime.
%ghost %config(noreplace) %{_sysconfdir}/X11/xorg.conf.d/00-keyboard.conf %ghost %config(noreplace) %{_sysconfdir}/X11/xorg.conf.d/00-keyboard.conf
@ -1041,12 +1065,6 @@ fi
%if %{with resolved} %if %{with resolved}
%{_datadir}/dbus-1/system-services/org.freedesktop.resolve1.service %{_datadir}/dbus-1/system-services/org.freedesktop.resolve1.service
%endif %endif
%if %{with machined}
%{_datadir}/dbus-1/system-services/org.freedesktop.machine1.service
%endif
%if %{with importd}
%{_datadir}/dbus-1/system-services/org.freedesktop.import1.service
%endif
%dir %{_datadir}/polkit-1 %dir %{_datadir}/polkit-1
%dir %{_datadir}/polkit-1/actions %dir %{_datadir}/polkit-1/actions
@ -1055,12 +1073,6 @@ fi
%{_datadir}/polkit-1/actions/org.freedesktop.locale1.policy %{_datadir}/polkit-1/actions/org.freedesktop.locale1.policy
%{_datadir}/polkit-1/actions/org.freedesktop.timedate1.policy %{_datadir}/polkit-1/actions/org.freedesktop.timedate1.policy
%{_datadir}/polkit-1/actions/org.freedesktop.login1.policy %{_datadir}/polkit-1/actions/org.freedesktop.login1.policy
%if %{with machined}
%{_datadir}/polkit-1/actions/org.freedesktop.machine1.policy
%endif
%if %{with importd}
%{_datadir}/polkit-1/actions/org.freedesktop.import1.policy
%endif
%if %{with networkd} %if %{with networkd}
%{_datadir}/polkit-1/rules.d/systemd-networkd.rules %{_datadir}/polkit-1/rules.d/systemd-networkd.rules
%endif %endif
@ -1079,6 +1091,13 @@ fi
%{_mandir}/man8/systemd-journald* %{_mandir}/man8/systemd-journald*
%{_mandir}/man8/systemd-u[ps]* %{_mandir}/man8/systemd-u[ps]*
%{_mandir}/man8/30-systemd-environment-d-generator.* %{_mandir}/man8/30-systemd-environment-d-generator.*
%if %{with machined}
%exclude %{_mandir}/man*/machinectl*
%exclude %{_mandir}/man*/systemd-machined*
%endif
%if %{with importd}
%exclude %{_mandir}/man*/systemd-importd*
%endif
%endif %endif
%{_docdir}/systemd %{_docdir}/systemd
@ -1200,6 +1219,46 @@ fi
%{_mandir}/man3/*udev*.3* %{_mandir}/man3/*udev*.3*
%endif %endif
%files container
%defattr(-,root,root)
%{_bindir}/systemd-nspawn
%{_unitdir}/systemd-nspawn@.service
%{_tmpfilesdir}/systemd-nspawn.conf
%if %{with machined}
%{_bindir}/machinectl
%{_prefix}/lib/systemd/systemd-machined
%{_unitdir}/systemd-machined.service
%{_unitdir}/dbus-org.freedesktop.machine1.service
%{_unitdir}/var-lib-machines.mount
%{_unitdir}/machine.slice
%{_unitdir}/machines.target*
%{_unitdir}/*.target.wants/var-lib-machines.mount
%{_prefix}/lib/systemd/scripts/fix-machines-btrfs-subvol.sh
%{_datadir}/dbus-1/system.d/org.freedesktop.machine1.conf
%{_datadir}/dbus-1/system-services/org.freedesktop.machine1.service
%{_datadir}/polkit-1/actions/org.freedesktop.machine1.policy
%endif
%if %{with importd}
%{_prefix}/lib/systemd/systemd-import*
%{_prefix}/lib/systemd/systemd-pull
%{_prefix}/lib/systemd/import-pubring.gpg
%{_unitdir}/systemd-importd.service
%{_unitdir}/dbus-org.freedesktop.import1.service
%{_datadir}/dbus-1/system.d/org.freedesktop.import1.conf
%{_datadir}/dbus-1/system-services/org.freedesktop.import1.service
%{_datadir}/polkit-1/actions/org.freedesktop.import1.policy
%endif
%if ! 0%{?bootstrap}
%{_mandir}/man*/*nspawn*
%if %{with machined}
%{_mandir}/man*/machinectl*
%{_mandir}/man*/systemd-machined*
%endif
%if %{with importd}
%{_mandir}/man*/systemd-importd*
%endif
%endif
%if ! 0%{?bootstrap} %if ! 0%{?bootstrap}
%files logger %files logger
%defattr(-,root,root) %defattr(-,root,root)