From fda3fe6310235084202aa479f191eeada6919f13 Mon Sep 17 00:00:00 2001 From: Marco Amadori Date: Thu, 10 Feb 2011 23:31:21 +0100 Subject: Upstart initsystem support. --- functions/defaults.sh | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'functions/defaults.sh') 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}" ] -- cgit v1.2.3