Rocky Vault Image Support
I need to build specific image versions of Rocky like 8.5 for example. This is for compatibility with EDA Software. I tried to build an image using the ci yaml file and adding the specific version like this:
sudo distrobuilder build-lxc ./rockylinux-ci.yaml ./image03 -o image.architecture=x86_64 -o image.release=8.5 -o image.variant=default
but the resulting image was 8.6. So I downloaded the distrobuilder source and made changes (see diff below) to hard wire 8.5 and was able to build an image as desired:
$ grep VERSION_ID /etc/os-release
VERSION_ID="8.5"
Note I also change Rocky-release to rocky-release as the latter threw a error. I also noted that I could not use source variant minimal but had to use source variant boot in the yaml file (bugs or just me?). And to catch 8.5 for the source I used url: https://dl.rockylinux.org/vault/rocky/ as source url.
I'm building on Ubuntu 20.04.4 LTS.
Are there other distrobuilder options I should have used to get specifically 8.5? rockyvault-http.go?
My hard wired changes:
distrobuilder$ git status
On branch master
Your branch is up to date with 'origin/master'.
distrobuilder$ git diff -U0 -- sources/rocky-http.go
diff --git a/sources/rocky-http.go b/sources/rocky-http.go
index 94ae644..422770c 100644
--- a/sources/rocky-http.go
+++ b/sources/rocky-http.go
@@ -219 +219,2 @@ name=Rocky-$releasever - Base
-mirrorlist=http://mirrors.rockylinux.org/mirrorlist?arch=$basearch&repo=BaseOS-$releasever
+#mirrorlist=http://mirrors.rockylinux.org/mirrorlist?arch=$basearch&repo=BaseOS-$releasever
+baseurl=http://dl.rockylinux.org/vault/rocky/8.5/BaseOS/$basearch/os/
@@ -227 +228 @@ fi
-pkgs="basesystem Rocky-release yum"
+pkgs="basesystem rocky-release yum"
@@ -230 +231 @@ mkdir /rootfs
-yum ${yum_args} --installroot=/rootfs -y --releasever="${RELEASE}" --skip-broken install ${pkgs}
+yum ${yum_args} --installroot=/rootfs -y --releasever="8.5" --skip-broken install ${pkgs}