using 'flag <part #>' to make a partition the only bootable partition.
Just turn off the bootable bit in the other partitions.
ok dlg@
-/* $OpenBSD: cmd.c,v 1.177 2023/11/10 15:41:11 krw Exp $ */
+/* $OpenBSD: cmd.c,v 1.178 2023/11/10 16:20:52 krw Exp $ */
/*
* Copyright (c) 1997 Tobias Weingartner
if (i == pn)
gp[i].gp_attrs = GPTPARTATTR_BOOTABLE;
else
- gp[i].gp_attrs = 0;
+ gp[i].gp_attrs &= ~GPTPARTATTR_BOOTABLE;
}
} else {
for (i = 0; i < nitems(mbr->mbr_prt); i++) {