From 96e86b96d8b0c38cfcbef4201c5de112030d0326 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 30 Sep 2011 00:56:49 +0200 Subject: Adding --system option to define the resulting image type to be a live system or a normal, non-live system. --- functions/defaults.sh | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) (limited to 'functions') diff --git a/functions/defaults.sh b/functions/defaults.sh index ef218d142..f8a3df615 100755 --- a/functions/defaults.sh +++ b/functions/defaults.sh @@ -22,6 +22,9 @@ Set_defaults () export LB_BASE fi + # Setting system type + LB_SYSTEM="${LB_MODE:-live}" + # Setting mode (currently: debian, emdebian, progress, ubuntu and kubuntu) LB_MODE="${LB_MODE:-debian}" @@ -170,7 +173,15 @@ Set_defaults () ;; *) - LB_INITRAMFS="${LB_INITRAMFS:-auto}" + case "${LB_SYSTEM}" in + live) + LB_INITRAMFS="${LB_INITRAMFS:-auto}" + ;; + + normal) + LB_INITRAMFS="${LB_INITRAMFS:-none}" + ;; + esac ;; esac @@ -187,7 +198,15 @@ Set_defaults () ;; *) - LB_INITSYSTEM="${LB_INITSYSTEM:-sysvinit}" + case "${LB_SYSTEM}" in + live) + LB_INITSYSTEM="${LB_INITSYSTEM:-sysvinit}" + ;; + + normal) + LB_INITSYSTEM="${LB_INITSYSTEM:-none}" + ;; + esac ;; esac -- cgit v1.2.3