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)
distro_suite=${release_file#*Suite: }
distro_suite=${distro_suite%%$'\n'*}
distro_codename=${release_file#*Codename: }
distro_codename=${distro_codename%%$'\n'*}
return 0
fi
return 1
@ -240,7 +238,7 @@ write_sourceslist()
if [ "$mainonly" = 1 ]; then
non_main=''
else
case "$distro_codename" in
case "$release" in
wheezy|jessie|stretch|buster|bullseye)
non_main=' contrib non-free'
;;
@ -376,22 +374,13 @@ download_debian()
iproute=iproute2
;;
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=\
$init,\
ifupdown,\
locales,\
ca-certificates,\
dialog,\
$dhcpclient,\
isc-dhcp-client,\
netbase,\
net-tools,\
$iproute,\
@ -817,7 +806,7 @@ if ! wget -q -O /dev/null "${release_file}"; then
fi
packages="debian-ports-archive-keyring,${packages}"
else
echo "Error: ${arch}/${release} not available on mirror ${MIRROR}"
echo "Error: ${arch}/${release} not available on mirror ${DEBIAN_MIRROR}"
exit 1
fi
fi
@ -888,7 +877,7 @@ if [ -n "$authkey" ]; then
fi
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 ! release_info "${MIRROR}"; then
echo "Invalid release ${release} (not found in mirror)"

View File

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