forked from pool/systemd
a4023d0c37
- Fix patch tty-ask-password-agent-on-console.patch not to crash away but enable it to ask on all devices of /dev/console - Avoid "file not found /etc/udev/rules.d/70-persistent-net.rules" waring occurring in %post - Add patch let-vconsole-setup-get-properties-only-once-to-copy-them.patch to avoid broken virtual console mapping due stressed ioctl API for the virtual consoles (boo#904214) - Fix last change that is use the new name for udev packages in %pretrans. - restore usage of LUA in %pretrans. - Try to generate the systemd users and groups always in same order to avoid republish other packages (boo#944660) - cleanup specfile by removing commands that were dealing with systemd pre-generated files: we're now using systemd tarball generated directly from the git repo which doesn't contain any of these files. - there's no point in using LUA in %pretrans - Drop 0009-make-xsltproc-use-correct-ROFF-links.patch This patch was initialy added to workaround bsc#842844. But it appears that man(1) was fixed (included since 13.2 at least) to handle manual pages that consist only of a .so directive such as '.so <page>'. - Change use-rndaddentropy-ioctl-to-load-random-seed.patch to make it work on big endian OBS-URL: https://build.opensuse.org/request/show/333777 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd?expand=0&rev=223
88 lines
2.5 KiB
Diff
88 lines
2.5 KiB
Diff
From: Frederic Crozat <fcrozat@suse.com>
|
|
Date: Mon, 29 Oct 2012 13:01:20 +0000
|
|
Subject: restore /var/run and /var/lock bind mount if they aren't symlink
|
|
|
|
---
|
|
Makefile.am | 9 +++++++++
|
|
units/var-lock.mount | 19 +++++++++++++++++++
|
|
units/var-run.mount | 19 +++++++++++++++++++
|
|
3 files changed, 47 insertions(+)
|
|
create mode 100644 units/var-lock.mount
|
|
create mode 100644 units/var-run.mount
|
|
|
|
Index: systemd-221/Makefile.am
|
|
===================================================================
|
|
--- systemd-221.orig/Makefile.am
|
|
+++ systemd-221/Makefile.am
|
|
@@ -526,6 +526,12 @@ dist_systemunit_DATA += \
|
|
dist_systemunit_DATA_busnames += \
|
|
units/busnames.target
|
|
|
|
+if HAVE_SYSV_COMPAT
|
|
+dist_systemunit_DATA += \
|
|
+ units/var-run.mount \
|
|
+ units/var-lock.mount
|
|
+endif
|
|
+
|
|
nodist_systemunit_DATA = \
|
|
units/getty@.service \
|
|
units/serial-getty@.service \
|
|
@@ -6123,6 +6129,9 @@ GRAPHICAL_TARGET_WANTS += \
|
|
systemd-update-utmp-runlevel.service
|
|
RESCUE_TARGET_WANTS += \
|
|
systemd-update-utmp-runlevel.service
|
|
+LOCAL_FS_TARGET_WANTS += \
|
|
+ var-run.mount \
|
|
+ var-lock.mount
|
|
endif
|
|
|
|
SYSINIT_TARGET_WANTS += \
|
|
Index: systemd-221/units/var-lock.mount
|
|
===================================================================
|
|
--- /dev/null
|
|
+++ systemd-221/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-221/units/var-run.mount
|
|
===================================================================
|
|
--- /dev/null
|
|
+++ systemd-221/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
|