!DBFhtjpqmJNENpLDOv:nixos.org

NixOS systemd

579 Members
NixOS ❤️ systemd159 Servers

Load older messages


SenderMessageTime
11 Mar 2025
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgyea I didn't think so... I wondered about file size too but the kernel and initrd are both only barely larger in unstable05:41:36
@elvishjerricco:matrix.org@elvishjerricco:matrix.org I mean certainly there's something different about these that causes the issue, as they are indeed the parameters that triggers the broken boot loader behavior 05:42:13
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgjust can't think of anything05:42:21
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgI don't know enough about how PEs work but it might be something as stupid as the virtual addresses used by the kernel sections? (Is that the right terminology for a kernel PE?)05:43:45
@raitobezarius:matrix.orgraitobezarius
In reply to @elvishjerricco:matrix.org
I don't know enough about how PEs work but it might be something as stupid as the virtual addresses used by the kernel sections? (Is that the right terminology for a kernel PE?)
bingrep might help
11:39:13
@arianvp:matrix.orgArianDidn't systemd-boot have some weird changes in stub15:15:20
@arianvp:matrix.orgArianNot that this should affect a normal nixos install though..15:16:45
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgjesus the guy has a 350M initrd17:59:00
@elvishjerricco:matrix.org@elvishjerricco:matrix.orghttps://discourse.nixos.org/t/systemd-boot-failing-to-boot-a-nixos-warbler-system-due-to-an-efi-assertion-failure/61450/13?u=elvishjerricco17:59:01
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgok that's a bug of its own17:59:10
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgwe shouldn't make initrds that big unless user knows what and why17:59:26
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgbut also systemd-boot shouldn't die because of it17:59:55
@aloisw:julia0815.dealoiswWell 350M not fitting into memory after decompression sounds plausible.18:00:44
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgplausible for the 4G boundary, yes18:01:06
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgI wouldn't say likely18:01:11
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgit's like right on the edge18:01:14
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgwhen do you get a more than 10x compression ratio?18:01:50
@aloisw:julia0815.dealoisw It has to be contiguous memory below 4G. 18:01:59
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgoh so it might be putting the uncompressed initrd near-to-but-not-right-at the boundary?18:02:30
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgclose enough that it pretty much always fits, unless you have a massive initrd?18:02:47
@aloisw:julia0815.dealoisw
In reply to @elvishjerricco:matrix.org
when do you get a more than 10x compression ratio?
I have no idea what got put in their initrd, it's so out of the normal that it's plausible that it either compresses very well or not at all. (Really it should be figured out what got into there and the bug fixed.)
18:03:36
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgwell yea, like I said, there's two bugs here. An initrd like that should obviously not happen, but also systemd-boot shouldn't die over it18:04:26
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgoh I have a suspicion18:04:35
@elvishjerricco:matrix.org@elvishjerricco:matrix.org they used scripted initrd and added a *Commands fragment that pulled in some super massive package because scripted initrd pulls in whole closures 18:05:10
@elvishjerricco:matrix.org@elvishjerricco:matrix.org"super massive" that's not even that massive18:05:35
@aloisw:julia0815.dealoisw
In reply to @elvishjerricco:matrix.org
close enough that it pretty much always fits, unless you have a massive initrd?
I have no idea where it puts the stuff (probably it just uses the UEFI allocator), but most machines don't have contiguous physical memory and who knows where the compressed initrd fragmented it more.
18:05:44
@aloisw:julia0815.dealoisw
In reply to @elvishjerricco:matrix.org
they used scripted initrd and added a *Commands fragment that pulled in some super massive package because scripted initrd pulls in whole closures
Why did it only blow up on 25.05 then?
18:06:07
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgit's weird18:06:07
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgsystemd-boot or systemd-stub will pass the initrd via a custom uefi protocl18:06:22
@elvishjerricco:matrix.org@elvishjerricco:matrix.org... yea good point nevermind18:06:37

Show newer messages


Back to Room ListRoom Version: 6