| 16 Feb 2023 |
@jkarlson:kapsi.fi | * I guess filesystems could be written in a way that adds a nfs wrapper or libc | 07:26:45 |
| Yinfeng changed their profile picture. | 09:57:16 |
| 18 Feb 2023 |
@lily:lily.flowers | Is systemd-initrd not working with installer ISOs a known problem? It seems that they set root= on the kernel cmdline to the device label which contains the squashfs, but that doesn't play well with the tmpfs / filesystem defined in the fstab (and the fstab entry ends up getting ignored in favor of the cmdline root=, which is obviously wrong in this case) | 03:02:21 |
@lily:lily.flowers | (to be clear, the NixOS installer tests pass fine in the test framework, but those don't have to do the ISO trickery) | 03:02:53 |
@elvishjerricco:matrix.org | Yea that's known but not well explored. | 03:02:59 |
@elvishjerricco:matrix.org | We've known the isos don't work all along but I don't think anyone's really investigated it | 03:03:17 |
@lily:lily.flowers | Hmm, I may look for a solution at some point then | 03:03:36 |
@elvishjerricco:matrix.org | That would be wonderful | 03:03:45 |
@lily:lily.flowers | I'm not sure if that'll be changing the cmdline or if it'll be doing some hackery with systemd (but I imagine it'll be the first one -- we really shouldn't be setting root= with that for systemd-initrd) | 03:04:12 |
@lily:lily.flowers | Is there an open issue in nixpkgs for it already? | 03:04:18 |
@elvishjerricco:matrix.org | I don't think so? Check the systemd stage 1 GitHub project in the repo | 03:04:48 |
@elvishjerricco:matrix.org | There'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 | I 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 method | 03:07:30 |
@elvishjerricco:matrix.org | Ah that's a fair point | 03:07:59 |
@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 | 03:08:33 |
@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 | 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 | Yea check fstab-generator for that | 03:10:50 |
@lily:lily.flowers | Either way, just thought I'd ask here if it was a known issue. I'm about to log off for the night | 03:10:56 |
@elvishjerricco:matrix.org | * Yea check fstab-generator.c for that | 03:10:58 |
@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 | So we should do that | 03:11:32 |
@lily:lily.flowers | Good to know | 03:11:33 |
@lily:lily.flowers | I'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 | Yea. 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 | So I'll be interested if you find anything | 03:13:17 |
@lily:lily.flowers | Okay, 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 | (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 | 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 | 03:17:17 |
@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 |