summaryrefslogtreecommitdiff
path: root/helpers
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2007-11-11 13:02:32 +0100
committerDaniel Baumann <daniel@debian.org>2011-03-09 18:22:28 +0100
commitc7ad124959cf6dc9275528805ff38b6fad82164e (patch)
tree6c2d83e9cd1830685427b74d4e9a6a966097a397 /helpers
parentb6965a492b91eddfdbb46170f47e8cc6286bb4a9 (diff)
downloadvyos-live-build-c7ad124959cf6dc9275528805ff38b6fad82164e.tar.gz
vyos-live-build-c7ad124959cf6dc9275528805ff38b6fad82164e.zip
Allowing LH_BOOTSTRAP_FLAVOUR to be minimal or mini.
Diffstat (limited to 'helpers')
-rwxr-xr-xhelpers/lh_bootstrap_cdebootstrap10
-rwxr-xr-xhelpers/lh_bootstrap_debootstrap9
2 files changed, 17 insertions, 2 deletions
diff --git a/helpers/lh_bootstrap_cdebootstrap b/helpers/lh_bootstrap_cdebootstrap
index 0045b2195..56e05a030 100755
--- a/helpers/lh_bootstrap_cdebootstrap
+++ b/helpers/lh_bootstrap_cdebootstrap
@@ -98,7 +98,15 @@ then
;;
esac
else
- CDEBOOTSTRAP_OPTIONS="${CDEBOOTSTRAP_OPTIONS} --flavour=${LH_BOOTSTRAP_FLAVOUR}"
+ case "${LH_BOOTSTRAP_FLAVOUR}" in
+ minimal|mini)
+ CDEBOOTSTRAP_OPTIONS="${CDEBOOTSTRAP_OPTIONS} --flavour=minimal"
+ ;;
+
+ *)
+ CDEBOOTSTRAP_OPTIONS="${CDEBOOTSTRAP_OPTIONS} --flavour=${LH_BOOTSTRAP_FLAVOUR}"
+ ;;
+ esac
fi
if [ "${LH_DEBUG}" = "enabled" ]
diff --git a/helpers/lh_bootstrap_debootstrap b/helpers/lh_bootstrap_debootstrap
index 838a3de8e..69d9cd054 100755
--- a/helpers/lh_bootstrap_debootstrap
+++ b/helpers/lh_bootstrap_debootstrap
@@ -92,7 +92,14 @@ then
;;
esac
else
- DEBOOTSTRAP_OPTIONS="${DEBOOTSTRAP_OPTIONS} --variant=${LH_BOOTSTRAP_FLAVOUR}"
+ case "${LH_BOOTSTRAP_FLAVOUR}" in
+ minimal|mini)
+ DEBOOTSTRAP_OPTIONS="${DEBOOTSTRAP_OPTIONS} --variant=buildd"
+ ;;
+
+ *)
+ DEBOOTSTRAP_OPTIONS="${DEBOOTSTRAP_OPTIONS} --variant=${LH_BOOTSTRAP_FLAVOUR}"
+ esac
fi
else
DEBOOTSTRAP_OPTIONS="${DEBOOTSTRAP_OPTIONS} --variant=fakechroot"