~fgaz/builds.sr.ht

daf7ebe2dfcb2bccbc228b710be3451191eedd5c — Haowen Liu 1 year, 6 months ago 1c7fd53
Add rockylinux/9
M contrib/crontab => contrib/crontab +2 -1
@@ 15,12 15,13 @@
 0 19 * * 2 chronic /usr/local/bin/submit_image_build -n "Weekly scheduled build image refresh" fedora/latest
30 19 * * 2 chronic /usr/local/bin/submit_image_build -n "Weekly scheduled build image refresh" -a amd64 debian/testing
 0 19 * * 3 chronic /usr/local/bin/submit_image_build -n "Weekly scheduled build image refresh" -a amd64 freebsd/12.x
30 19 * * 3 chronic /usr/local/bin/submit_image_build -n "Weekly scheduled build image refresh" -a amd64 rockylinux
30 19 * * 3 chronic /usr/local/bin/submit_image_build -n "Weekly scheduled build image refresh" -a amd64 rockylinux/8
 0 19 * * 4 chronic /usr/local/bin/submit_image_build -n "Weekly scheduled build image refresh" -a amd64 ubuntu/lts
30 19 * * 4 chronic /usr/local/bin/submit_image_build -n "Weekly scheduled build image refresh" alpine/latest
 0 19 * * 5 chronic /usr/local/bin/submit_image_build -n "Weekly scheduled build image refresh" -a amd64 freebsd/13.x
30 19 * * 5 chronic /usr/local/bin/submit_image_build -n "Weekly scheduled build image refresh" -a amd64 ubuntu/impish
 0 19 * * 6 chronic /usr/local/bin/submit_image_build -n "Weekly scheduled build image refresh" -a amd64 openbsd/latest
30 19 * * 6 chronic /usr/local/bin/submit_image_build -n "Weekly scheduled build image refresh" -a amd64 rockylinux/9

# Monthly
0 18 1 * * chronic /usr/local/bin/submit_image_build -n "Monthly scheduled build image refresh" -a amd64 ubuntu/oldlts

A images/rockylinux/9/functions => images/rockylinux/9/functions +1 -0
@@ 0,0 1,1 @@
../functions
\ No newline at end of file

A images/rockylinux/9/genimg => images/rockylinux/9/genimg +3 -0
@@ 0,0 1,3 @@
#!/bin/sh
export release=9
exec ../genimg "$*"

M images/rockylinux/build.yml => images/rockylinux/build.yml +1 -1
@@ 1,4 1,4 @@
image: rockylinux/latest
image: rockylinux/8
packages:
  - e2fsprogs
  - qemu-kvm

M images/rockylinux/genimg => images/rockylinux/genimg +16 -1
@@ 59,13 59,19 @@ mount ${NBD_DEVICE}p3 /mnt
mkdir /mnt/boot
mount ${NBD_DEVICE}p1 /mnt/boot

ln -sr /etc/pki/rpm-gpg/RPM-GPG-KEY-{rockyofficial,Rocky-$(rpm -E %rhel)}
curl -o /etc/pki/rpm-gpg/RPM-GPG-KEY-Rocky-9 https://dl.rockylinux.org/pub/rocky/RPM-GPG-KEY-Rocky-9
sed \
   -e 's|gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rockyofficial|gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-Rocky-$releasever|' \
   -i /etc/yum.repos.d/Rocky-*.repo
dnf update
dnf -y -q \
	--releasever="$release" \
	--installroot=/mnt \
	--disablerepo='*' \
	--enablerepo=appstream \
	--enablerepo=baseos\
        --enablerepo=extras \
	--enablerepo=extras \
	--setopt=install_weak_deps=False install\
	bash basesystem systemd passwd dnf rocky-release NetworkManager



@@ 86,6 92,15 @@ echo 'nameserver 8.8.4.4' >>/mnt/etc/resolv.conf

run_root systemd-machine-id-setup

# Rebuild package DB for RL9
if [[ $release = "9" ]]
then
run_root rpmdb --rebuilddb --define '"_db_backend sqlite"'
fi

# Enable EPEL
run_root dnf -y -q install https://dl.fedoraproject.org/pub/epel/epel-release-latest-$release.noarch.rpm 

# Delay installing systemd-udev becuase it accesses /dev/urandom.
run_root dnf -y -q install git mercurial openssh-server sudo systemd-udev chrony
run_root dnf -y -q groupinstall '"Development Tools"'

M images/rockylinux/latest => images/rockylinux/latest +1 -1
@@ 1,1 1,1 @@
8
\ No newline at end of file
9
\ No newline at end of file