summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Sperling <stsp@cvs.openbsd.org>2015-10-28 20:32:42 +0000
committerStefan Sperling <stsp@cvs.openbsd.org>2015-10-28 20:32:42 +0000
commit866e876d6eef97fd1e30452a04fdd2797a4f6cd3 (patch)
tree0b35e9e16f0713f94faa24b8931505ad2b48121b
parent5a6c14d11be426a0cad2661a588b090dcba08a33 (diff)
Backout the backout of installboot softraid non-gpt case fix.
krw and I crossed streams
-rw-r--r--usr.sbin/installboot/i386_softraid.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/usr.sbin/installboot/i386_softraid.c b/usr.sbin/installboot/i386_softraid.c
index 52db462ae9f..6010f5112dd 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.7 2015/10/28 19:38:08 krw Exp $ */
+/* $OpenBSD: i386_softraid.c,v 1.8 2015/10/28 20:32:41 stsp Exp $ */
/*
* Copyright (c) 2012 Joel Sing <jsing@openbsd.org>
*
@@ -87,6 +87,12 @@ sr_install_bootblk(int devfd, int vol, int disk)
if (dl.d_type == 0)
warnx("disklabel type unknown");
+ efipart = findgptefisys(diskfd, &dl);
+ if (efipart != -1) {
+ write_efisystem(&dl, (char)efipart);
+ return;
+ }
+
/* Determine poffset and set symbol value. */
pp = &dl.d_partitions[part - 'a'];
if (pp->p_offseth != 0)