1
0
mirror of https://github.com/lxc/lxc-templates.git synced 2026-03-17 01:08:08 +00:00

Compare commits

..

No commits in common. "15f7c8361c5002b33c8f8e73ed323da69fa5a6c4" and "c128b962b3c21dc3e870a91de2d75fecf42bfa58" have entirely different histories.

2 changed files with 5 additions and 17 deletions

View File

@ -77,8 +77,6 @@ release_info() {
local release_file=$(wget "${1}/dists/${release}/Release" -O - --quiet 2> /dev/null) local release_file=$(wget "${1}/dists/${release}/Release" -O - --quiet 2> /dev/null)
distro_suite=${release_file#*Suite: } distro_suite=${release_file#*Suite: }
distro_suite=${distro_suite%%$'\n'*} distro_suite=${distro_suite%%$'\n'*}
distro_codename=${release_file#*Codename: }
distro_codename=${distro_codename%%$'\n'*}
return 0 return 0
fi fi
return 1 return 1
@ -240,7 +238,7 @@ write_sourceslist()
if [ "$mainonly" = 1 ]; then if [ "$mainonly" = 1 ]; then
non_main='' non_main=''
else else
case "$distro_codename" in case "$release" in
wheezy|jessie|stretch|buster|bullseye) wheezy|jessie|stretch|buster|bullseye)
non_main=' contrib non-free' non_main=' contrib non-free'
;; ;;
@ -376,22 +374,13 @@ download_debian()
iproute=iproute2 iproute=iproute2
;; ;;
esac esac
# Check by codename as stable and testing are moving targets
case "$distro_codename" in
wheezy|jessie|stretch|buster|bullseye|bookworm|trixie)
dhcpclient=isc-dhcp-client
;;
*)
dhcpclient=dhcpcd-base
;;
esac
packages=\ packages=\
$init,\ $init,\
ifupdown,\ ifupdown,\
locales,\ locales,\
ca-certificates,\ ca-certificates,\
dialog,\ dialog,\
$dhcpclient,\ isc-dhcp-client,\
netbase,\ netbase,\
net-tools,\ net-tools,\
$iproute,\ $iproute,\
@ -817,7 +806,7 @@ if ! wget -q -O /dev/null "${release_file}"; then
fi fi
packages="debian-ports-archive-keyring,${packages}" packages="debian-ports-archive-keyring,${packages}"
else else
echo "Error: ${arch}/${release} not available on mirror ${MIRROR}" echo "Error: ${arch}/${release} not available on mirror ${DEBIAN_MIRROR}"
exit 1 exit 1
fi fi
fi fi
@ -888,7 +877,7 @@ if [ -n "$authkey" ]; then
fi fi
release=${release:-stable} release=${release:-stable}
permanent_releases=('oldoldstable' 'oldstable' 'stable' 'testing' 'sid' 'unstable') permanent_releases=('stable' 'testing' 'sid' 'unstable')
if [[ ! "${permanent_releases[*]}" =~ (^|[^[:alpha:]])$release([^[:alpha:]]|$) ]]; then if [[ ! "${permanent_releases[*]}" =~ (^|[^[:alpha:]])$release([^[:alpha:]]|$) ]]; then
if ! release_info "${MIRROR}"; then if ! release_info "${MIRROR}"; then
echo "Invalid release ${release} (not found in mirror)" echo "Invalid release ${release} (not found in mirror)"

View File

@ -334,14 +334,13 @@ download_kali()
{ {
init=init init=init
iproute=iproute2 iproute=iproute2
dhcpclient=dhcpcd-base
packages=\ packages=\
$init,\ $init,\
ifupdown,\ ifupdown,\
locales,\ locales,\
ca-certificates,\ ca-certificates,\
dialog,\ dialog,\
$dhcpclient,\ isc-dhcp-client,\
netbase,\ netbase,\
net-tools,\ net-tools,\
$iproute,\ $iproute,\