summaryrefslogtreecommitdiff
path: root/functions
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2011-01-07 21:56:33 +0100
committerDaniel Baumann <daniel@debian.org>2011-03-09 19:20:41 +0100
commit6d87f0dde3a22c9c49a727025913484e35819dbf (patch)
tree36de314485f69c21100ce5cec8c3216b1ae69e42 /functions
parent8f4fb88a7161d924be52587d24087a4f10d60a75 (diff)
downloadvyos-live-build-6d87f0dde3a22c9c49a727025913484e35819dbf.tar.gz
vyos-live-build-6d87f0dde3a22c9c49a727025913484e35819dbf.zip
Adding derivatives handling for progress.
Diffstat (limited to 'functions')
-rwxr-xr-xfunctions/defaults.sh22
1 files changed, 20 insertions, 2 deletions
diff --git a/functions/defaults.sh b/functions/defaults.sh
index 9e4f8415a..d8698d5d3 100755
--- a/functions/defaults.sh
+++ b/functions/defaults.sh
@@ -20,15 +20,24 @@ Set_defaults ()
# Setting distribution name
case "${LB_MODE}" in
progress)
+ _DERIVATIVE="true"
+
LB_DISTRIBUTION="${LB_DISTRIBUTION:-artax}"
+ LB_PARENT_DISTRIBUTION="${LB_PARENT_DISTRIBUTION:-squeeze}"
;;
ubuntu)
+ _DERIVATIVE="false"
+
LB_DISTRIBUTION="${LB_DISTRIBUTION:-karmic}"
+ LB_PARENT_DISTRIBUTION="${LB_DISTRIBUTION}"
;;
*)
+ _DERIVATIVE="false"
+
LB_DISTRIBUTION="${LB_DISTRIBUTION:-squeeze}"
+ LB_PARENT_DISTRIBUTION="${LB_DISTRIBUTION}"
;;
esac
@@ -431,6 +440,15 @@ Set_defaults ()
LB_MIRROR_DEBIAN_INSTALLER="${LB_MIRROR_DEBIAN_INSTALLER:-${LB_MIRROR_BOOTSTRAP}}"
+ if [ -z "${LB_REPOSITORIES}" ]
+ then
+ case "${LB_MODE}" in
+ progress)
+ LB_REPOSITORIES="progress-linux_${LB_DISTRIBUTION}"
+ ;;
+ esac
+ fi
+
# Setting archive areas value
case "${LB_MODE}" in
ubuntu)
@@ -761,7 +779,7 @@ Set_defaults ()
esac
# Setting debian-installer distribution
- LB_DEBIAN_INSTALLER_DISTRIBUTION="${LB_DEBIAN_INSTALLER_DISTRIBUTION:-${LB_DISTRIBUTION}}"
+ LB_DEBIAN_INSTALLER_DISTRIBUTION="${LB_DEBIAN_INSTALLER_DISTRIBUTION:-${LB_PARENT_DISTRIBUTION}}"
# Setting debian-installer-gui
case "${LB_MODE}" in
@@ -891,7 +909,7 @@ Set_defaults ()
# Setting win32-loader option
case "${LB_MODE}" in
progress|ubuntu)
- ::
+
;;
*)