diff options
| author | Stefan Kreutz <mail@skreutz.com> | 2024-06-28 12:39:26 +0200 | 
|---|---|---|
| committer | Stefan Kreutz <mail@skreutz.com> | 2024-06-28 12:39:26 +0200 | 
| commit | 047192140658655fbce5af76343dedd73f7677be (patch) | |
| tree | 8b5bcf58eabdb9cc696b82833dac68a700944b69 | |
| parent | 20af8636e784c17da71a9f72bf022ae93cbabb09 (diff) | |
| download | autoinstall-openbsd-on-qemu-047192140658655fbce5af76343dedd73f7677be.tar | |
Update to OpenBSD 7.5
| -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 a748824..4bbae47 100755 --- a/autoinstall-openbsd-on-qemu +++ b/autoinstall-openbsd-on-qemu @@ -1,6 +1,6 @@  #! /bin/sh -# Auto-install OpenBSD/amd64 7.3 on QEMU. +# Auto-install OpenBSD/amd64 7.5 on QEMU.  #  # First published at https://www.skreutz.com/posts/autoinstall-openbsd-on-qemu/  # on 22 July 2020. @@ -54,45 +54,45 @@ do  done  # Fetch base public key from trusted HTTPS mirror. -mkdir -p mirror/pub/OpenBSD/7.3 -if [ ! -e mirror/pub/OpenBSD/7.3/openbsd-73-base.pub ] +mkdir -p mirror/pub/OpenBSD/7.5 +if [ ! -e mirror/pub/OpenBSD/7.5/openbsd-75-base.pub ]  then    curl \      --silent \ -    --output mirror/pub/OpenBSD/7.3/openbsd-73-base.pub \ -    "${HTTPS_MIRROR}7.3/openbsd-73-base.pub" +    --output mirror/pub/OpenBSD/7.5/openbsd-75-base.pub \ +    "${HTTPS_MIRROR}7.5/openbsd-75-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.3/amd64 ] +if [ ! -d mirror/pub/OpenBSD/7.5/amd64 ]  then    mkdir -p tmp    printf "Fetching installation files ...\\n"    rsync --archive --files-from=- --quiet \ -    "${RSYNC_MIRROR}7.3/amd64/" \ +    "${RSYNC_MIRROR}7.5/amd64/" \      tmp/ \      << EOF  SHA256.sig -base73.tgz +base75.tgz  bsd  bsd.mp  bsd.rd -comp73.tgz -game73.tgz -man73.tgz +comp75.tgz +game75.tgz +man75.tgz  pxeboot -xbase73.tgz -xfont73.tgz -xserv73.tgz -xshare73.tgz +xbase75.tgz +xfont75.tgz +xserv75.tgz +xshare75.tgz  EOF    ( cd tmp && signify -C -q \ -      -p ../mirror/pub/OpenBSD/7.3/openbsd-73-base.pub \ +      -p ../mirror/pub/OpenBSD/7.5/openbsd-75-base.pub \        -x SHA256.sig \ -      -- bsd bsd.* pxeboot *73.tgz ) -  mv tmp mirror/pub/OpenBSD/7.3/amd64 +      -- bsd bsd.* pxeboot *75.tgz ) +  mv tmp mirror/pub/OpenBSD/7.5/amd64    printf "Fetched kernel, PXE bootstrap program, and file sets from %s\\n" "${RSYNC_MIRROR}"  fi @@ -113,9 +113,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) = site73.tgz -Checksum test for site73.tgz failed. Continue anyway = yes -Unverified sets: site73.tgz. Continue without verification = yes +Set name(s) = site75.tgz +Checksum test for site75.tgz failed. Continue anyway = yes +Unverified sets: site75.tgz. Continue without verification = yes  EOF    printf "Created example response file for autoinstall(8) at ./mirror/install.conf\\n"  fi @@ -164,19 +164,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.3/amd64/site73.tgz ] || [ "$( stat -c %Y mirror/pub/OpenBSD/7.3/amd64/site73.tgz )" -lt "${site_dir_changed}" ] +if [ ! -e mirror/pub/OpenBSD/7.5/amd64/site75.tgz ] || [ "$( stat -c %Y mirror/pub/OpenBSD/7.5/amd64/site75.tgz )" -lt "${site_dir_changed}" ]  then -  rm -f mirror/pub/OpenBSD/7.3/amd64/site73.tgz -  ( cd site && tar -czf ../mirror/pub/OpenBSD/7.3/amd64/site73.tgz . ) -  ( cd mirror/pub/OpenBSD/7.3/amd64 && ls -l > index.txt ) +  rm -f mirror/pub/OpenBSD/7.5/amd64/site75.tgz +  ( cd site && tar -czf ../mirror/pub/OpenBSD/7.5/amd64/site75.tgz . ) +  ( cd mirror/pub/OpenBSD/7.5/amd64 && ls -l > index.txt )  fi  # Create TFTP directory if not exists.  if [ ! -d tftp ]  then    mkdir tftp -  ln -s ../mirror/pub/OpenBSD/7.3/amd64/pxeboot tftp/auto_install -  ln -s ../mirror/pub/OpenBSD/7.3/amd64/bsd.rd tftp/bsd.rd +  ln -s ../mirror/pub/OpenBSD/7.5/amd64/pxeboot tftp/auto_install +  ln -s ../mirror/pub/OpenBSD/7.5/amd64/bsd.rd tftp/bsd.rd    mkdir tftp/etc    cat << EOF > tftp/etc/boot.conf  stty com0 115200 @@ -190,7 +190,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.3/amd64/site73.tgz tftp/etc/boot.conf +  for f in mirror/install.conf mirror/disklabel mirror/pub/OpenBSD/7.5/amd64/site75.tgz tftp/etc/boot.conf    do      if [ "${vm_created}" -lt "$( stat -c %Y "$f" )" ]      then |