talos: Can't cold boot Talos on a T2 Intel Mac

Bug Report

Using a USB boot drive, and having disabled the system’s Apple-signed boot restrictions, I’m able to install Talos v1.3.7 on a T2 Intel Mac (iMac Pro (2017), in this specific case) just fine, and everything at runtime works as expected. kexec warm reboots also work fine. But as soon as I cold boot the machine, I get the firmware’s “missing boot folder” start-up screen. Holding the Option key during boot doesn’t show the EFI partition as a choice, either — the only option I get is to boot into Internet recovery mode.

rEFInd is a common solution to Linux booting issues on T2 Intel Macs, but even booting rEFInd from a USB drive or SD card doesn’t give an option to boot Talos. rEFInd doesn’t seem to recognize the EFI partition.

Booting into the Mac’s recovery mode and running refind-install also doesn’t work as expected. In this case, rEFInd’s installer recognizes the EFI partition and tries to mount it (via mount -t msdos), but this fails with a cryptic Invalid argument message.

Is there something unusual about Talos’s EFI partition?

One workaround is to boot from the USB drive that I used to install Talos, which seems to recognize the installed image and uses its config, but that isn’t a good long-term solution since it would require updating the drive every time I also want to update the installed version of Talos.

Note that there was a similar issue reported in the Sidero Labs Community Slack last month, this time for a 2018 Mac mini: https://taloscommunity.slack.com/archives/CMARMBC4E/p1678790269057759

Description

Logs

Environment

  • Talos version: v1.3.7
  • Kubernetes version: v1.26.3
  • Platform: iMac Pro (2017), using built-in (nvme) storage

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 20 (8 by maintainers)

Most upvoted comments

I confirm for mac mini 2018, cold boot works with FAT16 and 100MB size

diff --git a/pkg/makefs/vfat.go b/pkg/makefs/vfat.go
index 18be20c12..b4d584c26 100644
--- a/pkg/makefs/vfat.go
+++ b/pkg/makefs/vfat.go
@@ -15,7 +15,7 @@ func VFAT(partname string, setters ...Option) error {
        args := []string{}
 
        if opts.Label != "" {
-               args = append(args, "-F", "32", "-n", opts.Label)
+               args = append(args, "-F", "16", "-n", opts.Label)
        }
 
        if opts.Reproducible {

@buroa your repo was actually my starting point (so kudos for putting that great learning resource out there!) before I started looking into why Talos didn’t play nicely with the Mac Mini. I booted my custom installer (seems we all need one for now) off a stick with the mentioned changes and it installs nicely for me now at least.

Attaching the patch in case it can be of help to anyone else running custom installers.

gh-siderolabs-talos-7066.patch

I added that patch into my next installer container build (https://github.com/buroa/talos-boot-assets/commit/883555b727ba0c66bf9d7b25c3ed55caafaacc81), so we should be able to natively boot and install Talos now 😃