summaryrefslogtreecommitdiff
path: root/distrib/amd64/iso/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'distrib/amd64/iso/Makefile')
-rw-r--r--distrib/amd64/iso/Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/distrib/amd64/iso/Makefile b/distrib/amd64/iso/Makefile
index e92f8fcd563..400c0da03df 100644
--- a/distrib/amd64/iso/Makefile
+++ b/distrib/amd64/iso/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.32 2019/05/01 20:53:55 deraadt Exp $
+# $OpenBSD: Makefile,v 1.33 2019/05/03 20:03:58 deraadt Exp $
FS= install${OSrev}.fs
FSSIZE= 921536
@@ -45,12 +45,13 @@ ${FS}: ${BASE} ${XBASE} bsd.gz
cp ${DESTDIR}/usr/mdec/boot ${MOUNT_POINT}/boot
strip ${MOUNT_POINT}/boot
strip -R .comment -R .SUNW_ctf ${MOUNT_POINT}/boot
- dd if=bsd.gz of=${MOUNT_POINT}/bsd bs=512
installboot -v -r ${MOUNT_POINT} `cat vnd` \
${DESTDIR}/usr/mdec/biosboot ${MOUNT_POINT}/boot
mkdir -p ${MOUNT_POINT}/${OSREV}/${MACHINE}
mkdir -p ${MOUNT_POINT}/etc
echo "set image /${OSREV}/${MACHINE}/bsd.rd" > ${MOUNT_POINT}/etc/boot.conf
+ install -c -m 555 -o root -g wheel bsd.gz ${MOUNT_POINT}/bsd
+ ln ${MOUNT_POINT}/bsd ${MOUNT_POINT}/bsd.rd
cp -p ${BASE} ${MOUNT_POINT}/${OSREV}/${MACHINE}
cp -p ${XBASE} ${MOUNT_POINT}/${OSREV}/${MACHINE}
@@ -98,7 +99,7 @@ bsd.gz: bsd.rd
cp bsd.rd bsd.strip
strip bsd.strip
strip -R .comment -R .SUNW_ctf bsd.strip
- gzip -c9n bsd.strip > bsd.gz
+ gzip -9cn bsd.strip > bsd.gz
bsd.rd: ${BSDRD}
cp ${BSDRD} bsd.rd