summaryrefslogtreecommitdiff
path: root/distrib/sparc
diff options
context:
space:
mode:
authorAlexander Hall <halex@cvs.openbsd.org>2012-07-13 14:50:35 +0000
committerAlexander Hall <halex@cvs.openbsd.org>2012-07-13 14:50:35 +0000
commitb2d43cca62e367cc7f747d8d43b4ba4e03bcd011 (patch)
treefc62936456be7173b1995e674a6b024dd9ab63c6 /distrib/sparc
parent5ce96273ef308ab90a54b14b134e2e4adf0d8f20 (diff)
copy boot loaders using cat and shell redirection rather than cp,
since the latter may insert holes in the target files, which could be bad for the boot process ok deraadt@ guenther@
Diffstat (limited to 'distrib/sparc')
-rw-r--r--distrib/sparc/install.md5
1 files changed, 3 insertions, 2 deletions
diff --git a/distrib/sparc/install.md b/distrib/sparc/install.md
index 9766a9c0e11..0e8c09cab53 100644
--- a/distrib/sparc/install.md
+++ b/distrib/sparc/install.md
@@ -1,4 +1,4 @@
-# $OpenBSD: install.md,v 1.66 2012/07/10 14:25:00 halex Exp $
+# $OpenBSD: install.md,v 1.67 2012/07/13 14:50:34 halex Exp $
# $NetBSD: install.md,v 1.3.2.5 1996/08/26 15:45:28 gwr Exp $
#
#
@@ -50,7 +50,8 @@ md_installboot() {
return
fi
- cp ${_prefix}/boot /mnt/boot
+ # Use cat to avoid holes created by cp(1)
+ cat ${_prefix}/boot > /mnt/boot
sync
installboot /mnt/boot ${_prefix}/bootxx /dev/r${1}c
}