| 27 Nov 2022 |
@me:linj.tech | I want to run that before unlocking luks | 23:37:58 |
@me:linj.tech | yeah | 23:38:53 |
| 30 Nov 2022 |
| @chillermiller3:matrix.org left the room. | 05:29:40 |
| 1 Dec 2022 |
| @jkarlson:kapsi.fi changed their display name from Emil Karlson to Emil Thorsoe. | 08:20:44 |
| @jkarlson:kapsi.fi changed their display name from Emil Thorsoe to Emil Thorsøe. | 08:25:10 |
| @hexa:lossy.network changed their display name from hexa to hexa (22.11 now). | 13:08:44 |
| @hexa:lossy.network changed their display name from hexa (22.11 now) to hexa. | 14:38:33 |
| 5 Dec 2022 |
@janne.hess:helsinki-systems.de | ElvishJerricco: did we have stripping enabled by default on 22.05 already? | 18:29:44 |
@elvishjerricco:matrix.org | Janne Heß: I don't remember how that panned out off the top of my head. I think we enabled stripping by default for initrd but not for shutdown ramfs? | 18:31:13 |
@janne.hess:helsinki-systems.de | Yeah that wasn't too great for some reason | 18:31:28 |
@janne.hess:helsinki-systems.de | My Pi didn't boot because it couldn't load dm_mod because of: https://linux-tips.com/t/how-to-strip-linux-kernel-modules/472 | 18:31:40 |
@janne.hess:helsinki-systems.de | (only took me 2 days to debug this - the kernel even hinted what could be the issue) | 18:31:55 |
@elvishjerricco:matrix.org | Yea we didn't want binutils in the runtime closure of a system. It's not needed at runtime for initrd but it would be for shutdown ramfs | 18:32:38 |
@janne.hess:helsinki-systems.de | hmm looks like we have always stripped, there was only a PR that made that fact configurable by Linux Hackerman | 18:34:26 |
@janne.hess:helsinki-systems.de | this: https://github.com/NixOS/nixpkgs/commit/6fc909a1cc89b32c9bc27d69da6333b8a0d4b87e | 18:35:16 |
@elvishjerricco:matrix.org | In reply to @janne.hess:helsinki-systems.de this: https://github.com/NixOS/nixpkgs/commit/6fc909a1cc89b32c9bc27d69da6333b8a0d4b87e Right, and because the STRIP env variable isn't set when generating the shutdown ramfs, it doesn't depend on strip | 18:37:35 |
| 6 Dec 2022 |
@mlyx:matrix.org | ElvishJerricco: How to add postMountCommands in systemd initrd? It is very useful when kexec into a new kernel. https://github.com/nix-community/nixos-images/blob/36056317a6b32d4bf3377037c63bcac4d47bbc12/nix/kexec-installer/module.nix#L126 | 02:19:09 |
@mlyx:matrix.org | * ElvishJerricco: How to add postMountCommands in systemd initrd? It is very useful when kexec into a new kernel and initrd. https://github.com/nix-community/nixos-images/blob/36056317a6b32d4bf3377037c63bcac4d47bbc12/nix/kexec-installer/module.nix#L126 | 02:20:47 |
@elvishjerricco:matrix.org | mlyx: You would make a new initrd systemd service that has wantedBy = ["initrd.target"];. You also want the service to be ordered after file systems are mounted, but if you don't have DefaultDependencies=no, then it'll have After=local-fs.target by default anyway. But eventually we're going to change it so systemd-initrd uses initrd-fs.target like we're supposed to, which services don't get ordered after by default | 02:23:40 |
@elvishjerricco:matrix.org | The boot.initrd.systemd.services options are nearly identical to the systemd.services options | 02:24:22 |
@elvishjerricco:matrix.org | Aw man. Decided to try out the networking PR on my desktop, but it doesn't work | 05:54:17 |
@elvishjerricco:matrix.org | Looks like interfaces aren't being renamed to the "predictable" names. | 05:54:28 |
@elvishjerricco:matrix.org | * Looks like interfaces aren't being renamed to the "predictable" names until stage 2 | 05:54:34 |
@elvishjerricco:matrix.org | What causes that in stage 2? | 05:54:39 |
@elvishjerricco:matrix.org | Ok, the mere presence of ${systemd}/lib/systemd/network/99-default.link, regardless of whether it's linked anywhere in /etc, makes predictable names work | 06:40:42 |
@elvishjerricco:matrix.org | Now I have two other problems.
-
For some reason the DHCP server built into networkd that I use on my pi router requires my networkd clients to have dhcpV4Config.ClientIdentifier = "mac"; if I want static IPs to work. So now I have to configure that in initrd.
-
For some reason systemd-timesync.service is failing in stage 2 now with Failed to allocate manager: Permission denied
| 06:44:28 |
@elvishjerricco:matrix.org | * Now I have two other problems.
- For some reason the DHCP server built into networkd that I use on my pi router requires my networkd clients to have
dhcpV4Config.ClientIdentifier = "mac"; if I want static IPs to work. So now I have to configure that in initrd.
- For some reason
systemd-timesyncd.service is failing in stage 2 now with Failed to allocate manager: Permission denied
| 06:45:29 |
@mlyx:matrix.org | Has anyone tested boot.initrd.systemd.enable = true in kexec initrd? Seems that it doesn't work. I don't know how to debug initrd. What's the reason? https://github.com/nix-community/nixos-images | 10:15:21 |
flokli | mlyx: it's still marked as experimental. You might want to open a specific issue with what's exactly broken for you. | 12:29:58 |
@phaer:matrix.org | In reply to @mlyx:matrix.org Has anyone tested boot.initrd.systemd.enable = true in kexec initrd? Seems that it doesn't work. I don't know how to debug initrd. What's the reason? https://github.com/nix-community/nixos-images Not exactly what you are asking for but https://github.com/dep-sys/nix-dabei uses boot.initrd.systemd.enable (and the networkd PR) and kexecs into an initrd (without stage-2) with enough tools, you might at least find some inspiration there? W.r.t. debugging: one could increase log verbosity (see kernelParams in the repo), run a shell on console (e.g. https://github.com/dep-sys/nix-dabei/blob/main/modules/auto-installer.nix#L61) or just start sshd if networkd is included in your initrd :) | 13:55:12 |