summaryrefslogtreecommitdiff
path: root/src/scripts/02defaults.sh
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2007-09-23 10:04:22 +0200
committerDaniel Baumann <daniel@debian.org>2007-09-23 10:04:22 +0200
commit262e501463f4cc8bba690a1ef7cf0887cbfaa8cf (patch)
treed688ad07398eabd54adc7d0c0f8f32f128847688 /src/scripts/02defaults.sh
parentc9462fd48b0d4fb9968641e46c3350fb5e9986a2 (diff)
downloadvyos-live-build-262e501463f4cc8bba690a1ef7cf0887cbfaa8cf.tar.gz
vyos-live-build-262e501463f4cc8bba690a1ef7cf0887cbfaa8cf.zip
Adding live-package 0.99.5-1.
Diffstat (limited to 'src/scripts/02defaults.sh')
-rw-r--r--src/scripts/02defaults.sh38
1 files changed, 34 insertions, 4 deletions
diff --git a/src/scripts/02defaults.sh b/src/scripts/02defaults.sh
index 99a8d3b4a..78831e7ce 100644
--- a/src/scripts/02defaults.sh
+++ b/src/scripts/02defaults.sh
@@ -40,7 +40,7 @@ Defaults ()
# Set bootstrap architecture
if [ -z "${LIVE_ARCHITECTURE}" ]
then
- LIVE_ARCHITECTURE="`dpkg-architecture -qDEB_BUILD_ARCH`"
+ LIVE_ARCHITECTURE="`dpkg --print-architecture`"
fi
# Set chroot directory
@@ -52,7 +52,7 @@ Defaults ()
# Set debian distribution
if [ -z "${LIVE_DISTRIBUTION}" ]
then
- LIVE_DISTRIBUTION="${CODENAME_UNSTABLE}"
+ LIVE_DISTRIBUTION="unstable"
fi
# Set bootstrap flavour
@@ -79,7 +79,7 @@ Defaults ()
;;
amd64)
- if [ "${LIVE_DISTRIBUTION}" = "${CODENAME_UNSTABLE}" ]
+ if [ "${LIVE_DISTRIBUTION}" = "unstable" ]
then
LIVE_KERNEL="amd64"
else
@@ -97,7 +97,7 @@ Defaults ()
;;
i386)
- if [ "${LIVE_DISTRIBUTION}" = "${CODENAME_STABLE}" ] || [ "${LIVE_DISTRIBUTION}" = "${CODENAME_OLDSTABLE}" ]
+ if [ "${LIVE_DISTRIBUTION}" = "oldstable" ] || [ "${LIVE_DISTRIBUTION}" = "stable" ]
then
LIVE_KERNEL="386"
else
@@ -145,6 +145,24 @@ Defaults ()
LIVE_MIRROR_SECURITY="http://security.debian.org/"
fi
+ # Check for package lists
+ if [ -z "${LIVE_PACKAGE_LIST}" ]
+ then
+ LIVE_PACKAGE_LIST="${BASE}/lists/standard"
+ else
+ if [ "${LIVE_FLAVOUR}" = "minimal" ]
+ then
+ LIVE_PACKAGE_LIST="${BASE}/lists/minimal"
+ fi
+
+ if [ -r "${BASE}/lists/${LIVE_PACKAGE_LIST}" ]
+ then
+ LIVE_PACKAGE_LIST="${BASE}/lists/${LIVE_PACKAGE_LIST}"
+ else
+ LIVE_PACKAGE_LIST="${BASE}/lists/standard"
+ fi
+ fi
+
# Set debian sections
if [ -z "${LIVE_SECTION}" ]
then
@@ -168,4 +186,16 @@ Defaults ()
then
LIVE_TEMPLATES="${BASE}/templates"
fi
+
+ # Set package indices
+ if [ -z "${LIVE_GENERIC_INDICES}" ]
+ then
+ LIVE_GENERIC_INDICES="yes"
+ fi
+
+ # Set source image
+ if [ -z "${LIVE_SOURCE}" ]
+ then
+ LIVE_SOURCE="no"
+ fi
}