summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Kreutz <mail@skreutz.com>2026-04-11 23:42:55 +0200
committerStefan Kreutz <mail@skreutz.com>2026-04-11 23:46:58 +0200
commit13401ffcaa39887830a8c86b171a53da883be75d (patch)
tree334e4103b2c4dba7a0a92ff43946ab89fc566f62
parente583e2cd9b622bbd7c165767554f7debc7c042fb (diff)
downloadautoinstall-openbsd-on-qemu-13401ffcaa39887830a8c86b171a53da883be75d.tar.gz
Tag mirror, tmp as cache directoriesdev
-rwxr-xr-xautoinstall-openbsd-on-qemu19
1 files changed, 19 insertions, 0 deletions
diff --git a/autoinstall-openbsd-on-qemu b/autoinstall-openbsd-on-qemu
index 3b01c8e..7ca9d75 100755
--- a/autoinstall-openbsd-on-qemu
+++ b/autoinstall-openbsd-on-qemu
@@ -65,6 +65,17 @@ do
fi
done
+# Tag local mirror as cache directory.
+mkdir -p mirror/pub
+if [ ! -e mirror/pub/CACHEDIR.TAG ] ; then
+ cat >mirror/pub/CACHEDIR.TAG <<EOF
+Signature: 8a477f597d28d172789f06886806bc55
+# This file is a cache directory tag created by autoinstall-openbsd-on-qemu.
+# For information about cache directory tags, see:
+# http://www.brynosaurus.com/cachedir/
+EOF
+fi
+
# Fetch base public key from trusted HTTPS mirror.
mkdir -p "mirror/pub/OpenBSD/${RELEASE}"
if [ ! -e "mirror/pub/OpenBSD/${RELEASE}/openbsd-${dotless_release}-base.pub" ]
@@ -81,6 +92,14 @@ fi
if [ ! -d "mirror/pub/OpenBSD/${RELEASE}/amd64" ]
then
mkdir -p tmp
+ if [ ! -e tmp/CACHEDIR.TAG ] ; then
+ cat >tmp/CACHEDIR.TAG <<EOF
+Signature: 8a477f597d28d172789f06886806bc55
+# This file is a cache directory tag created by autoinstall-openbsd-on-qemu.
+# For information about cache directory tags, see:
+# http://www.brynosaurus.com/cachedir/
+EOF
+ fi
printf "Fetching installation files ...\\n"
rsync --archive --files-from=- --quiet \
"${RSYNC_MIRROR}${RELEASE}/amd64/" \
Generated by cgit. See skreutz.com for my tech blog and contact information.