diff options
author | Daniel Baumann <daniel@debian.org> | 2011-09-30 00:56:49 +0200 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2011-09-30 00:56:49 +0200 |
commit | 96e86b96d8b0c38cfcbef4201c5de112030d0326 (patch) | |
tree | 0513043052e30d5fccd8679a94c5b85fe9332bdd /functions/defaults.sh | |
parent | 6b8183c277c3306d3d497f0479fb0545b9d3d990 (diff) | |
download | vyos-live-build-96e86b96d8b0c38cfcbef4201c5de112030d0326.tar.gz vyos-live-build-96e86b96d8b0c38cfcbef4201c5de112030d0326.zip |
Adding --system option to define the resulting image type to be a live system or a normal, non-live system.
Diffstat (limited to 'functions/defaults.sh')
-rwxr-xr-x | functions/defaults.sh | 23 |
1 files changed, 21 insertions, 2 deletions
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 |