summaryrefslogtreecommitdiff
path: root/distrib
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2020-12-09 15:45:59 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2020-12-09 15:45:59 +0000
commit52d9eb7bf68520fa85dfccdd8a1fb12f396f5805 (patch)
tree4d13805665c7c2ca4e3dc38d8d60184c5715a42e /distrib
parent8eaf050b723afd66c70d73513e093751816e5336 (diff)
Gdium bootblocks are still dumb, and cannot load the kernel from ffs.
This chunk was incorrectly removed recently with installboot improvements.
Diffstat (limited to 'distrib')
-rw-r--r--distrib/loongson/ramdisk/install.md8
1 files changed, 7 insertions, 1 deletions
diff --git a/distrib/loongson/ramdisk/install.md b/distrib/loongson/ramdisk/install.md
index 48185267d35..cab42dcd50b 100644
--- a/distrib/loongson/ramdisk/install.md
+++ b/distrib/loongson/ramdisk/install.md
@@ -1,4 +1,4 @@
-# $OpenBSD: install.md,v 1.28 2020/06/27 15:35:27 deraadt Exp $
+# $OpenBSD: install.md,v 1.29 2020/12/09 15:45:58 deraadt Exp $
#
# Copyright (c) 1996 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -37,6 +37,12 @@ md_installboot() {
echo "You will not be able to boot OpenBSD from ${1}."
exit
fi
+ if [[ $(sysctl -n hw.product) = Gdium ]]; then
+ mount -t ext2fs /dev/${_disk}i /mnt2
+ mkdir -p /mnt2/boot
+ cp /mnt/bsd /mnt2/boot/bsd
+ umount /mnt2
+ fi
}
md_prep_fdisk() {