Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Changed url to mirror and also moved the creation of tar ball after u…

…nmounting to ensure that the file is closed before compressing it
  • Loading branch information...
commit 2e7103f6e47e5c8f3a13c96f255f8fa77bed45c1 1 parent 9a5a2f0
Johan Ryberg jryberg authored
Showing with 8 additions and 8 deletions.
  1. +8 −8 build-usbinstallimage.sh
16 build-usbinstallimage.sh
View
@@ -5,11 +5,11 @@ SHORTREL="50"
LONGREL="5.0"
# Update ARC for the architecture to use
-#ARC=i386
-ARC=amd64
+ARC=i386
+#ARC=amd64
-# Change if ftp.su.se is not the best place to get your files from
-URLBASE="http://ftp.su.se/pub/OpenBSD/${LONGREL}"
+# Change if ftp.eu.openbsd.org is not the best place to get your files from
+URLBASE="http://ftp.eu.openbsd.org/pub/OpenBSD/${LONGREL}"
# No need to change anything below this line for new OS releases!
SUDO=sudo
@@ -146,10 +146,6 @@ echo "Copying files"
${SUDO} cp -R ${MOUNTPOINTCD}/* ${MOUNTPOINT}
echo ""
-echo "gzipping ${IMAGEFILE} to ${IMAGEFILE}.gz..."
-gzip ${IMAGEFILE}
-
-echo ""
echo "Unmounting and cleaning up..."
${SUDO} umount $MOUNTPOINT
${SUDO} vnconfig -u $DEVICE
@@ -159,6 +155,10 @@ ${SUDO} rm -r ${MOUNTPOINT}
${SUDO} rm -r ${MOUNTPOINTCD}
echo ""
+echo "gzipping ${IMAGEFILE} to ${IMAGEFILE}.gz..."
+gzip ${IMAGEFILE}
+
+echo ""
echo "And we are done..."
echo "Use \"gunzip -c ${IMAGEFILE}.gz | dd of=/dev/sd0c\" on unix to write to flash"
echo "On Windows you can use http://m0n0.ch/wall/physdiskwrite.php"

1 comment on commit 2e7103f

Johan Ryberg
Owner

Ah, also changed default from amd64 to i386

Please sign in to comment.
Something went wrong with that request. Please try again.