Add per-release packages
This commit is contained in:
parent
bf8bf11ef7
commit
ec809157f8
|
@ -9,9 +9,13 @@ logfile="/tmp/pvc-install.log"
|
||||||
supported_debrelease="buster bullseye"
|
supported_debrelease="buster bullseye"
|
||||||
default_debrelease="buster"
|
default_debrelease="buster"
|
||||||
default_debmirror="http://debian.mirror.rafal.ca/debian"
|
default_debmirror="http://debian.mirror.rafal.ca/debian"
|
||||||
debpkglist="lvm2,parted,gdisk,grub-pc,grub-efi-amd64,linux-image-amd64,sudo,vim,gpg,gpg-agent,aptitude,openssh-server,vlan,ifenslave,python,python2,python3,ca-certificates,ntp"
|
debpkglist="lvm2,parted,gdisk,grub-pc,grub-efi-amd64,linux-image-amd64,sudo,vim,gpg,gpg-agent,aptitude,openssh-server,vlan,ifenslave,python2,python3,ca-certificates,ntp"
|
||||||
suppkglist="firmware-linux,firmware-linux-nonfree,firmware-bnx2,firmware-bnx2x"
|
suppkglist="firmware-linux,firmware-linux-nonfree,firmware-bnx2,firmware-bnx2x"
|
||||||
|
|
||||||
|
declare -a debpkglist_release
|
||||||
|
debpkglist_release[buster]=",python"
|
||||||
|
debpkglist_release[bullseye]=",python-is-python3"
|
||||||
|
|
||||||
# DANGER - THIS PASSWORD IS PUBLIC
|
# DANGER - THIS PASSWORD IS PUBLIC
|
||||||
# It should be used ONLY immediately after booting the PVC node in a SECURE environment
|
# It should be used ONLY immediately after booting the PVC node in a SECURE environment
|
||||||
# to facilitate troubleshooting of a failed boot. It should NOT be exposed to the Internet,
|
# to facilitate troubleshooting of a failed boot. It should NOT be exposed to the Internet,
|
||||||
|
@ -225,7 +229,7 @@ while [[ -z ${debrelease} ]]; do
|
||||||
if [[ -z ${debrelease} ]]; then
|
if [[ -z ${debrelease} ]]; then
|
||||||
debrelease="${default_debrelease}"
|
debrelease="${default_debrelease}"
|
||||||
fi
|
fi
|
||||||
if ! grep "${debrelease}" <<<"${supported_debrelease}"; then
|
if ! grep -qw "${debrelease}" <<<"${supported_debrelease}"; then
|
||||||
debrelease=""
|
debrelease=""
|
||||||
echo
|
echo
|
||||||
echo "Please enter a valid release."
|
echo "Please enter a valid release."
|
||||||
|
@ -425,6 +429,7 @@ mount -t tmpfs tmpfs ${target}/tmp >&2
|
||||||
echo "done."
|
echo "done."
|
||||||
|
|
||||||
echo -n "Running debootstrap install... "
|
echo -n "Running debootstrap install... "
|
||||||
|
debpkglist+=${debpkglist_release[${debrelease}]}
|
||||||
debootstrap --include=${debpkglist} ${debrelease} ${target}/ ${debmirror} >&2
|
debootstrap --include=${debpkglist} ${debrelease} ${target}/ ${debmirror} >&2
|
||||||
echo "done."
|
echo "done."
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue