summaryrefslogtreecommitdiff
path: root/functions/defaults.sh
diff options
context:
space:
mode:
authorDaniel Baumann <mail@daniel-baumann.ch>2014-12-10 08:19:46 +0100
committerDaniel Baumann <mail@daniel-baumann.ch>2014-12-10 08:19:48 +0100
commit048c0827aed16ba57f1b605f404a7a1d10b979b3 (patch)
treebac2c74e9403ad1e89c55b708e5998d2d7a43e69 /functions/defaults.sh
parent0e9d949c3d9f2fffaabfa680f0100782bb442538 (diff)
downloadvyos-live-build-048c0827aed16ba57f1b605f404a7a1d10b979b3.tar.gz
vyos-live-build-048c0827aed16ba57f1b605f404a7a1d10b979b3.zip
Somewhat fixing sysvinit and casper legacy support, slightly improved patch from Rui Miguel P. Bernardo <rui.bernardo.pt@gmail.com> (Closes: #772522, #772651).
This however will still not work properly building upstart based images but they have been broken/unsupported anyway since a long time.
Diffstat (limited to 'functions/defaults.sh')
-rwxr-xr-xfunctions/defaults.sh10
1 files changed, 9 insertions, 1 deletions
diff --git a/functions/defaults.sh b/functions/defaults.sh
index 257e6dc0d..b41923266 100755
--- a/functions/defaults.sh
+++ b/functions/defaults.sh
@@ -288,7 +288,15 @@ Set_defaults ()
*)
case "${LB_SYSTEM}" in
live)
- LB_INITSYSTEM="${LB_INITSYSTEM:-sysvinit}"
+ case "${LB_PARENT_DISTRIBUTION}" in
+ wheezy)
+ LB_INITSYSTEM="${LB_INITSYSTEM:-sysvinit}"
+ ;;
+
+ *)
+ LB_INITSYSTEM="${LB_INITSYSTEM:-systemd}"
+ ;;
+ esac
;;
normal)