Skip to content
Snippets Groups Projects
Verified Commit 2ecff8b8 authored by Karel Koci's avatar Karel Koci :metal:
Browse files

lxc-generator: fix invalid Gentoo source

This produced HTML page for Gentoo instead of archive. The fix here is
that it needs to look for xz not for bz2.

This also adds arm64 variant as well as other variation on standard
system.
parent 6f99e9dd
No related merge requests found
......@@ -49,7 +49,7 @@ add_image() {
}
get_gentoo_url() {
REL="`wget -O - http://distfiles.gentoo.org/releases/$1/autobuilds/latest-stage3-$2.txt | sed -n 's|\(.*\.tar.bz2\).*|\1|p'`"
REL="`wget -O - "http://distfiles.gentoo.org/releases/$1/autobuilds/latest-stage3-$2.txt" | sed -n 's|\(.*\.tar.xz\).*|\1|p'`"
echo "http://distfiles.gentoo.org/releases/$1/autobuilds/$REL"
}
......@@ -108,7 +108,12 @@ add_image "Debian" "Bullseye" "aarch64" "`get_lxc_url debian/bullseye/arm64`"
add_image "Fedora" "34" "aarch64" "`get_lxc_url fedora/34/arm64`"
add_image "Fedora" "35" "armv7l" "`get_lxc_url fedora/35/armhf`"
add_image "Fedora" "35" "aarch64" "`get_lxc_url fedora/35/arm64`"
add_image "Gentoo" "stable" "armv7l" "`get_gentoo_url arm armv7a_hardfp`"
add_image "Gentoo" "openrc" "armv7l" "`get_gentoo_url arm armv7a_hardfp-openrc`"
add_image "Gentoo" "systemd" "armv7l" "`get_gentoo_url arm armv7a_hardfp-systemd`"
add_image "Gentoo" "musl-openrc" "armv7l" "`get_gentoo_url arm armv7a_hardfp-musl-openrc`"
add_image "Gentoo" "openrc" "aarch64" "`get_gentoo_url arm64 arm64`"
add_image "Gentoo" "systemd" "aarch64" "`get_gentoo_url arm64 arm64-systemd`"
add_image "Gentoo" "musl-openrc" "aarch64" "`get_gentoo_url arm64 arm64-musl`"
add_image "openSUSE" "15.3" "armv7l" "`get_opensuse_url https://download.opensuse.org/ports/armv7hl/distribution/leap/15.3/appliances`"
add_image "openSUSE" "15.3" "aarch64" "`get_opensuse_url https://download.opensuse.org/ports/aarch64/distribution/leap/15.3/appliances`"
add_image "openSUSE" "Tumbleweed" "armv7l" "https://download.opensuse.org/ports/armv7hl/factory/appliances/opensuse-tumbleweed-image.armv7l-lxc.tar.xz"
......
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