summaryrefslogtreecommitdiff
path: root/distrib/amd64/common
diff options
context:
space:
mode:
Diffstat (limited to 'distrib/amd64/common')
-rw-r--r--distrib/amd64/common/install.md5
1 files changed, 3 insertions, 2 deletions
diff --git a/distrib/amd64/common/install.md b/distrib/amd64/common/install.md
index 7b3034ba2b9..1472086b241 100644
--- a/distrib/amd64/common/install.md
+++ b/distrib/amd64/common/install.md
@@ -1,4 +1,4 @@
-# $OpenBSD: install.md,v 1.30 2012/07/10 14:25:00 halex Exp $
+# $OpenBSD: install.md,v 1.31 2012/07/13 14:50:34 halex Exp $
#
#
# Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -39,7 +39,8 @@ NCPU=$(sysctl -n hw.ncpufound)
((NCPU > 1)) && { DEFAULTSETS="bsd bsd.rd bsd.mp" ; SANESETS="bsd bsd.mp" ; }
md_installboot() {
- cp /usr/mdec/boot /mnt/boot
+ # Use cat to avoid holes created by cp(1)
+ cat /usr/mdec/boot > /mnt/boot
if ! /usr/mdec/installboot /mnt/boot /usr/mdec/biosboot ${1} ; then
echo "\nFailed to install bootblocks."
echo "You will not be able to boot OpenBSD from ${1}."