diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2006-11-08 18:08:17 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2006-11-08 18:08:17 +0000 |
commit | 289ea2d305fdef451e90976be19fce5a95a6d1f3 (patch) | |
tree | 98977c5df89e5e84bf41e16a4571189f03b5d147 /distrib | |
parent | 065f6172ffd3d6ae5ed5b2e1d4d1ca9aa060d766 (diff) |
attempt to make disk bootable
Diffstat (limited to 'distrib')
-rw-r--r-- | distrib/landisk/ramdisk/install.md | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/distrib/landisk/ramdisk/install.md b/distrib/landisk/ramdisk/install.md index fc2f220fdc6..8ae7e0547ff 100644 --- a/distrib/landisk/ramdisk/install.md +++ b/distrib/landisk/ramdisk/install.md @@ -1,4 +1,4 @@ -# $OpenBSD: install.md,v 1.1 2006/10/25 04:04:16 drahn Exp $ +# $OpenBSD: install.md,v 1.2 2006/11/08 18:08:16 deraadt Exp $ # # # Copyright (c) 1996 The NetBSD Foundation, Inc. @@ -43,6 +43,20 @@ MDFSTYPE=msdos ARCH=ARCH md_installboot() { + # $1 is the root disk + + echo -n "Installing boot block..." + disklabel -W ${1} + disklabel -B ${1} + + # use extracted mdec if it exists (may be newer) + if [ -d /mnt/usr/mdec ]; then + cp /mnt/usr/mdec/boot /mnt/boot + elif [ -d /usr/mdec ]; then + cp /usr/mdec/boot /mnt/boot + fi + + echo "done." } # $1 is the disk to check |