diff options
| author | Stefan Kreutz <mail@skreutz.com> | 2026-04-10 23:56:52 +0200 |
|---|---|---|
| committer | Stefan Kreutz <mail@skreutz.com> | 2026-04-10 23:56:52 +0200 |
| commit | d230cf732d0b17b0ac7d3a8b645072539345a9da (patch) | |
| tree | 9a5b776ca10a38af539f909a8bff4e4c7f7700cc | |
| parent | cff2424c70f4f235a78fbdd7d42c24b0c97a5582 (diff) | |
| download | autoinstall-openbsd-on-qemu-d230cf732d0b17b0ac7d3a8b645072539345a9da.tar.gz | |
Update to OpenBSD 7.8
| -rwxr-xr-x | autoinstall-openbsd-on-qemu | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/autoinstall-openbsd-on-qemu b/autoinstall-openbsd-on-qemu index c337120..ade311b 100755 --- a/autoinstall-openbsd-on-qemu +++ b/autoinstall-openbsd-on-qemu @@ -1,6 +1,6 @@ #! /bin/sh -# Auto-install OpenBSD/amd64 7.7 on QEMU. +# Auto-install OpenBSD/amd64 7.8 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.7 -if [ ! -e mirror/pub/OpenBSD/7.7/openbsd-77-base.pub ] +mkdir -p mirror/pub/OpenBSD/7.8 +if [ ! -e mirror/pub/OpenBSD/7.8/openbsd-78-base.pub ] then curl \ --silent \ - --output mirror/pub/OpenBSD/7.7/openbsd-77-base.pub \ - "${HTTPS_MIRROR}7.7/openbsd-77-base.pub" + --output mirror/pub/OpenBSD/7.8/openbsd-78-base.pub \ + "${HTTPS_MIRROR}7.8/openbsd-78-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.7/amd64 ] +if [ ! -d mirror/pub/OpenBSD/7.8/amd64 ] then mkdir -p tmp printf "Fetching installation files ...\\n" rsync --archive --files-from=- --quiet \ - "${RSYNC_MIRROR}7.7/amd64/" \ + "${RSYNC_MIRROR}7.8/amd64/" \ tmp/ \ << EOF SHA256.sig -base77.tgz +base78.tgz bsd bsd.mp bsd.rd -comp77.tgz -game77.tgz -man77.tgz +comp78.tgz +game78.tgz +man78.tgz pxeboot -xbase77.tgz -xfont77.tgz -xserv77.tgz -xshare77.tgz +xbase78.tgz +xfont78.tgz +xserv78.tgz +xshare78.tgz BUILDINFO EOF ( cd tmp && signify -C -q \ - -p ../mirror/pub/OpenBSD/7.7/openbsd-77-base.pub \ + -p ../mirror/pub/OpenBSD/7.8/openbsd-78-base.pub \ -x SHA256.sig \ - -- bsd bsd.* pxeboot *77.tgz ) - mv tmp mirror/pub/OpenBSD/7.7/amd64 + -- bsd bsd.* pxeboot *78.tgz ) + mv tmp mirror/pub/OpenBSD/7.8/amd64 printf "Fetched kernel, PXE bootstrap program, and file sets from %s\\n" "${RSYNC_MIRROR}" fi @@ -108,7 +108,7 @@ Which speed should com0 use = 115200 System hostname = openbsd Password for root = ************* Allow root ssh login = no -Setup a user = puffy +Setup a user = ${USER} Password for user = ************* Public ssh key for user = $( cat "${SSH_KEY}" ) What timezone are you in = UTC @@ -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) = site77.tgz -Checksum test for site77.tgz failed. Continue anyway = yes -Unverified sets: site77.tgz. Continue without verification = yes +Set name(s) = site78.tgz +Checksum test for site78.tgz failed. Continue anyway = yes +Unverified sets: site78.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.7/amd64/site77.tgz ] || [ "$( stat -c %Y mirror/pub/OpenBSD/7.7/amd64/site77.tgz )" -lt "${site_dir_changed}" ] +if [ ! -e mirror/pub/OpenBSD/7.8/amd64/site78.tgz ] || [ "$( stat -c %Y mirror/pub/OpenBSD/7.8/amd64/site78.tgz )" -lt "${site_dir_changed}" ] then - 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 ) + rm -f mirror/pub/OpenBSD/7.8/amd64/site78.tgz + ( cd site && tar -czf ../mirror/pub/OpenBSD/7.8/amd64/site78.tgz . ) + ( cd mirror/pub/OpenBSD/7.8/amd64 && ls -l > index.txt ) fi # Create TFTP directory if not exists. if [ ! -d tftp ] then mkdir tftp - 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 + ln -s ../mirror/pub/OpenBSD/7.8/amd64/pxeboot tftp/auto_install + ln -s ../mirror/pub/OpenBSD/7.8/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.7/amd64/site77.tgz tftp/etc/boot.conf + for f in mirror/install.conf mirror/disklabel mirror/pub/OpenBSD/7.8/amd64/site78.tgz tftp/etc/boot.conf do if [ "${vm_created}" -lt "$( stat -c %Y "$f" )" ] then |