summaryrefslogtreecommitdiffstats
path: root/usr.sbin/installboot/installboot.h
diff options
context:
space:
mode:
authorjsing <jsing@openbsd.org>2013-12-27 13:52:40 +0000
committerjsing <jsing@openbsd.org>2013-12-27 13:52:40 +0000
commita7036d21ba699d3f318ea3f02aed242626e67966 (patch)
treee2f3eb1751f851dcd12ffdfdabdb49bae3897a4a /usr.sbin/installboot/installboot.h
parentwhen forcing a re-key, might as well toss in dmesg as additional seed (diff)
downloadwireguard-openbsd-a7036d21ba699d3f318ea3f02aed242626e67966.tar.xz
wireguard-openbsd-a7036d21ba699d3f318ea3f02aed242626e67966.zip
Initial version of a unified installboot(8) that lives outside of
sys/arch/${MACHINE}/stand. For now this only supports i386, however additional architectures will be added and further development can happen in tree. Requested by deraadt@ quite some time ago.
Diffstat (limited to 'usr.sbin/installboot/installboot.h')
-rw-r--r--usr.sbin/installboot/installboot.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/usr.sbin/installboot/installboot.h b/usr.sbin/installboot/installboot.h
new file mode 100644
index 00000000000..ec0f56d3555
--- /dev/null
+++ b/usr.sbin/installboot/installboot.h
@@ -0,0 +1,33 @@
+/* $OpenBSD: installboot.h,v 1.1 2013/12/27 13:52:40 jsing Exp $ */
+/*
+ * Copyright (c) 2012, 2013 Joel Sing <jsing@openbsd.org>
+ *
+ * Permission to use, copy, modify, and distribute this software for any
+ * purpose with or without fee is hereby granted, provided that the above
+ * copyright notice and this permission notice appear in all copies.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+ * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+extern int nowrite;
+extern int stages;
+extern int verbose;
+
+extern char *stage1;
+extern char *stage2;
+
+void md_init(void);
+void md_loadboot(void);
+void md_installboot(int, char *);
+
+#ifdef SOFTRAID
+void sr_installboot(int, char *);
+void sr_install_bootblk(int, int, int);
+void sr_install_bootldr(int, char *);
+#endif