summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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.