Commit 8f158afc authored by Guido Gunther's avatar Guido Gunther

Allow to use a separate distribution for debootstrap

Purple and experimental are "overlays" needing a base distribution.
Allow to specify them but to set a proper base distro in the
parent a25b51b5
......@@ -12,7 +12,7 @@ usage() {
echo "Usage : $1 "
echo " -h Display this help message."
echo " -b [imx6|imx8|qemu-x86_64] select the board type."
echo " -d <distro> distro to use. [ green, buster, green+ci, buster+ci ]"
echo " -d <distro> distro to use. [ green, purple, buster, green+ci, buster+ci, purple+ci ]"
echo " -T [ci|unstable] use the artifacts from this build for the image"
echo " -B build rootfs tarball as well"
......@@ -57,6 +57,7 @@ uboot_bin=
while getopts ":hb:d:T:B" opt; do
case ${opt} in
......@@ -96,7 +97,8 @@ bootimg="${pureos_board}.img"
# shellcheck source=conf/dists/buster
. conf/dists/"${distro}"
echo "Building ${bootimg} (board_type: ${board_type}, arch: ${arch}, build_type: ${build_type}, ci_pkgs: ${ci_pkgs})"
[ -n "${debootstrap_dist}" ] || debootstrap_dist="${distro}"
echo "Building ${bootimg} (board_type: ${board_type}, arch: ${arch}, build_type: ${build_type}, ci_pkgs: ${ci_pkgs}, ${debootstrap_dist})"
echo "Installing extra packages ${packages}"
mkdir -p tmp/ files/
......@@ -132,7 +134,7 @@ sudo pureos_board="${pureos_board}" \
--verbose --image "${bootimg}" --log "tmp/${bootimg}.log" --size 3600M \
--mirror "${mirror}" \
--configure-apt \
--distribution "$distro" \
--distribution "${debootstrap_dist}" \
--serial-console-command "/sbin/getty -L ttymxc0 115200 vt100" \
--root-password='root' --hostname='pureos' --user=purism/123456 --sudo \
--customize "${cwd}/" \
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment