summaryrefslogtreecommitdiff
path: root/units/root-fs.target
diff options
context:
space:
mode:
authorHarald Hoyer <harald@redhat.com>2013-03-04 19:01:05 +0100
committerHarald Hoyer <harald@redhat.com>2013-03-13 08:11:17 +0100
commit700e07ffd53083114e91bb4ba646ed26d0463f67 (patch)
tree85ccb2c53db4c88bd931f873e7c547143a110e4c /units/root-fs.target
parent783162123dbac43d5b7a3fab9d4f11dcf86d06e1 (diff)
add initrd-fs.target and root-fs.target
Instead of using local-fs*.target in the initrd, use root-fs.target for sysroot.mount and initrd-fs.target for /sysroot/usr and friends. Using local-fs.target would mean to carry over the activated local-fs.target to the isolated initrd-switch-root.target and thus in the real root. Having local-fs.target already active after deserialization causes ordering problems with the real root services and targets. We better isolate to targets for initrd-switch-root.target, which are only available in the initrd.
Diffstat (limited to 'units/root-fs.target')
-rw-r--r--units/root-fs.target11
1 files changed, 11 insertions, 0 deletions
diff --git a/units/root-fs.target b/units/root-fs.target
new file mode 100644
index 0000000000..13515341eb
--- /dev/null
+++ b/units/root-fs.target
@@ -0,0 +1,11 @@
+# This file is part of systemd.
+#
+# systemd is free software; you can redistribute it and/or modify it
+# under the terms of the GNU Lesser General Public License as published by
+# the Free Software Foundation; either version 2.1 of the License, or
+# (at your option) any later version.
+
+[Unit]
+Description=Initrd Root File System
+Documentation=man:systemd.special(7)
+ConditionPathExists=/etc/initrd-release