diff options
author | Alexander Hall <halex@cvs.openbsd.org> | 2012-07-13 14:50:35 +0000 |
---|---|---|
committer | Alexander Hall <halex@cvs.openbsd.org> | 2012-07-13 14:50:35 +0000 |
commit | b2d43cca62e367cc7f747d8d43b4ba4e03bcd011 (patch) | |
tree | fc62936456be7173b1995e674a6b024dd9ab63c6 /distrib/amd64/common | |
parent | 5ce96273ef308ab90a54b14b134e2e4adf0d8f20 (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/amd64/common')
-rw-r--r-- | distrib/amd64/common/install.md | 5 |
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}." |