- Add var-run-lock.patch: make sure /var/run and /var/lock are

handled as bind mount if they aren't symlinks.
- Update storage-after-cryptsetup.patch with new systemctl path.
- Migrate broken symlinks in /etc/systemd/system due to new systemd
  location.

- Update to release 195:
  + journalctl agained --since and --until, as well as filtering
    for units with --unit=/-u.
  + allow ExecReload properly for Type=oneshot (needed for
    iptables.service, rpc-nfsd.service).
  + journal daemon supports time-based rotation and vaccuming.
  + journalctl -F allow to list all values of a certain field in
    journal database.
  + new commandline clients for timedated, locald and hostnamed
  + new tool systemd-coredumpctl to list and extract coredumps from
    journal.
  + improve gatewayd: follow mode, filtering, support for
    HTML5/JSON Server-Sent-Events.
  + reload support in SysV initscripts is now detected when file is
    parted.
  + "systemctl status --follow" as been removed, use "journalctl -fu
    instead"
  + journald.conf RuntimeMinSize and PersistentMinSize settings
    have been removed.
- Add compatibility symlink for systemd-ask-password and systemctl
  in /bin.

- Add var-run-lock.patch: make sure /var/run and /var/lock are
  handled as bind mount if they aren't symlinks.

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=301
This commit is contained in:
Stephan Kulow 2012-10-29 18:55:30 +00:00 committed by Git OBS Bridge
parent 6e0d9c4c7b
commit ec71446676
9 changed files with 237 additions and 28 deletions

View File

@ -7,11 +7,11 @@ Subject: [PATCH] fix support for boot prefixed initscript (bnc#746506)
src/systemctl.c | 20 ++++++++++++++++++++ src/systemctl.c | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+) 1 file changed, 20 insertions(+)
Index: systemd-193/src/systemctl/systemctl.c Index: systemd-195/src/systemctl/systemctl.c
=================================================================== ===================================================================
--- systemd-193.orig/src/systemctl/systemctl.c --- systemd-195.orig/src/systemctl/systemctl.c
+++ systemd-193/src/systemctl/systemctl.c +++ systemd-195/src/systemctl/systemctl.c
@@ -3475,7 +3475,27 @@ static int enable_sysv_units(char **args @@ -3453,7 +3453,27 @@ static int enable_sysv_units(char **args
if (!found_sysv) { if (!found_sysv) {
free(p); free(p);

View File

@ -54,7 +54,7 @@ Index: systemd-194/src/cryptsetup/cryptsetup-generator.c
+ "RemainAfterExit=true\n" + "RemainAfterExit=true\n"
+ "Type=oneshot\n" + "Type=oneshot\n"
+ "TimeoutSec=0\n" + "TimeoutSec=0\n"
+ "ExecStart=/bin/systemctl restart lvm.service\n"); + "ExecStart=/usr/bin/systemctl restart lvm.service\n");
+ +
+ fflush(f); + fflush(f);
+ +

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a275ce044f66f28c5ed0846e7019438ce8b5f596e8255f3455e32b3c0db5f631
size 1409672

3
systemd-195.tar.xz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e9041a8b84ed971d08df2b96f1b7dbb1d49b788e275c7cc39912f656bd826303
size 1441308

View File

@ -1,3 +1,37 @@
-------------------------------------------------------------------
Mon Oct 29 13:01:20 UTC 2012 - fcrozat@suse.com
- Add var-run-lock.patch: make sure /var/run and /var/lock are
handled as bind mount if they aren't symlinks.
- Update storage-after-cryptsetup.patch with new systemctl path.
- Migrate broken symlinks in /etc/systemd/system due to new systemd
location.
-------------------------------------------------------------------
Fri Oct 26 13:37:52 UTC 2012 - fcrozat@suse.com
- Update to release 195:
+ journalctl agained --since and --until, as well as filtering
for units with --unit=/-u.
+ allow ExecReload properly for Type=oneshot (needed for
iptables.service, rpc-nfsd.service).
+ journal daemon supports time-based rotation and vaccuming.
+ journalctl -F allow to list all values of a certain field in
journal database.
+ new commandline clients for timedated, locald and hostnamed
+ new tool systemd-coredumpctl to list and extract coredumps from
journal.
+ improve gatewayd: follow mode, filtering, support for
HTML5/JSON Server-Sent-Events.
+ reload support in SysV initscripts is now detected when file is
parted.
+ "systemctl status --follow" as been removed, use "journalctl -fu
instead"
+ journald.conf RuntimeMinSize and PersistentMinSize settings
have been removed.
- Add compatibility symlink for systemd-ask-password and systemctl
in /bin.
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Oct 18 12:27:07 UTC 2012 - fcrozat@suse.com Thu Oct 18 12:27:07 UTC 2012 - fcrozat@suse.com

View File

@ -25,7 +25,7 @@
Name: systemd-mini Name: systemd-mini
Url: http://www.freedesktop.org/wiki/Software/systemd Url: http://www.freedesktop.org/wiki/Software/systemd
Version: 194 Version: 195
Release: 0 Release: 0
Summary: A System and Session Manager Summary: A System and Session Manager
License: LGPL-2.1+ License: LGPL-2.1+
@ -88,6 +88,8 @@ Requires: kbd
Requires: pam-config >= 0.79-5 Requires: pam-config >= 0.79-5
Requires: systemd-presets-branding Requires: systemd-presets-branding
Requires: util-linux >= 2.21 Requires: util-linux >= 2.21
Requires(post): coreutils
Requires(post): findutils
%endif %endif
Conflicts: filesystem < 11.5 Conflicts: filesystem < 11.5
Conflicts: mkinitrd < 2.7.0 Conflicts: mkinitrd < 2.7.0
@ -123,6 +125,7 @@ Patch38: dm-lvm-after-local-fs-pre-target.patch
Patch53: fastboot-forcefsck.patch Patch53: fastboot-forcefsck.patch
Patch56: support-suse-clock-sysconfig.patch Patch56: support-suse-clock-sysconfig.patch
Patch59: fix-enable-disable-boot-initscript.patch Patch59: fix-enable-disable-boot-initscript.patch
Patch60: var-run-lock.patch
# Upstream First - Policy: # Upstream First - Policy:
# Never add any patches to this package without the upstream commit id # Never add any patches to this package without the upstream commit id
@ -298,6 +301,7 @@ provides GObject access to udev device information.
%patch53 -p1 %patch53 -p1
%patch56 -p1 %patch56 -p1
%patch59 -p1 %patch59 -p1
%patch60 -p1
%build %build
%if ! 0%{?bootstrap} %if ! 0%{?bootstrap}
@ -328,6 +332,8 @@ make %{?_smp_mflags}
mkdir -p $RPM_BUILD_ROOT/{sbin,lib,bin} mkdir -p $RPM_BUILD_ROOT/{sbin,lib,bin}
ln -sf %{_bindir}/udevadm $RPM_BUILD_ROOT/sbin/udevadm ln -sf %{_bindir}/udevadm $RPM_BUILD_ROOT/sbin/udevadm
ln -sf %{_bindir}/systemd-ask-password $RPM_BUILD_ROOT/bin/systemd-ask-password
ln -sf %{_bindir}/systemctl $RPM_BUILD_ROOT/bin/systemctl
ln -sf %{_prefix}/lib/systemd/systemd-udevd $RPM_BUILD_ROOT/sbin/udevd ln -sf %{_prefix}/lib/systemd/systemd-udevd $RPM_BUILD_ROOT/sbin/udevd
mkdir -p $RPM_BUILD_ROOT/%{_prefix}/usr/lib/firmware/updates mkdir -p $RPM_BUILD_ROOT/%{_prefix}/usr/lib/firmware/updates
ln -sf /lib/firmware $RPM_BUILD_ROOT/usr/lib/firmware ln -sf /lib/firmware $RPM_BUILD_ROOT/usr/lib/firmware
@ -395,6 +401,9 @@ rm %{buildroot}/%{_prefix}/lib/systemd/system/local-fs.target.wants/tmp.mount
# journal. # journal.
rm -f %{buildroot}%{_libdir}/../lib/sysctl.d/coredump.conf rm -f %{buildroot}%{_libdir}/../lib/sysctl.d/coredump.conf
# remove README files for now
rm -f %{buildroot}/var/log/README %{buildroot}/etc/init.d/README
# legacy links # legacy links
ln -s loginctl %{buildroot}%{_bindir}/systemd-loginctl ln -s loginctl %{buildroot}%{_bindir}/systemd-loginctl
ln -s journalctl %{buildroot}%{_bindir}/systemd-journalctl ln -s journalctl %{buildroot}%{_bindir}/systemd-journalctl
@ -420,8 +429,8 @@ mkdir -p %{buildroot}%{_prefix}/lib/systemd/system/syslog.target.wants
%post %post
/usr/sbin/pam-config -a --systemd >/dev/null 2>&1 || : /usr/sbin/pam-config -a --systemd >/dev/null 2>&1 || :
/sbin/ldconfig /sbin/ldconfig
/bin/systemd-machine-id-setup >/dev/null 2>&1 || : /usr/bin/systemd-machine-id-setup >/dev/null 2>&1 || :
/bin/systemctl daemon-reexec >/dev/null 2>&1 || : /usr/bin/systemctl daemon-reexec >/dev/null 2>&1 || :
# Try to read default runlevel from the old inittab if it exists # Try to read default runlevel from the old inittab if it exists
if [ ! -e /etc/systemd/system/default.target -a -e /etc/inittab ]; then if [ ! -e /etc/systemd/system/default.target -a -e /etc/inittab ]; then
@ -434,17 +443,24 @@ fi
# Later package updates should not overwrite these settings. # Later package updates should not overwrite these settings.
if [ "$1" -eq 1 ]; then if [ "$1" -eq 1 ]; then
# Enable these services by default. # Enable these services by default.
/bin/systemctl enable \ /usr/bin/systemctl enable \
getty@.service \ getty@.service \
systemd-readahead-collect.service \ systemd-readahead-collect.service \
systemd-readahead-replay.service \ systemd-readahead-replay.service \
remote-fs.target >/dev/null 2>&1 || : remote-fs.target >/dev/null 2>&1 || :
else
# migrate any symlink which may refer to the old path
for f in $(find /etc/systemd/system -type l -xtype l); do
new_target="/usr$(readlink $f)"
[ -f "$new_target" ] && ln -s -f $new_target $f || :
done
fi fi
%postun %postun
/sbin/ldconfig /sbin/ldconfig
if [ $1 -ge 1 ]; then if [ $1 -ge 1 ]; then
/bin/systemctl try-restart systemd-logind.service >/dev/null 2>&1 || : /usr/bin/systemctl try-restart systemd-logind.service >/dev/null 2>&1 || :
fi fi
if [ $1 -eq 0 ]; then if [ $1 -eq 0 ]; then
/usr/sbin/pam-config -d --systemd >/dev/null 2>&1 || : /usr/sbin/pam-config -d --systemd >/dev/null 2>&1 || :
@ -452,7 +468,7 @@ fi
%preun %preun
if [ $1 -eq 0 ]; then if [ $1 -eq 0 ]; then
/bin/systemctl disable \ /usr/bin/systemctl disable \
getty@.service \ getty@.service \
systemd-readahead-collect.service \ systemd-readahead-collect.service \
systemd-readahead-replay.service \ systemd-readahead-replay.service \
@ -482,12 +498,12 @@ rm -f /etc/sysconfig/udev
rm -f /etc/udev/rules.d/20-cdrom.rules rm -f /etc/udev/rules.d/20-cdrom.rules
rm -f /etc/udev/rules.d/55-cdrom.rules rm -f /etc/udev/rules.d/55-cdrom.rules
rm -f /etc/udev/rules.d/65-cdrom.rules rm -f /etc/udev/rules.d/65-cdrom.rules
/bin/systemctl daemon-reload >/dev/null 2>&1 || : /usr/bin/systemctl daemon-reload >/dev/null 2>&1 || :
# start daemon if we are not in a chroot # start daemon if we are not in a chroot
if test -f /proc/1/exe -a -d /proc/1/root; then if test -f /proc/1/exe -a -d /proc/1/root; then
if test "$(stat -Lc '%%D-%%i' /)" = "$(stat -Lc '%%D-%%i' /proc/1/root)"; then if test "$(stat -Lc '%%D-%%i' /)" = "$(stat -Lc '%%D-%%i' /proc/1/root)"; then
/bin/systemctl start systemd-udevd.service >/dev/null 2>&1 || : /usr/bin/systemctl start systemd-udevd.service >/dev/null 2>&1 || :
/sbin/udevd --daemon >/dev/null 2>&1 || : /usr/lib/systemd/systemd-udevd --daemon >/dev/null 2>&1 || :
fi fi
fi fi
@ -501,7 +517,7 @@ fi
%postun -n %{udevpkgname} %postun -n %{udevpkgname}
%insserv_cleanup %insserv_cleanup
/bin/systemctl daemon-reload >/dev/null 2>&1 || : /usr/bin/systemctl daemon-reload >/dev/null 2>&1 || :
[ -x /sbin/mkinitrd_setup ] && /sbin/mkinitrd_setup [ -x /sbin/mkinitrd_setup ] && /sbin/mkinitrd_setup
if [ -e /var/lib/no_initrd_recreation_by_suspend ]; then if [ -e /var/lib/no_initrd_recreation_by_suspend ]; then
@ -528,7 +544,12 @@ rm -rf %{buildroot}
%files %files
%defattr(-,root,root) %defattr(-,root,root)
/bin/systemd /bin/systemd
/bin/systemd-ask-password
/bin/systemctl
%{_bindir}/hostnamectl
%{_bindir}/localectl
%{_bindir}/systemctl %{_bindir}/systemctl
%{_bindir}/systemd-coredumpctl
%{_bindir}/systemd-delta %{_bindir}/systemd-delta
%{_bindir}/systemd-notify %{_bindir}/systemd-notify
%{_bindir}/systemd-journalctl %{_bindir}/systemd-journalctl
@ -543,6 +564,7 @@ rm -rf %{buildroot}
%{_bindir}/systemd-nspawn %{_bindir}/systemd-nspawn
%{_bindir}/systemd-stdio-bridge %{_bindir}/systemd-stdio-bridge
%{_bindir}/systemd-detect-virt %{_bindir}/systemd-detect-virt
%{_bindir}/timedatectl
%{_sbindir}/systemd-sysv-convert %{_sbindir}/systemd-sysv-convert
%{_libdir}/libsystemd-daemon.so.* %{_libdir}/libsystemd-daemon.so.*
%{_libdir}/libsystemd-login.so.* %{_libdir}/libsystemd-login.so.*

View File

@ -1,3 +1,37 @@
-------------------------------------------------------------------
Mon Oct 29 13:01:20 UTC 2012 - fcrozat@suse.com
- Add var-run-lock.patch: make sure /var/run and /var/lock are
handled as bind mount if they aren't symlinks.
- Update storage-after-cryptsetup.patch with new systemctl path.
- Migrate broken symlinks in /etc/systemd/system due to new systemd
location.
-------------------------------------------------------------------
Fri Oct 26 13:37:52 UTC 2012 - fcrozat@suse.com
- Update to release 195:
+ journalctl agained --since and --until, as well as filtering
for units with --unit=/-u.
+ allow ExecReload properly for Type=oneshot (needed for
iptables.service, rpc-nfsd.service).
+ journal daemon supports time-based rotation and vaccuming.
+ journalctl -F allow to list all values of a certain field in
journal database.
+ new commandline clients for timedated, locald and hostnamed
+ new tool systemd-coredumpctl to list and extract coredumps from
journal.
+ improve gatewayd: follow mode, filtering, support for
HTML5/JSON Server-Sent-Events.
+ reload support in SysV initscripts is now detected when file is
parted.
+ "systemctl status --follow" as been removed, use "journalctl -fu
instead"
+ journald.conf RuntimeMinSize and PersistentMinSize settings
have been removed.
- Add compatibility symlink for systemd-ask-password and systemctl
in /bin.
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Oct 18 12:27:07 UTC 2012 - fcrozat@suse.com Thu Oct 18 12:27:07 UTC 2012 - fcrozat@suse.com

View File

@ -23,7 +23,7 @@
Name: systemd Name: systemd
Url: http://www.freedesktop.org/wiki/Software/systemd Url: http://www.freedesktop.org/wiki/Software/systemd
Version: 194 Version: 195
Release: 0 Release: 0
Summary: A System and Session Manager Summary: A System and Session Manager
License: LGPL-2.1+ License: LGPL-2.1+
@ -83,6 +83,8 @@ Requires: kbd
Requires: pam-config >= 0.79-5 Requires: pam-config >= 0.79-5
Requires: systemd-presets-branding Requires: systemd-presets-branding
Requires: util-linux >= 2.21 Requires: util-linux >= 2.21
Requires(post): coreutils
Requires(post): findutils
%endif %endif
Conflicts: filesystem < 11.5 Conflicts: filesystem < 11.5
Conflicts: mkinitrd < 2.7.0 Conflicts: mkinitrd < 2.7.0
@ -118,6 +120,7 @@ Patch38: dm-lvm-after-local-fs-pre-target.patch
Patch53: fastboot-forcefsck.patch Patch53: fastboot-forcefsck.patch
Patch56: support-suse-clock-sysconfig.patch Patch56: support-suse-clock-sysconfig.patch
Patch59: fix-enable-disable-boot-initscript.patch Patch59: fix-enable-disable-boot-initscript.patch
Patch60: var-run-lock.patch
# Upstream First - Policy: # Upstream First - Policy:
# Never add any patches to this package without the upstream commit id # Never add any patches to this package without the upstream commit id
@ -293,6 +296,7 @@ provides GObject access to udev device information.
%patch53 -p1 %patch53 -p1
%patch56 -p1 %patch56 -p1
%patch59 -p1 %patch59 -p1
%patch60 -p1
%build %build
%if ! 0%{?bootstrap} %if ! 0%{?bootstrap}
@ -323,6 +327,8 @@ make %{?_smp_mflags}
mkdir -p $RPM_BUILD_ROOT/{sbin,lib,bin} mkdir -p $RPM_BUILD_ROOT/{sbin,lib,bin}
ln -sf %{_bindir}/udevadm $RPM_BUILD_ROOT/sbin/udevadm ln -sf %{_bindir}/udevadm $RPM_BUILD_ROOT/sbin/udevadm
ln -sf %{_bindir}/systemd-ask-password $RPM_BUILD_ROOT/bin/systemd-ask-password
ln -sf %{_bindir}/systemctl $RPM_BUILD_ROOT/bin/systemctl
ln -sf %{_prefix}/lib/systemd/systemd-udevd $RPM_BUILD_ROOT/sbin/udevd ln -sf %{_prefix}/lib/systemd/systemd-udevd $RPM_BUILD_ROOT/sbin/udevd
mkdir -p $RPM_BUILD_ROOT/%{_prefix}/usr/lib/firmware/updates mkdir -p $RPM_BUILD_ROOT/%{_prefix}/usr/lib/firmware/updates
ln -sf /lib/firmware $RPM_BUILD_ROOT/usr/lib/firmware ln -sf /lib/firmware $RPM_BUILD_ROOT/usr/lib/firmware
@ -390,6 +396,9 @@ rm %{buildroot}/%{_prefix}/lib/systemd/system/local-fs.target.wants/tmp.mount
# journal. # journal.
rm -f %{buildroot}%{_libdir}/../lib/sysctl.d/coredump.conf rm -f %{buildroot}%{_libdir}/../lib/sysctl.d/coredump.conf
# remove README files for now
rm -f %{buildroot}/var/log/README %{buildroot}/etc/init.d/README
# legacy links # legacy links
ln -s loginctl %{buildroot}%{_bindir}/systemd-loginctl ln -s loginctl %{buildroot}%{_bindir}/systemd-loginctl
ln -s journalctl %{buildroot}%{_bindir}/systemd-journalctl ln -s journalctl %{buildroot}%{_bindir}/systemd-journalctl
@ -415,8 +424,8 @@ mkdir -p %{buildroot}%{_prefix}/lib/systemd/system/syslog.target.wants
%post %post
/usr/sbin/pam-config -a --systemd >/dev/null 2>&1 || : /usr/sbin/pam-config -a --systemd >/dev/null 2>&1 || :
/sbin/ldconfig /sbin/ldconfig
/bin/systemd-machine-id-setup >/dev/null 2>&1 || : /usr/bin/systemd-machine-id-setup >/dev/null 2>&1 || :
/bin/systemctl daemon-reexec >/dev/null 2>&1 || : /usr/bin/systemctl daemon-reexec >/dev/null 2>&1 || :
# Try to read default runlevel from the old inittab if it exists # Try to read default runlevel from the old inittab if it exists
if [ ! -e /etc/systemd/system/default.target -a -e /etc/inittab ]; then if [ ! -e /etc/systemd/system/default.target -a -e /etc/inittab ]; then
@ -429,17 +438,24 @@ fi
# Later package updates should not overwrite these settings. # Later package updates should not overwrite these settings.
if [ "$1" -eq 1 ]; then if [ "$1" -eq 1 ]; then
# Enable these services by default. # Enable these services by default.
/bin/systemctl enable \ /usr/bin/systemctl enable \
getty@.service \ getty@.service \
systemd-readahead-collect.service \ systemd-readahead-collect.service \
systemd-readahead-replay.service \ systemd-readahead-replay.service \
remote-fs.target >/dev/null 2>&1 || : remote-fs.target >/dev/null 2>&1 || :
else
# migrate any symlink which may refer to the old path
for f in $(find /etc/systemd/system -type l -xtype l); do
new_target="/usr$(readlink $f)"
[ -f "$new_target" ] && ln -s -f $new_target $f || :
done
fi fi
%postun %postun
/sbin/ldconfig /sbin/ldconfig
if [ $1 -ge 1 ]; then if [ $1 -ge 1 ]; then
/bin/systemctl try-restart systemd-logind.service >/dev/null 2>&1 || : /usr/bin/systemctl try-restart systemd-logind.service >/dev/null 2>&1 || :
fi fi
if [ $1 -eq 0 ]; then if [ $1 -eq 0 ]; then
/usr/sbin/pam-config -d --systemd >/dev/null 2>&1 || : /usr/sbin/pam-config -d --systemd >/dev/null 2>&1 || :
@ -447,7 +463,7 @@ fi
%preun %preun
if [ $1 -eq 0 ]; then if [ $1 -eq 0 ]; then
/bin/systemctl disable \ /usr/bin/systemctl disable \
getty@.service \ getty@.service \
systemd-readahead-collect.service \ systemd-readahead-collect.service \
systemd-readahead-replay.service \ systemd-readahead-replay.service \
@ -477,12 +493,12 @@ rm -f /etc/sysconfig/udev
rm -f /etc/udev/rules.d/20-cdrom.rules rm -f /etc/udev/rules.d/20-cdrom.rules
rm -f /etc/udev/rules.d/55-cdrom.rules rm -f /etc/udev/rules.d/55-cdrom.rules
rm -f /etc/udev/rules.d/65-cdrom.rules rm -f /etc/udev/rules.d/65-cdrom.rules
/bin/systemctl daemon-reload >/dev/null 2>&1 || : /usr/bin/systemctl daemon-reload >/dev/null 2>&1 || :
# start daemon if we are not in a chroot # start daemon if we are not in a chroot
if test -f /proc/1/exe -a -d /proc/1/root; then if test -f /proc/1/exe -a -d /proc/1/root; then
if test "$(stat -Lc '%%D-%%i' /)" = "$(stat -Lc '%%D-%%i' /proc/1/root)"; then if test "$(stat -Lc '%%D-%%i' /)" = "$(stat -Lc '%%D-%%i' /proc/1/root)"; then
/bin/systemctl start systemd-udevd.service >/dev/null 2>&1 || : /usr/bin/systemctl start systemd-udevd.service >/dev/null 2>&1 || :
/sbin/udevd --daemon >/dev/null 2>&1 || : /usr/lib/systemd/systemd-udevd --daemon >/dev/null 2>&1 || :
fi fi
fi fi
@ -496,7 +512,7 @@ fi
%postun -n %{udevpkgname} %postun -n %{udevpkgname}
%insserv_cleanup %insserv_cleanup
/bin/systemctl daemon-reload >/dev/null 2>&1 || : /usr/bin/systemctl daemon-reload >/dev/null 2>&1 || :
[ -x /sbin/mkinitrd_setup ] && /sbin/mkinitrd_setup [ -x /sbin/mkinitrd_setup ] && /sbin/mkinitrd_setup
if [ -e /var/lib/no_initrd_recreation_by_suspend ]; then if [ -e /var/lib/no_initrd_recreation_by_suspend ]; then
@ -523,7 +539,12 @@ rm -rf %{buildroot}
%files %files
%defattr(-,root,root) %defattr(-,root,root)
/bin/systemd /bin/systemd
/bin/systemd-ask-password
/bin/systemctl
%{_bindir}/hostnamectl
%{_bindir}/localectl
%{_bindir}/systemctl %{_bindir}/systemctl
%{_bindir}/systemd-coredumpctl
%{_bindir}/systemd-delta %{_bindir}/systemd-delta
%{_bindir}/systemd-notify %{_bindir}/systemd-notify
%{_bindir}/systemd-journalctl %{_bindir}/systemd-journalctl
@ -538,6 +559,7 @@ rm -rf %{buildroot}
%{_bindir}/systemd-nspawn %{_bindir}/systemd-nspawn
%{_bindir}/systemd-stdio-bridge %{_bindir}/systemd-stdio-bridge
%{_bindir}/systemd-detect-virt %{_bindir}/systemd-detect-virt
%{_bindir}/timedatectl
%{_sbindir}/systemd-sysv-convert %{_sbindir}/systemd-sysv-convert
%{_libdir}/libsystemd-daemon.so.* %{_libdir}/libsystemd-daemon.so.*
%{_libdir}/libsystemd-login.so.* %{_libdir}/libsystemd-login.so.*

97
var-run-lock.patch Normal file
View File

@ -0,0 +1,97 @@
Index: systemd-195/Makefile.am
===================================================================
--- systemd-195.orig/Makefile.am
+++ systemd-195/Makefile.am
@@ -294,6 +294,7 @@ dist_systemunit_DATA = \
units/sys-kernel-config.mount \
units/sys-kernel-debug.mount \
units/sys-fs-fuse-connections.mount \
+ units/var-run.mount \
units/tmp.mount \
units/printer.target \
units/sound.target \
@@ -308,6 +309,11 @@ dist_systemunit_DATA = \
units/systemd-udevd-kernel.socket \
units/system-update.target
+if HAVE_SYSV_COMPAT
+dist_systemunit_DATA += \
+ units/var-lock.mount
+endif
+
nodist_systemunit_DATA = \
units/getty@.service \
units/serial-getty@.service \
@@ -3864,9 +3870,11 @@ systemd-install-data-hook:
( cd $(DESTDIR)$(systemunitdir)/local-fs.target.wants && \
rm -f systemd-remount-fs.service \
systemd-fsck-root.service \
+ var-run.mount \
tmp.mount && \
$(LN_S) ../systemd-remount-fs.service systemd-remount-fs.service && \
$(LN_S) ../systemd-fsck-root.service systemd-fsck-root.service && \
+ $(LN_S) ../var-run.mount var-run.mount && \
$(LN_S) ../tmp.mount tmp.mount )
( cd $(DESTDIR)$(userunitdir) && \
rm -f shutdown.target sockets.target bluetooth.target printer.target sound.target && \
@@ -3954,6 +3962,12 @@ if TARGET_MAGEIA
rm -f display-manager.service )
endif
+if HAVE_SYSV_COMPAT
+ ( cd $(DESTDIR)$(systemunitdir)/local-fs.target.wants && \
+ rm -f var-lock.mount && \
+ $(LN_S) ../var-lock.mount var-lock.mount )
+endif
+
install-exec-hook: $(INSTALL_EXEC_HOOKS)
uninstall-hook: $(UNINSTALL_EXEC_HOOKS)
Index: systemd-195/units/var-lock.mount
===================================================================
--- /dev/null
+++ systemd-195/units/var-lock.mount
@@ -0,0 +1,19 @@
+# This file is part of systemd.
+#
+# systemd is free software; you can redistribute it and/or modify it
+# under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
+[Unit]
+Description=Lock Directory
+Before=local-fs.target
+# skip mounting if the directory does not exist or is a symlink
+ConditionPathIsDirectory=/var/lock
+ConditionPathIsSymbolicLink=!/var/lock
+
+[Mount]
+What=/run/lock
+Where=/var/lock
+Type=bind
+Options=bind
Index: systemd-195/units/var-run.mount
===================================================================
--- /dev/null
+++ systemd-195/units/var-run.mount
@@ -0,0 +1,19 @@
+# This file is part of systemd.
+#
+# systemd is free software; you can redistribute it and/or modify it
+# under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
+[Unit]
+Description=Runtime Directory
+Before=local-fs.target
+# skip mounting if the directory does not exist or is a symlink
+ConditionPathIsDirectory=/var/run
+ConditionPathIsSymbolicLink=!/var/run
+
+[Mount]
+What=/run
+Where=/var/run
+Type=bind
+Options=bind