#asahi · 2022-02-26 14:13
Glanzmannkettenis: Got your message, I'll find out and ask them to fix it, if the infrastructure is there.#asahi · 2022-02-26 14:12
GlanzmannNeither do I, but the debian guy told me it is fine to detect the model and than set some flags so that it does no longer happen.#asahi · 2022-02-26 14:10
Glanzmannkettenis: grub-install running in the kernel.#asahi · 2022-02-26 14:10
GlanzmannBut I already posted all my findings to the debian-boot mailing list and also asked for help and filed a bug (after they told me I should do so).#asahi · 2022-02-26 14:09
Glanzmannkettenis: I see. The issue is that it tries to set the nvram variables, fails and than bails out.#asahi · 2022-02-26 14:08
Glanzmannmarcan: The debian guy wanted to include the firmware into firmware-nonfree. I told him it is not allowed to redistribute it and never heard back.#asahi · 2022-02-26 14:07
Glanzmannmarcan: For Debian that is almost nothing. I already looked at the code. The only thing that needs to be changed is that two flags need to be passed by the installer to the grub-install (removable media path; don't try to set nvram) And than the Debian installer works out of the box expect the kernel.#asahi · 2022-02-26 14:05
GlanzmannMaybe some Debian guy takes over at some point once m1 Linux gets more traction.#asahi · 2022-02-26 14:05
Glanzmannmarcan: Fine with me.#asahi · 2022-02-26 14:05
GlanzmannFine with me, so one Debian guy approached me want to get the d-i in shape for m1. But before that can happen the kernel needs to be upstream.#asahi · 2022-02-26 14:02
Glanzmannmarcan: I understand your reasoning, so I already change the uuid of the efs. But I'm stuck on this metadata checksum thing. Lets see if I can come up with something.#asahi · 2022-02-26 14:01
Glanzmannmarcan: My plan is to get things in shape that you will include it. :-)#asahi · 2022-02-26 14:01
Glanzmannmarcan: Get well soon. I'm excited what you come up with.#asahi · 2022-02-26 14:00
GlanzmannI would like to keep metadata checksumming enabled, so I'll file a bug report against debians grub (one more patch can't hurt, can it?). And also use the Debian infrastructure to change the uuid in the initrd on first boot.#asahi · 2022-02-26 13:59
Glanzmannmarcan: Any new thoughts on how to chain u-boot to the esp?#asahi · 2022-02-26 13:55
Glanzmannmarcan: Tell me what will you do now? Will you patch grub or will you write a script that runs in the initrd?#asahi · 2022-02-26 13:55
Glanzmannhrhr.#asahi · 2022-02-26 13:53
Glanzmannmps: For the debian grub, not. The debian grub has a patch which picks up a grub.cfg from /EFI/debian/grub.cfg that searches for the boot or root partition by using the fs uuid and than loads the real grub.cfg#asahi · 2022-02-26 13:52
Glanzmannmarcan: Debian has 2.04-20.#asahi · 2022-02-26 13:52
Glanzmanngrub-2.06-3-g7fd5feff9#asahi · 2022-02-26 13:52
Glanzmann(air) [/tmp/grub] git describe 7fd5feff97c4b1f446f8fcf6d37aca0c64e7c763#asahi · 2022-02-26 13:51
Glanzmannmarcan: I got it from the grub git repository.#asahi · 2022-02-26 13:51
Glanzmannmarcan: Yes:#asahi · 2022-02-26 13:51
Glanzmannmps: Of course it was, its almost pefect, just one patch is missing. Filing a bug report right now.#asahi · 2022-02-26 13:51
Glanzmannmarcan: The patch is upstream, so if arch follows grub more upstream it might already be in and it could be working for you.#asahi · 2022-02-26 13:47
Glanzmannmarcan: Do you have by any chance the arch grub lying around, if so, could you please upload it so that I can try it?#asahi · 2022-02-26 13:46
Glanzmannmarcan: I thought about this, too. You could put a kernel and a initrd on the esp, boot it. And the initrd is doing the setup.#asahi · 2022-02-26 13:43
GlanzmannTry it. But there is a patch in upstream git: https://tg.st/u/0001-fs-ext2-Ignore-checksum-seed-incompat-feature.patch#asahi · 2022-02-26 13:40
Glanzmannmarcan: By any chance have you tried booting your arch image that you built yesterday using grub?#asahi · 2022-02-26 13:34
Glanzmannhttps://tg.st/u/IMG_20220226_143339756_HDR.jpg#asahi · 2022-02-26 13:33
GlanzmannThat is not funny. Debian grub apparently can't read ext4fs that have metadata_csum_seed. Back to square one.#asahi · 2022-02-26 13:18
GlanzmannBut I don't care because debian doesn't use them anywhere.#asahi · 2022-02-26 13:17
GlanzmannOkay, maybe I misunderstood, but I thought that this happened once for me, but maybe I'm just confusing things.#asahi · 2022-02-26 13:16
Glanzmannmarcan: Also they might change if any disk operations are done with diskutil due to reordering partitions.#asahi · 2022-02-26 13:15
GlanzmannBecause Debian does it by default.#asahi · 2022-02-26 13:15
Glanzmannkettenis: I use Debian grub, Debian grub can search for an ext4 by fs uuid. So I use that.#asahi · 2022-02-26 13:14
Glanzmannmarcan: I agree. I already adopted my code, currently testing it. And for me it is just a single extra line.#asahi · 2022-02-26 12:41
Glanzmannmarcan: Never mind, I'll also assign a new random uuid to the esp.#asahi · 2022-02-26 12:35
GlanzmannBut if it is not possible, than I will just assign a new uuid like you did.#asahi · 2022-02-26 12:34
Glanzmannmarcan: I see, is it possible to assign a random uuid from the asahi installer for the esp parition? Because I would like to use that for Debian, because I can identify the esp parttion by search for the uuid of the ext4 in grub.cfg.#asahi · 2022-02-26 11:31
GlanzmannVinDuv: Your script works for me as well, I'm now rebuilding the Debian artefacts and testing it.#asahi · 2022-02-26 11:29
Glanzmannmarcan[m]: I did not understand why you change the uuid of the esp partition? Should it not be already unique due to the creation under macos/1tr?#asahi · 2022-02-25 20:51
GlanzmannVinDuv: Still no luck: https://pbot.rmdir.de/bfkhcVH8PPiT7HnlY_RAqw#asahi · 2022-02-25 20:50
GlanzmannYep.#asahi · 2022-02-25 20:37
GlanzmannVinDuv: Which distro do you have?#asahi · 2022-02-25 20:36
GlanzmannVinDuv: Here it does not: https://pbot.rmdir.de/HHo4HXz9Hgm875o1XCuTcg on debian testing.#asahi · 2022-02-25 20:32
Glanzmannno luck.#asahi · 2022-02-25 20:25
Glanzmannmarcan: That explains it.#asahi · 2022-02-25 20:24
GlanzmannDid you disable metadata checksums?#asahi · 2022-02-25 20:24
Glanzmannyep.