diff options
author | 2001-04-17 05:37:01 +0000 | |
---|---|---|
committer | 2001-04-17 05:37:01 +0000 | |
commit | ed4e4e58cce548b218a936f0a75965ea1b6f307e (patch) | |
tree | aeda4d1700a86980851096af6c845482c4767d8f | |
parent | crank maxusers by a teeeeeny little bit (diff) | |
download | wireguard-openbsd-ed4e4e58cce548b218a936f0a75965ea1b6f307e.tar.xz wireguard-openbsd-ed4e4e58cce548b218a936f0a75965ea1b6f307e.zip |
Do not claim that a user will not be able to boot from the hard drive
because they installed on a HFS partitioned disk, tell them that they
have to set it up by copying 'ofwboot' to the first HFS partition.
-rw-r--r-- | distrib/powerpc/ramdisk/install.md | 25 |
1 files changed, 16 insertions, 9 deletions
diff --git a/distrib/powerpc/ramdisk/install.md b/distrib/powerpc/ramdisk/install.md index a7ee46e8bb9..5804dcfdcd7 100644 --- a/distrib/powerpc/ramdisk/install.md +++ b/distrib/powerpc/ramdisk/install.md @@ -1,4 +1,4 @@ -# $OpenBSD: install.md,v 1.22 2001/04/17 04:15:27 drahn Exp $ +# $OpenBSD: install.md,v 1.23 2001/04/17 05:37:01 drahn Exp $ # # # Copyright rc) 1996 The NetBSD Foundation, Inc. @@ -79,12 +79,19 @@ md_questions() { } md_installboot() { - echo "Installing boot in the msdos partition /dev/${1}i" - if mount -t msdos /dev/${1}i /mnt2 ; then - cp /usr/mdec/ofwboot /mnt2 - umount /mnt2 - else - echo "Failed, you will not be able to boot from /dev/${1}." + if [[ $disklabeltype = "HFS" ]] + then + echo "the 'ofwboot' program needs to be copied to the first HFS partition" + echo "of the disk to allow booting of OpenBSD" + elif [[ $disklabeltype = "MBR" ]] + then + echo "Installing boot in the msdos partition /dev/${1}i" + if mount -t msdos /dev/${1}i /mnt2 ; then + cp /usr/mdec/ofwboot /mnt2 + umount /mnt2 + else + echo "Failed, you will not be able to boot from /dev/${1}." + fi fi } @@ -163,12 +170,12 @@ md_checkfordisklabel() { getresp "h" case "$resp" in m*|M*) - disklabeltype=MBR + export disklabeltype=MBR md_checkforMBRdisklabel $1 rval=$? ;; *) - disklabeltype=HFS + export disklabeltype=HFS md_init_hfs $1 rval=$? ;; |