diff options
author | Stefan Kreutz <mail@skreutz.com> | 2025-05-24 16:48:50 +0200 |
---|---|---|
committer | Stefan Kreutz <mail@skreutz.com> | 2025-05-24 16:48:50 +0200 |
commit | ecdd19377765809c042b0e4517a32fc134a137f2 (patch) | |
tree | e92f59a966a3ab86892ce35f93896e4da6bff6c9 | |
parent | a6dcdb5da34a45f1b5ef513e3c6d24bf948290d0 (diff) | |
download | autoinstall-openbsd-on-qemu-ecdd19377765809c042b0e4517a32fc134a137f2.tar |
Update to OpenBSD 7.7
-rwxr-xr-x | autoinstall-openbsd-on-qemu | 56 |
1 files changed, 28 insertions, 28 deletions
diff --git a/autoinstall-openbsd-on-qemu b/autoinstall-openbsd-on-qemu index 9a1fc85..c337120 100755 --- a/autoinstall-openbsd-on-qemu +++ b/autoinstall-openbsd-on-qemu @@ -1,6 +1,6 @@ #! /bin/sh -# Auto-install OpenBSD/amd64 7.6 on QEMU. +# Auto-install OpenBSD/amd64 7.7 on QEMU. # # First published at https://www.skreutz.com/posts/autoinstall-openbsd-on-qemu/ # on 22 July 2020. @@ -56,46 +56,46 @@ do done # Fetch base public key from trusted HTTPS mirror. -mkdir -p mirror/pub/OpenBSD/7.6 -if [ ! -e mirror/pub/OpenBSD/7.6/openbsd-76-base.pub ] +mkdir -p mirror/pub/OpenBSD/7.7 +if [ ! -e mirror/pub/OpenBSD/7.7/openbsd-77-base.pub ] then curl \ --silent \ - --output mirror/pub/OpenBSD/7.6/openbsd-76-base.pub \ - "${HTTPS_MIRROR}7.6/openbsd-76-base.pub" + --output mirror/pub/OpenBSD/7.7/openbsd-77-base.pub \ + "${HTTPS_MIRROR}7.7/openbsd-77-base.pub" printf "Fetched base public key from %s\\n" "${HTTPS_MIRROR}" fi # Fetch kernel, PXE bootstrap program, and file sets from untrusted rsync # mirror. -if [ ! -d mirror/pub/OpenBSD/7.6/amd64 ] +if [ ! -d mirror/pub/OpenBSD/7.7/amd64 ] then mkdir -p tmp printf "Fetching installation files ...\\n" rsync --archive --files-from=- --quiet \ - "${RSYNC_MIRROR}7.6/amd64/" \ + "${RSYNC_MIRROR}7.7/amd64/" \ tmp/ \ << EOF SHA256.sig -base76.tgz +base77.tgz bsd bsd.mp bsd.rd -comp76.tgz -game76.tgz -man76.tgz +comp77.tgz +game77.tgz +man77.tgz pxeboot -xbase76.tgz -xfont76.tgz -xserv76.tgz -xshare76.tgz +xbase77.tgz +xfont77.tgz +xserv77.tgz +xshare77.tgz BUILDINFO EOF ( cd tmp && signify -C -q \ - -p ../mirror/pub/OpenBSD/7.6/openbsd-76-base.pub \ + -p ../mirror/pub/OpenBSD/7.7/openbsd-77-base.pub \ -x SHA256.sig \ - -- bsd bsd.* pxeboot *76.tgz ) - mv tmp mirror/pub/OpenBSD/7.6/amd64 + -- bsd bsd.* pxeboot *77.tgz ) + mv tmp mirror/pub/OpenBSD/7.7/amd64 printf "Fetched kernel, PXE bootstrap program, and file sets from %s\\n" "${RSYNC_MIRROR}" fi @@ -116,9 +116,9 @@ Location of sets = http HTTP Server = 10.0.2.2 Unable to connect using https. Use http instead = yes URL to autopartitioning template for disklabel = http://10.0.2.2/disklabel -Set name(s) = site76.tgz -Checksum test for site76.tgz failed. Continue anyway = yes -Unverified sets: site76.tgz. Continue without verification = yes +Set name(s) = site77.tgz +Checksum test for site77.tgz failed. Continue anyway = yes +Unverified sets: site77.tgz. Continue without verification = yes EOF printf "Created example response file for autoinstall(8) at ./mirror/install.conf\\n" fi @@ -167,19 +167,19 @@ fi # Package site-specific file set if not exists or changed. site_dir_changed="$( find site -exec stat -c %Y {} \; | sort -r | head -n 1 )" -if [ ! -e mirror/pub/OpenBSD/7.6/amd64/site76.tgz ] || [ "$( stat -c %Y mirror/pub/OpenBSD/7.6/amd64/site76.tgz )" -lt "${site_dir_changed}" ] +if [ ! -e mirror/pub/OpenBSD/7.7/amd64/site77.tgz ] || [ "$( stat -c %Y mirror/pub/OpenBSD/7.7/amd64/site77.tgz )" -lt "${site_dir_changed}" ] then - rm -f mirror/pub/OpenBSD/7.6/amd64/site76.tgz - ( cd site && tar -czf ../mirror/pub/OpenBSD/7.6/amd64/site76.tgz . ) - ( cd mirror/pub/OpenBSD/7.6/amd64 && ls -l > index.txt ) + rm -f mirror/pub/OpenBSD/7.7/amd64/site77.tgz + ( cd site && tar -czf ../mirror/pub/OpenBSD/7.7/amd64/site77.tgz . ) + ( cd mirror/pub/OpenBSD/7.7/amd64 && ls -l > index.txt ) fi # Create TFTP directory if not exists. if [ ! -d tftp ] then mkdir tftp - ln -s ../mirror/pub/OpenBSD/7.6/amd64/pxeboot tftp/auto_install - ln -s ../mirror/pub/OpenBSD/7.6/amd64/bsd.rd tftp/bsd.rd + ln -s ../mirror/pub/OpenBSD/7.7/amd64/pxeboot tftp/auto_install + ln -s ../mirror/pub/OpenBSD/7.7/amd64/bsd.rd tftp/bsd.rd mkdir tftp/etc cat << EOF > tftp/etc/boot.conf stty com0 115200 @@ -193,7 +193,7 @@ fi if [ -e "${DISK_FILE}" ] then vm_created="$( stat -c %W "${DISK_FILE}" )" - for f in mirror/install.conf mirror/disklabel mirror/pub/OpenBSD/7.6/amd64/site76.tgz tftp/etc/boot.conf + for f in mirror/install.conf mirror/disklabel mirror/pub/OpenBSD/7.7/amd64/site77.tgz tftp/etc/boot.conf do if [ "${vm_created}" -lt "$( stat -c %Y "$f" )" ] then |