summaryrefslogtreecommitdiffstats
path: root/core/modules/disk-partitions
diff options
context:
space:
mode:
authorSimon Rettberg2021-07-22 13:20:43 +0200
committerSimon Rettberg2021-07-22 13:20:43 +0200
commitfc2ccd7abc96d1234ea129db8be6a63b83c1282a (patch)
treee6e591224dca88657043ec3e1e37adbd1f5a5fd0 /core/modules/disk-partitions
parent[dhcpc-busybox] Workaround for badly assigned sshd.service (diff)
downloadmltk-fc2ccd7abc96d1234ea129db8be6a63b83c1282a.tar.gz
mltk-fc2ccd7abc96d1234ea129db8be6a63b83c1282a.tar.xz
mltk-fc2ccd7abc96d1234ea129db8be6a63b83c1282a.zip
[dnbd3-proxy-mode/disk-partitions] Add persistent.target
Diffstat (limited to 'core/modules/disk-partitions')
-rw-r--r--core/modules/disk-partitions/data/etc/systemd/system/persistent.target2
-rw-r--r--core/modules/disk-partitions/data/etc/systemd/system/setup-partitions.service3
2 files changed, 4 insertions, 1 deletions
diff --git a/core/modules/disk-partitions/data/etc/systemd/system/persistent.target b/core/modules/disk-partitions/data/etc/systemd/system/persistent.target
new file mode 100644
index 00000000..68ab1052
--- /dev/null
+++ b/core/modules/disk-partitions/data/etc/systemd/system/persistent.target
@@ -0,0 +1,2 @@
+[Unit]
+Description=Persistent partition has been mounted (if found)
diff --git a/core/modules/disk-partitions/data/etc/systemd/system/setup-partitions.service b/core/modules/disk-partitions/data/etc/systemd/system/setup-partitions.service
index 1f570c9d..0c8a0dd4 100644
--- a/core/modules/disk-partitions/data/etc/systemd/system/setup-partitions.service
+++ b/core/modules/disk-partitions/data/etc/systemd/system/setup-partitions.service
@@ -1,7 +1,8 @@
[Unit]
Description=Setup local disk partitions (persistent, swap)
After=systemd-udev-settle.service systemd-udevd.service
-Wants=tmp.target
+Wants=tmp.target persistent.target
+Before=persistent.target
DefaultDependencies=no
[Service]