Skip to content
Snippets Groups Projects
Verified Commit 2a2f6d8f authored by Michal Hrusecky's avatar Michal Hrusecky :mouse:
Browse files

lxc-generator: Arch & Ubuntu out, Debian & Ubuntu in

parent fbb2dc74
Branches
No related merge requests found
......@@ -41,13 +41,21 @@ get_omnia_url() {
echo "https://api.turris.cz/openwrt-repo/omnia/$REL"
}
get_linaro_release() {
wget -O - https://releases.linaro.org/$1/images/developer/latest/ | sed -n 's|.*href="/'"$1"'/images/developer/latest/linaro-\([a-z]*\)-developer-[0-9]*-[0-9]*.tar.gz.*|\1|p'
}
get_linaro_url() {
echo "https://releases.linaro.org`wget -O - https://releases.linaro.org/$1/images/developer/latest/ | sed -n 's|.*href="\(/'"$1"'/images/developer/latest/linaro-[a-z]*-developer-[0-9]*-[0-9]*.tar.gz\).*|\1|p'`"
}
add_image "Turris_OS" "stable" "armv7l" "`get_omnia_url`"
add_image "Turris_OS" "stable" "ppc" "https://api.turris.cz/openwrt-repo/turris/openwrt-mpc85xx-p2020-nand-TURRISNAND-rootfs.tar.gz"
add_image "Arch_Linux_ARM" "latest" "armv7l" "https://archlinuxarm.org/os/ArchLinuxARM-armv7-latest.tar.gz"
add_image "Debian" "`get_linaro_release debian`" "`get_linaro_url debian`"
add_image "Gentoo" "stable" "armv7l" "`get_gentoo_url arm armv7a_hardfp`"
add_image "openSUSE" "13.2" "armv7l" "http://download.opensuse.org/ports/armv7hl/distribution/13.2/appliances/openSUSE-13.2-ARM-JeOS.armv7-rootfs.armv7l-Current.tbz"
add_image "openSUSE" "Tumbleweed" "armv7l" "http://download.opensuse.org/ports/armv7hl/tumbleweed/images/openSUSE-Tumbleweed-ARM-JeOS.armv7-rootfs.armv7l-Current.tbz"
add_image "Ubuntu_Cloud" "16.04" "armv7l" "https://uec-images.ubuntu.com/releases/16.04/release/ubuntu-16.04-server-cloudimg-armhf-root.tar.gz"
add_image "Ubuntu" "`get_linaro_release ubuntu`" "`get_linaro_url ubuntu`"
if [ "`gpg -K`" ]; then
if [ -f ~/gpg-pass ]; then
......
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