From f4d605abf615f5874339c95f0309f824ad07577e Mon Sep 17 00:00:00 2001 From: Joel Sing Date: Tue, 26 Apr 2011 17:33:18 +0000 Subject: Make amd64/i386 boot(8) pass the DUID of the selected boot device to the kernel so that it can use it to identify the root disk. This will be needed in order to correctly boot from a softraid volume. ok deraadt@ marco@ krw@ --- sys/arch/i386/include/biosvar.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'sys/arch/i386/include') diff --git a/sys/arch/i386/include/biosvar.h b/sys/arch/i386/include/biosvar.h index 4e8be582aec..b70de861afc 100644 --- a/sys/arch/i386/include/biosvar.h +++ b/sys/arch/i386/include/biosvar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: biosvar.h,v 1.55 2011/03/23 16:54:35 pirofti Exp $ */ +/* $OpenBSD: biosvar.h,v 1.56 2011/04/26 17:33:17 jsing Exp $ */ /* * Copyright (c) 1997-1999 Michael Shalayeff @@ -210,6 +210,11 @@ typedef struct _bios_ddb { int db_console; } __packed bios_ddb_t; +#define BOOTARG_ROOTDUID 9 +typedef struct _bios_rootduid { + u_char duid[8]; +} __packed bios_rootduid_t; + #if defined(_KERNEL) || defined (_STANDALONE) #ifdef _LOCORE -- cgit v1.2.3