scripts: 1-create.sh: Download latest gentoo stage3

This commit is contained in:
Albert S. 2022-06-24 22:51:36 +02:00
rodič 09d1c1e339
revize 2525b3dc1c
1 změnil soubory, kde provedl 4 přidání a 4 odebrání

Zobrazit soubor

@ -1,9 +1,9 @@
#!/bin/bash
set -e
# TODO: always download latest
wget https://bouncer.gentoo.org/fetch/root/all/releases/amd64/autobuilds/current-stage3-amd64-hardened-openrc/stage3-amd64-hardened-openrc-20220619T170540Z.tar.xz -O hardened.tar.xz
wget https://bouncer.gentoo.org/fetch/root/all/releases/amd64/autobuilds/current-stage3-amd64-hardened-openrc/stage3-amd64-hardened-openrc-20220619T170540Z.tar.xz.asc -O hardened.tar.xz.asc
LATEST=$( curl -L "https://bouncer.gentoo.org/fetch/root/all/releases/amd64/autobuilds/latest-stage3-amd64-hardened-openrc.txt" | tail -n 1 | awk '{print $1}' )
wget "https://bouncer.gentoo.org/fetch/root/all/releases/amd64/autobuilds/$LATEST" -O hardened.tar.xz
wget "https://bouncer.gentoo.org/fetch/root/all/releases/amd64/autobuilds/$LATEST.asc" -O hardened.tar.xz.asc
gpg --verify hardened.tar.xz.asc hardened.tar.xz