| 11 Nov 2024 |
colemickens | Though that does remind me, it maybe doesn't matter, but I am curious if you thought about using systemd-boot instead of grub on the EFI image.s | 17:32:19 |
commiterate | I believe some instance types only support the legacy-bios boot mode which means we can't use systemd-boot for those. | 17:36:47 |
Arian | It makes the build more complicated | 17:36:51 |
Arian | And for x86 we don't have UEFI-only images. Just hybrid ones. And systemd-boot doesn't support that | 17:37:08 |
Arian | Only grub | 17:37:10 |
colemickens | I see, that probably explains the slightly odd (unaligned?) partition layout I was seeing in a booted instance with legacy bios partition. | 17:37:38 |
Arian | The current images are bios-only | 17:38:07 |
Arian | I have a PR open for hybrid | 17:38:14 |
colemickens | I built one with your PR. | 17:38:16 |
colemickens | (and booted) | 17:38:21 |
Arian | Ah gotcha | 17:38:21 |
Arian | I think it should be pretty simple for people to build an image that's UEFi only and with systemd-boot | 17:39:13 |
Arian | It's just that quite a few instance types on AWS don't support UEFi at all | 17:39:23 |
Arian | E.g. the T2 family. So we can't really use it for the public images | 17:39:37 |
colemickens | I didn't realize it was a hybrid image. Hybrid+grub makes sense to me, given those instance types. | 17:39:43 |
Arian | As they won't boot on free tier instances. Which kinda sucks | 17:39:47 |
colemickens | Completely agree, yeah. | 17:39:58 |
Arian | UEFi only has benefit. Namely you can use TPM2 | 17:40:13 |
Arian | Which is not available for hybrid images | 17:40:19 |
Arian | I want to get to a point where we can drop BIOS :( | 17:41:29 |
Arian | * UEFi only has benefit. Namely you can use TPM2 and secure boot | 17:41:43 |
commiterate | Basically we need to wait for EC2 to phase out a bunch of legacy instance types. I have no idea what that timeline is. | 17:42:01 |
Arian | I'm happy to make the cut as soon as they stop defaulting T2 as the default instance type | 17:42:24 |
Arian | To be honest | 17:42:28 |
Ilan Joselevich (Kranzes) | I legit don't understand why the transition to UEFI is so slow | 17:42:45 |
Arian | I just want people to be able to use NixOS images with free tier | 17:42:49 |
Arian | Problem is Amazon has billions of dollars of hardware and they need to still extract money out of it :p | 17:43:06 |
commiterate | AWS isn't being slow here tbh. All of the new instance types over the past few years require UEFI. | 17:43:14 |
Arian | Before they decommission it | 17:43:15 |
commiterate | It's just that AWS keeps older instance generations around forever. | 17:43:27 |