summaryrefslogtreecommitdiff
path: root/distrib/hppa
diff options
context:
space:
mode:
authorJoel Sing <jsing@cvs.openbsd.org>2014-02-23 11:08:03 +0000
committerJoel Sing <jsing@cvs.openbsd.org>2014-02-23 11:08:03 +0000
commit7c352baca2ef70b570f866e92cf0b496322f6334 (patch)
tree3e2030132edc7451cfde2f65d2be4865e52bed27 /distrib/hppa
parentcb0e1715cb6c663f335da7b83375aac8422bc5a9 (diff)
Use the new installboot for hppa installs.
Diffstat (limited to 'distrib/hppa')
-rw-r--r--distrib/hppa/install.md10
1 files changed, 6 insertions, 4 deletions
diff --git a/distrib/hppa/install.md b/distrib/hppa/install.md
index 4e286effee9..467a582d35a 100644
--- a/distrib/hppa/install.md
+++ b/distrib/hppa/install.md
@@ -1,4 +1,4 @@
-# $OpenBSD: install.md,v 1.22 2013/11/16 18:37:27 rpe Exp $
+# $OpenBSD: install.md,v 1.23 2014/02/23 11:08:02 jsing Exp $
#
# machine dependent section of installation/upgrade script.
#
@@ -9,14 +9,16 @@ NCPU=$(sysctl -n hw.ncpufound)
((NCPU > 1)) && { DEFAULTSETS="bsd bsd.rd bsd.mp" ; SANESETS="bsd bsd.mp" ; }
md_installboot() {
- /sbin/disklabel -B $1
+ if ! installboot -r /mnt ${1} ; then
+ echo "\nFailed to install bootblocks."
+ echo "You will not be able to boot OpenBSD from ${1}."
+ exit
+ fi
}
md_prep_disklabel() {
local _disk=$1 _f _op
- md_installboot $_disk
-
_f=/tmp/fstab.$_disk
if [[ $_disk == $ROOTDISK ]]; then
while :; do