2013-04-13 13:09:53 +02:00
|
|
|
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
|
|
|
|
|
|
|
|
---
|
2015-02-13 10:43:21 +01:00
|
|
|
Makefile.am | 9 +++++++++
|
|
|
|
units/var-lock.mount | 19 +++++++++++++++++++
|
|
|
|
units/var-run.mount | 19 +++++++++++++++++++
|
2013-04-13 13:09:53 +02:00
|
|
|
3 files changed, 47 insertions(+)
|
|
|
|
create mode 100644 units/var-lock.mount
|
|
|
|
create mode 100644 units/var-run.mount
|
|
|
|
|
2015-02-13 10:43:21 +01:00
|
|
|
Index: systemd-218/Makefile.am
|
|
|
|
===================================================================
|
|
|
|
--- systemd-218.orig/Makefile.am
|
|
|
|
+++ systemd-218/Makefile.am
|
|
|
|
@@ -516,6 +516,12 @@ endif
|
|
|
|
dist_systemunit_DATA_busnames += \
|
|
|
|
units/busnames.target
|
2013-04-13 13:09:53 +02:00
|
|
|
|
|
|
|
+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 \
|
2015-02-13 10:43:21 +01:00
|
|
|
@@ -6086,6 +6092,9 @@ RUNLEVEL4_TARGET_WANTS += \
|
2013-04-13 13:09:53 +02:00
|
|
|
systemd-update-utmp-runlevel.service
|
|
|
|
RUNLEVEL5_TARGET_WANTS += \
|
|
|
|
systemd-update-utmp-runlevel.service
|
|
|
|
+LOCAL_FS_TARGET_WANTS += \
|
|
|
|
+ var-run.mount \
|
|
|
|
+ var-lock.mount
|
|
|
|
endif
|
2015-02-13 10:43:21 +01:00
|
|
|
|
Accepting request 182204 from home:fcrozat:branches:Base:System
- Update to release 205:
+ two new unit types have been introduced:
- Scope units are very similar to service units, however, are
created out of pre-existing processes -- instead of PID 1
forking off the processes.
- Slice units may be used to partition system resources in an
hierarchial fashion and then assign other units to them. By
default there are now three slices: system.slice (for all
system services), user.slice (for all user sessions),
machine.slice (for VMs and containers).
+ new concept of "transient" units, which are created at runtime
using an API and not based on configuration from disk.
+ logind has been updated to make use of scope and slice units to
manage user sessions. Logind will no longer create cgroups
hierchies itself but will relying on PID 1.
+ A new mini-daemon "systemd-machined" has been added which
may be used by virtualization managers to register local
VMs/containers. machinectl tool has been added to query
meta-data from systemd-machined.
+ Low-level cgroup configuration options ControlGroup=,
ControlGroupModify=, ControlGroupPersistent=,
ControlGroupAttribute= have been removed. High-level attribute
settings or slice units should be used instead?
+ A new bus call SetUnitProperties() has been added to alter
various runtime parameters of a unit, including cgroup
parameters. systemctl gained set-properties command to wrap
this call.
+ A new tool "systemd-run" has been added which can be used to
run arbitrary command lines as transient services or scopes,
while configuring a number of settings via the command
OBS-URL: https://build.opensuse.org/request/show/182204
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=412
2013-07-04 17:28:49 +02:00
|
|
|
SYSINIT_TARGET_WANTS += \
|
2015-02-13 10:43:21 +01:00
|
|
|
Index: systemd-218/units/var-lock.mount
|
|
|
|
===================================================================
|
2013-04-13 13:09:53 +02:00
|
|
|
--- /dev/null
|
2015-02-13 10:43:21 +01:00
|
|
|
+++ systemd-218/units/var-lock.mount
|
2013-04-13 13:09:53 +02:00
|
|
|
@@ -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
|
2015-02-13 10:43:21 +01:00
|
|
|
Index: systemd-218/units/var-run.mount
|
|
|
|
===================================================================
|
2013-04-13 13:09:53 +02:00
|
|
|
--- /dev/null
|
2015-02-13 10:43:21 +01:00
|
|
|
+++ systemd-218/units/var-run.mount
|
2013-04-13 13:09:53 +02:00
|
|
|
@@ -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
|