Now that fdisk(8) retains the EFI System Partition on Apple systems, skip
authorkettenis <kettenis@openbsd.org>
Sun, 13 Mar 2022 14:33:46 +0000 (14:33 +0000)
committerkettenis <kettenis@openbsd.org>
Sun, 13 Mar 2022 14:33:46 +0000 (14:33 +0000)
formatting the partition such that its contents actually survive.

ok krw@

distrib/arm64/ramdisk/install.md

index 926eebe..3312759 100644 (file)
@@ -1,4 +1,4 @@
-#      $OpenBSD: install.md,v 1.27 2022/03/06 19:35:22 kettenis Exp $
+#      $OpenBSD: install.md,v 1.28 2022/03/13 14:33:46 kettenis Exp $
 #
 #
 # Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -111,14 +111,15 @@ md_prep_fdisk() {
                        elif disk_has $_disk gpt; then
                                if [[ $_disk == $ROOTDISK ]]; then
                                        fdisk -gy -b "${bootsectorsize}" ${_disk} >/dev/null
+                                       installboot -p $_disk
                                else
                                        fdisk -gy ${_disk} >/dev/null
                                fi
                        else
                                fdisk -iy -b "${bootsectorsize}@${bootsectorstart}:${bootparttype}" ${_disk} >/dev/null
+                               installboot -p $_disk
                        fi
                        echo "done."
-                       installboot -p $_disk
                        return ;;
                [eE]*)
                        if disk_has $_disk gpt; then