summaryrefslogtreecommitdiff
path: root/functions
diff options
context:
space:
mode:
Diffstat (limited to 'functions')
-rwxr-xr-xfunctions/defaults.sh15
1 files changed, 14 insertions, 1 deletions
diff --git a/functions/defaults.sh b/functions/defaults.sh
index 4e97816b0..86bf23bd3 100755
--- a/functions/defaults.sh
+++ b/functions/defaults.sh
@@ -148,7 +148,20 @@ Set_defaults ()
esac
# Setting initsystem
- LB_INITSYSTEM="${LB_INITSYSTEM:-sysvinit}"
+ case "${LB_MODE}" in
+ ubuntu)
+ if [ "${LB_INITRAMFS}" = "live-boot" ]
+ then
+ LB_INITSYSTEM="${LB_INITSYSTEM:-upstart}"
+ else
+ LB_INITSYSTEM="${LB_INITSYSTEM:-sysvinit}"
+ fi
+ ;;
+
+ *)
+ LB_INITSYSTEM="${LB_INITSYSTEM:-sysvinit}"
+ ;;
+ esac
# Setting fdisk
if [ -z "${LB_FDISK}" ] || [ ! -x "${LB_FDISK}" ]