From c128b962b3c21dc3e870a91de2d75fecf42bfa58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Graber?= Date: Sat, 15 Mar 2025 15:19:50 -0400 Subject: [PATCH] gentoo: Fix getting stage3 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes #69 Suggests-by: atlant2011 Signed-off-by: Stéphane Graber --- templates/lxc-gentoo.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/lxc-gentoo.in b/templates/lxc-gentoo.in index adb1e61..6a4dc96 100644 --- a/templates/lxc-gentoo.in +++ b/templates/lxc-gentoo.in @@ -163,7 +163,7 @@ cache_stage3() printf "Determining path to latest Gentoo %s (%s) stage3 archive...\n" "${arch}" "${variant}" printf " => downloading and processing %s\n" "${stage3_pointer}" - local stage3_latest_tarball=$(wget -q -O - "${stage3_pointer}" | tail -n1 | cut -d' ' -f1) \ + local stage3_latest_tarball=$(wget -q -O - "${stage3_pointer}" | grep stage3 | tail -n1 | cut -d' ' -f1) \ || die 6 "Error: unable to fetch\n" printf " => Got: %s\n" "${stage3_latest_tarball}"