summaryrefslogtreecommitdiff
path: root/usr.sbin/installboot/i386_softraid.c
diff options
context:
space:
mode:
authorOtto Moerbeek <otto@cvs.openbsd.org>2020-02-28 12:26:31 +0000
committerOtto Moerbeek <otto@cvs.openbsd.org>2020-02-28 12:26:31 +0000
commit22b24c78fbf33541deced70a7116caa365481b35 (patch)
tree088c19d9fee10eb12a2ccaf7598154ffd5b105f1 /usr.sbin/installboot/i386_softraid.c
parenta5edc01af21c48fbfa9293f1aaff2f6ad1414eab (diff)
Adapt biosboot(8) so it can read boot(8) from an ffs2 filesystem.
To do this, installboot(8) patches an extra value into biosboot(8). Code originally from Pedro Martelletto with a twist from myself and kettenis@; ok jsing@ kettenis@
Diffstat (limited to 'usr.sbin/installboot/i386_softraid.c')
-rw-r--r--usr.sbin/installboot/i386_softraid.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/installboot/i386_softraid.c b/usr.sbin/installboot/i386_softraid.c
index 3e9e60433eb..b31134763a4 100644
--- a/usr.sbin/installboot/i386_softraid.c
+++ b/usr.sbin/installboot/i386_softraid.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: i386_softraid.c,v 1.12 2019/09/02 16:36:12 otto Exp $ */
+/* $OpenBSD: i386_softraid.c,v 1.13 2020/02/28 12:26:30 otto Exp $ */
/*
* Copyright (c) 2012 Joel Sing <jsing@openbsd.org>
* Copyright (c) 2010 Otto Moerbeek <otto@drijf.net>
@@ -190,6 +190,7 @@ sr_install_bootldr(int devfd, char *dev)
sym_set_value(pbr_symbols, "_inodeblk", inodeblk);
sym_set_value(pbr_symbols, "_inodedbl", inodedbl);
sym_set_value(pbr_symbols, "_nblocks", nblocks);
+ sym_set_value(pbr_symbols, "_blkincr", 0);
if (verbose)
fprintf(stderr, "%s is %d blocks x %d bytes\n",