Modern EFI systems tend to want larger EFI Sys partitions, they play
authorderaadt <deraadt@openbsd.org>
Sun, 7 Aug 2022 03:22:29 +0000 (03:22 +0000)
committerderaadt <deraadt@openbsd.org>
Sun, 7 Aug 2022 03:22:29 +0000 (03:22 +0000)
games in there, in particular during BIOS upgrade sequences.
ok krw kettenis dv

distrib/arm64/ramdisk/install.md

index 7e2fa08..cd16085 100644 (file)
@@ -1,4 +1,4 @@
-#      $OpenBSD: install.md,v 1.31 2022/03/31 16:16:09 deraadt Exp $
+#      $OpenBSD: install.md,v 1.32 2022/08/07 03:22:29 deraadt Exp $
 #
 #
 # Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -91,6 +91,10 @@ md_prep_fdisk() {
        local bootsectorsize="32768"
        local bootfstype="msdos"
 
+       case $(sysctl -n machdep.compatible) in
+       openbsd,acpi)           bootsectorsize=532480;;
+       esac
+
        while :; do
                _d=whole
                if disk_has $_disk gpt; then