aboutsummaryrefslogtreecommitdiffstats
path: root/usr/lib/systemd/system/import-state.service
diff options
context:
space:
mode:
Diffstat (limited to 'usr/lib/systemd/system/import-state.service')
-rw-r--r--usr/lib/systemd/system/import-state.service17
1 files changed, 17 insertions, 0 deletions
diff --git a/usr/lib/systemd/system/import-state.service b/usr/lib/systemd/system/import-state.service
new file mode 100644
index 00000000..2aab4301
--- /dev/null
+++ b/usr/lib/systemd/system/import-state.service
@@ -0,0 +1,17 @@
+[Unit]
+Description=Import network configuration from initramfs
+DefaultDependencies=no
+ConditionPathIsReadWrite=/
+ConditionDirectoryNotEmpty=/run/initramfs/state
+Conflicts=shutdown.target
+Before=shutdown.target emergency.service emergency.target systemd-tmpfiles-setup.service sysinit.target
+After=local-fs.target
+
+[Service]
+ExecStart=/usr/lib/systemd/import-state
+Type=oneshot
+TimeoutSec=0
+RemainAfterExit=yes
+
+[Install]
+WantedBy=sysinit.target