[lxc-devel] [distrobuilder/master] sources: Fix CentOS checksum file
monstermunchkin on Github
lxc-bot at linuxcontainers.org
Fri Oct 11 06:25:10 UTC 2019
A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 364 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20191010/cbb40717/attachment.bin>
-------------- next part --------------
From b59194966468dc18c35ab6cdae55bb044bcd5a71 Mon Sep 17 00:00:00 2001
From: Thomas Hipp <thomas.hipp at canonical.com>
Date: Fri, 11 Oct 2019 08:24:22 +0200
Subject: [PATCH] sources: Fix CentOS checksum file
Signed-off-by: Thomas Hipp <thomas.hipp at canonical.com>
---
sources/centos-http.go | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/sources/centos-http.go b/sources/centos-http.go
index cfe6870..4806420 100644
--- a/sources/centos-http.go
+++ b/sources/centos-http.go
@@ -75,7 +75,11 @@ func (s *CentOSHTTP) Run(definition shared.Definition, rootfsDir string) error {
if definition.Image.ArchitectureMapped == "armhfp" {
checksumFile = "sha256sum.txt"
} else {
- checksumFile = "sha256sum.txt.asc"
+ if strings.HasPrefix(definition.Image.Release, "8") {
+ checksumFile = "CHECKSUM.asc"
+ } else {
+ checksumFile = "sha256sum.txt.asc"
+ }
}
fpath, err := shared.DownloadHash(definition.Image, baseURL+checksumFile, "", nil)
More information about the lxc-devel
mailing list