summaryrefslogtreecommitdiff
path: root/distrib/landisk
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2006-11-08 18:08:17 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2006-11-08 18:08:17 +0000
commit289ea2d305fdef451e90976be19fce5a95a6d1f3 (patch)
tree98977c5df89e5e84bf41e16a4571189f03b5d147 /distrib/landisk
parent065f6172ffd3d6ae5ed5b2e1d4d1ca9aa060d766 (diff)
attempt to make disk bootable
Diffstat (limited to 'distrib/landisk')
-rw-r--r--distrib/landisk/ramdisk/install.md16
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