summaryrefslogtreecommitdiffstats
path: root/system-config/backend
diff options
context:
space:
mode:
Diffstat (limited to 'system-config/backend')
-rw-r--r--system-config/backend/systemd/live-config.systemd24
-rwxr-xr-xsystem-config/backend/sysvinit/live-config.init36
2 files changed, 60 insertions, 0 deletions
diff --git a/system-config/backend/systemd/live-config.systemd b/system-config/backend/systemd/live-config.systemd
new file mode 100644
index 0000000..ed7069b
--- /dev/null
+++ b/system-config/backend/systemd/live-config.systemd
@@ -0,0 +1,24 @@
+## live-config - System Configuration Components
+##
+## live-config contains the components that configure a live system during
+## the boot process (late userspace).
+##
+## This is the systemd service for live-config.
+
+
+[Unit]
+Description=live-config contains the components that configure a live system during the boot process (late userspace).
+Documentation=man:live-config
+Before=basic.target udev.service
+After=local-fs.target
+DefaultDependencies=no
+ConditionPathExists=/bin/live-config
+ConditionKernelCommandLine=boot=live
+
+[Service]
+Type=oneshot
+RemainAfterExit=yes
+ExecStart=/bin/live-config
+
+[Install]
+WantedBy=basic.target
diff --git a/system-config/backend/sysvinit/live-config.init b/system-config/backend/sysvinit/live-config.init
new file mode 100755
index 0000000..270de99
--- /dev/null
+++ b/system-config/backend/sysvinit/live-config.init
@@ -0,0 +1,36 @@
+#!/bin/sh
+
+## live-config contains the components that configure a live system during
+## the boot process (late userspace).
+##
+## This is the sysvinit initscript for live-config.
+
+
+### BEGIN INIT INFO
+# Provides: live-config
+# Required-Start:
+# Required-Stop:
+# Should-Start:
+# Should-Stop:
+# Default-Start: S
+# Default-Stop:
+# Short-Description: live-config - System Configuration Components
+# Description: live-config contains the components that configure a
+# live system during the boot process (late userspace).
+# X-Start-Before: mountkernfs
+# X-Stop-After:
+# X-Interactive: true
+### END INIT INFO
+
+case "${1}" in
+ start)
+ if [ -e /bin/live-config ]
+ then
+ /bin/live-config ${@}
+ fi
+ ;;
+
+ force-reload|restart|stop)
+
+ ;;
+esac