diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2004-03-03 02:19:27 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2004-03-03 02:19:27 +0000 |
commit | 9afd9c1ce6e0ff18951af67b95af619ca6605bf4 (patch) | |
tree | 4ab39bb201e9e23230359164b70e364906aae55d | |
parent | e55756556ed8ecd36971116dd5b602a707785264 (diff) |
Use 'cat' rather than 'cp' to put /boot on disk. This preserves
/boot's i-node number and allows multiboot (NTLDR) setups to work
across upgrades. Suggested by Tom Cosgrove and Todd Miller.
NOTE: Will only work if preserved biosboot is an LBA biosboot. i.e.
won't work for 3.4 -> 3.5 upgrade because LBA biosboot went in
post-3.4.
ok millert@ deraadt@ tom@ nick@
-rw-r--r-- | distrib/i386/common/install.md | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/distrib/i386/common/install.md b/distrib/i386/common/install.md index 672c22f6a4e..bb1ab8c9710 100644 --- a/distrib/i386/common/install.md +++ b/distrib/i386/common/install.md @@ -1,4 +1,4 @@ -# $OpenBSD: install.md,v 1.21 2003/10/12 13:18:37 krw Exp $ +# $OpenBSD: install.md,v 1.22 2004/03/03 02:19:26 krw Exp $ # # # Copyright (c) 1996 The NetBSD Foundation, Inc. @@ -92,7 +92,9 @@ __EOT md_installboot() { echo Installing boot block... - cp /usr/mdec/boot /mnt/boot + # LBA biosboot uses /boot's i-node number. Using 'cat' preserves that + # number, so multiboot setups (NTLDR) can work across upgrades. + cat /usr/mdec/boot > /mnt/boot /usr/mdec/installboot -v /mnt/boot /usr/mdec/biosboot ${1} echo "done." } |