!PSmBFWNKoXmlQBzUQf:helsinki-systems.de

Stage 1 systemd

76 Members
systemd in NixOs's stage 1, replacing the current bash tooling https://github.com/NixOS/nixpkgs/projects/5124 Servers

Load older messages


SenderMessageTime
18 Feb 2023
@lily:lily.flowers@lily:lily.flowersIs there an open issue in nixpkgs for it already?03:04:18
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgI don't think so? Check the systemd stage 1 GitHub project in the repo03:04:48
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgThere's probably a correct way to use the root= cmdline, but it probably involves making NixOS use that parameter correctly in the first place (which I have a patch for on a branch somewhere)03:05:49
@lily:lily.flowers@lily:lily.flowersI really don't think the installer should be setting it for where to find the squashfs, given it's not an actual root fs. But I'll have to look at how the old stage-1 is handling that before determining the best method03:07:30
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgAh that's a fair point03:07:59
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgMaybe check how fedora's ISO works? I believe fedora has used systemd in stage 1 for a few years now. No idea about their ISO though03:08:33
@lily:lily.flowers@lily:lily.flowers
In reply to @elvishjerricco:matrix.org
Maybe check how fedora's ISO works? I believe fedora has used systemd in stage 1 for a few years now. No idea about their ISO though
Actually it looks like other distros set root=live:CDLABEL=. So maybe that has special handling
03:10:33
@lily:lily.flowers@lily:lily.flowers
In reply to @elvishjerricco:matrix.org
Maybe check how fedora's ISO works? I believe fedora has used systemd in stage 1 for a few years now. No idea about their ISO though
* Actually it looks like other distros set root=live:CDLABEL=[label]. So maybe that has special handling
03:10:36
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgYea check fstab-generator for that03:10:50
@lily:lily.flowers@lily:lily.flowersEither way, just thought I'd ask here if it was a known issue. I'm about to log off for the night03:10:56
@elvishjerricco:matrix.org@elvishjerricco:matrix.org* Yea check fstab-generator.c for that03:10:58
@lily:lily.flowers@lily:lily.flowers
In reply to @elvishjerricco:matrix.org
Yea check fstab-generator.c for that

Yepp:

        if (startswith(arg_root_what, "live:")) {
                log_debug("Skipping root directory handling, as root on live image was requested.");
                return 0;
        }
03:11:22
@lily:lily.flowers@lily:lily.flowersSo we should do that03:11:32
@lily:lily.flowers@lily:lily.flowersGood to know03:11:33
@lily:lily.flowers@lily:lily.flowersI'll probably make a nixpkgs issue in the morning to track the fix for that (too tired tonight to bother)03:11:55
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgYea. I was planning on doing networkd and then a patch changing NixOS to use makefs and growfs instead of custom stuff, so I won't likely investigate this one soon.03:12:37
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgSo I'll be interested if you find anything03:13:17
@lily:lily.flowers@lily:lily.flowersOkay, sounds good! Let me know if there is other low-hanging fruit in terms of systemd-initrd (project board looks like most of the small stuff is mostly taken care of or will be fixed by your systemd PRs and stuff, but there is stuff about supporting other boot.initrd options I can probably work on at some point)03:16:11
@lily:lily.flowers@lily:lily.flowers(also apparently I was not alone in my vconsole issues I posted here about a few weeks ago and I just never happened to find https://github.com/NixOS/nixpkgs/issues/202846)03:16:49
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgI'm fairly sure the networking stuff is the last of the unimplemented things, except for the fancier LUKS things but those can be done differently with crypttab options03:17:17
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.de
In reply to @elvishjerricco:matrix.org
I'm fairly sure the networking stuff is the last of the unimplemented things, except for the fancier LUKS things but those can be done differently with crypttab options
Do we have iso boot yet?
10:30:29
@elvishjerricco:matrix.org@elvishjerricco:matrix.org Janne Heß: We were just talking about that, and no :P 10:31:06
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.deAh still reading backlog, you are ahead of me ;) 10:31:16
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgBut I meant the nixos options10:31:17
@elvishjerricco:matrix.org@elvishjerricco:matrix.org

From the systemd 253 release notes:

Initrd environments not on a temporary file-system are now supported.

I wonder what exactly that means. Maybe just old style initrd where it was literally a ram disk with a regular block device file system on it?

11:00:18
@gdamjan:spodeli.org@gdamjan:spodeli.orgI think that previously it checked that it's a tmpfs/ramfs20:12:19
@gdamjan:spodeli.org@gdamjan:spodeli.orgbut in some cases it can be an overlayfs20:12:29
@gdamjan:spodeli.org@gdamjan:spodeli.orgit = initrd or the pre-boot environment20:12:39
@gdamjan:spodeli.org@gdamjan:spodeli.orgmost probably a940f507fbe1c81d6787dc0b7ce232c39818eec920:14:01
19 Feb 2023
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgIs it acceptable for me to open issues on the nixpkgs repo that are basically just reminders of "Things ElvishJerricco eventually wants to get around to for systemd stage 1"?15:37:32

Show newer messages


Back to Room ListRoom Version: 6