feat(quickget): add Azure Linux (3.0) support
- Add os_info() case entry with a description for Azure Linux - Add Azure Linux to os_support() list - Implement releases_azurelinux() returning "3.0" - Implement arch_azurelinux() returning "amd64 arm64" - Implement get_azurelinux() using stable aka.ms download URLs: - https://aka.ms/azurelinux-3.0-x86_64.iso - https://aka.ms/azurelinux-3.0-aarch64.iso Fixes #1459 Signed-off-by: Martin Wimpress <martin@wimpress.org>
This commit is contained in:
parent
e600d742ba
commit
5504fdf4cc
18
quickget
18
quickget
|
|
@ -34,6 +34,7 @@ function os_info() {
|
|||
archcraft) INFO="Archcraft|-|https://archcraft.io/|Yet another minimal Linux distribution, based on Arch Linux.";;
|
||||
archlinux) INFO="Arch Linux|-|https://archlinux.org/|Lightweight and flexible Linux® distribution that tries to Keep It Simple.";;
|
||||
artixlinux) INFO="Artix Linux|-|https://artixlinux.org/|The Art of Linux. Simple. Fast. Systemd-free.";;
|
||||
azurelinux) INFO="Azure Linux|-|https://github.com/microsoft/azurelinux|Microsoft's internal Linux distribution for cloud infrastructure and edge.";;
|
||||
batocera) INFO="Batocera|-|https://batocera.org/|Retro-gaming distribution with the aim of turning any computer/nano computer into a gaming console during a game or permanently.";;
|
||||
bazzite) INFO="Bazzite|-|https://github.com/ublue-os/bazzite/|Container native gaming and a ready-to-game SteamOS like.";;
|
||||
biglinux) INFO="BigLinux|-|https://www.biglinux.com.br/|Is the right choice if you want to have an easy and enriching experience with Linux. It has been perfected over more than 19 years, following our motto: 'In search of the perfect system'.";;
|
||||
|
|
@ -641,6 +642,7 @@ function os_support() {
|
|||
archcraft \
|
||||
archlinux \
|
||||
artixlinux \
|
||||
azurelinux \
|
||||
batocera \
|
||||
bazzite \
|
||||
biglinux \
|
||||
|
|
@ -784,6 +786,10 @@ function editions_artixlinux() {
|
|||
echo $(web_pipe "https://mirror1.artixlinux.org/iso/" | grep "artix-" | cut -d'"' -f2 | grep -v sig | sed 's/artix-//' | sed 's/-[0-9]\{8\}-x86_64.iso//' | sort -u)
|
||||
}
|
||||
|
||||
function releases_azurelinux() {
|
||||
echo 3.0
|
||||
}
|
||||
|
||||
function releases_batocera() {
|
||||
#shellcheck disable=SC2046,SC2005
|
||||
echo $(web_pipe "https://mirrors.o2switch.fr/batocera/x86_64/stable/" | grep ^\<a | cut -d'"' -f2 | cut -d '/' -f1 | grep -v '\.' | sort -ru | tail -n +2 | head -n 5)
|
||||
|
|
@ -1380,6 +1386,10 @@ function arch_alpine() {
|
|||
echo "amd64 arm64"
|
||||
}
|
||||
|
||||
function arch_azurelinux() {
|
||||
echo "amd64 arm64"
|
||||
}
|
||||
|
||||
function arch_debian() {
|
||||
case "${EDITION}" in
|
||||
netinst) echo "amd64 arm64";;
|
||||
|
|
@ -1998,6 +2008,14 @@ function get_artixlinux() {
|
|||
echo "${URL}/${ISO} ${HASH}"
|
||||
}
|
||||
|
||||
function get_azurelinux() {
|
||||
local QEMU_ARCH="x86_64"
|
||||
[ "${ARCH}" == "arm64" ] && QEMU_ARCH="aarch64"
|
||||
local URL="https://aka.ms/azurelinux-${RELEASE}-${QEMU_ARCH}.iso"
|
||||
ISO=$(web_redirect "${URL}")
|
||||
echo "${ISO}"
|
||||
}
|
||||
|
||||
function get_batocera() {
|
||||
local HASH=""
|
||||
local ISO=""
|
||||
|
|
|
|||
Loading…
Reference in New Issue