[Lunar-commits] <moonbase> systemd-sysv: compat links for when you are running native systemd without sysvinit.

Auke Kok sofar at foo-projects.org
Tue Jun 14 06:06:59 CEST 2011


commit d351a6fc2e8d13d42a6671812e4eed918db84e0a
Author: Auke Kok <sofar at foo-projects.org>
Date:   Tue Jun 14 06:06:59 2011 +0200

    systemd-sysv: compat links for when you are running native systemd without sysvinit.
---
 zbeta/systemd-sysv/BUILD     |   16 ++++++++++++++++
 zbeta/systemd-sysv/CONFLICTS |    1 +
 zbeta/systemd-sysv/DETAILS   |   12 ++++++++++++
 zbeta/systemd-sysv/PRE_BUILD |    1 +
 4 files changed, 30 insertions(+), 0 deletions(-)

diff --git a/zbeta/systemd-sysv/BUILD b/zbeta/systemd-sysv/BUILD
new file mode 100644
index 0000000..3c44eab
--- /dev/null
+++ b/zbeta/systemd-sysv/BUILD
@@ -0,0 +1,16 @@
+(
+
+  prepare_install &&
+
+  # installwatch is broken: it makes us account for the link TARGET and not just the link, so, for now:
+  devoke_installwatch &&
+  mkdir -p /sbin &&
+  ln -sf /bin/systemd /sbin/init &&
+  ln -sf /bin/systemctl /sbin/halt &&
+  ln -sf /bin/systemctl /sbin/poweroff &&
+  ln -sf /bin/systemctl /sbin/reboot &&
+  ln -sf /bin/systemctl /sbin/runlevel &&
+  ln -sf /bin/systemctl /sbin/shutdown &&
+  ln -sf /bin/systemctl /sbin/telinit
+
+) > $C_FIFO
diff --git a/zbeta/systemd-sysv/CONFLICTS b/zbeta/systemd-sysv/CONFLICTS
new file mode 100644
index 0000000..62e28ba
--- /dev/null
+++ b/zbeta/systemd-sysv/CONFLICTS
@@ -0,0 +1 @@
+conflicts sysvinit
diff --git a/zbeta/systemd-sysv/DETAILS b/zbeta/systemd-sysv/DETAILS
new file mode 100644
index 0000000..15503b7
--- /dev/null
+++ b/zbeta/systemd-sysv/DETAILS
@@ -0,0 +1,12 @@
+          MODULE=systemd-sysv
+         VERSION=1
+        WEB_SITE=http://www.freedesktop.org/wiki/Software/systemd
+         ENTERED=20110612
+         UPDATED=20110512
+           SHORT="sysvinit replacement links for systemd"
+
+cat << EOF
+This package obsoletes sysvinit and will remove /sbin/init and related
+files. They are replaced with symlinks to systemctl/systemd, which
+function in the same way.
+EOF
diff --git a/zbeta/systemd-sysv/PRE_BUILD b/zbeta/systemd-sysv/PRE_BUILD
new file mode 100644
index 0000000..397db75
--- /dev/null
+++ b/zbeta/systemd-sysv/PRE_BUILD
@@ -0,0 +1 @@
+:


More information about the Lunar-commits mailing list