!PSmBFWNKoXmlQBzUQf:helsinki-systems.de

Stage 1 systemd

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

Load older messages


SenderMessageTime
25 Jun 2023
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgwe could just tell users "hey fuck off and stop using a very dumb configuration" but something tells me that comes off a bit too rude :P Plus who knows if someone has a legit reason for that config.00:04:27
@arianvp:matrix.orgArianwhat constitutes a "small ESP"08:54:01
@arianvp:matrix.orgArianIt would be nice that if we detect an existing small ESP we suggest setting up an XBOOTLDR partition automatically08:54:24
@nikstur:matrix.org@nikstur:matrix.org
In reply to @arianvp:matrix.org
It would be nice that if we detect an existing small ESP we suggest setting up an XBOOTLDR partition automatically
What would be a good way to implement something like this? I guess the install-systemd-boot.py script could print a warning if the ESP is smaller than size X and link to the XBOOTLDR man page.
17:47:33
@nikstur:matrix.org@nikstur:matrix.orgWell and it would need actual support in NixOS for XBOOTLDR: https://github.com/NixOS/nixpkgs/pull/22669217:50:53
@colemickens:matrix.orgcolemickensI don't remember if I mentioned it there but you can cheat with bind mounts, which is what I do with lanzaboote.18:04:14
27 Jun 2023
@passion-fruit:matrix.org@passion-fruit:matrix.org joined the room.14:24:43
@passion-fruit:matrix.org@passion-fruit:matrix.orgHello! Is it possible to have usb devices appear in /dev during stage 1, if you for example use one as an encryption key? It might just be as simple as loading a kernel module but I'm really stuck here :-)14:26:23
@elvishjerricco:matrix.org@elvishjerricco:matrix.org Fruity Passions: yea you probably just need a module added to boot.initrd.availableKernelModules 14:29:45
@oddlama:matrix.orgoddlama
In reply to @passion-fruit:matrix.org
Hello! Is it possible to have usb devices appear in /dev during stage 1, if you for example use one as an encryption key? It might just be as simple as loading a kernel module but I'm really stuck here :-)
my guess is on usb_storage
14:45:44
@linus:schreibt.jetzt@linus:schreibt.jetztwhat kind of USB device?14:46:27
@linus:schreibt.jetzt@linus:schreibt.jetzt you'll need a USB controller driver, though it's likely that that's already covered by what nixos-generate-config produces (typically xhci_pci) 14:51:32
@linus:schreibt.jetzt@linus:schreibt.jetzt and depending on what kind of USB device you may also need a driver (like usb_storage if it's an older or less fancy USB storage device, or uas for newer ones) 14:52:11
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgIf you want a brute force solution, you could probably just import the all-hardware.nix module out of nixpkgs14:52:30
@linus:schreibt.jetzt@linus:schreibt.jetztbut if it's a yubikey or something there's no kernel-side driver for it14:52:50
@passion-fruit:matrix.org@passion-fruit:matrix.org
In reply to @linus:schreibt.jetzt
what kind of USB device?
Plain ol USB 2.0. It's model comes up as "FlashDisk" and it's very old (I think it's only a gig in size).
15:26:03
@passion-fruit:matrix.org@passion-fruit:matrix.org
In reply to @oddlama:matrix.org
my guess is on usb_storage
Already loaded by hardware-configuration but thanks for the guess :)
15:27:10
@passion-fruit:matrix.org@passion-fruit:matrix.org
In reply to @elvishjerricco:matrix.org
If you want a brute force solution, you could probably just import the all-hardware.nix module out of nixpkgs
I could try that? is it possible to, if it works, narrow it down afterwards?
15:28:11
@passion-fruit:matrix.org@passion-fruit:matrix.org
In reply to @linus:schreibt.jetzt
what kind of USB device?
* Plain ol USB 2.0. It's model comes up as "FlashDisk" and it's very old (I think it's only a gig in size). (note: i have other flash drives connected too and they aren't detected either (some significantly more modern))
15:29:50
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgYea I guess you could copy the code out of the module and then bisect it by commenting out one half at a time15:29:57
@oddlama:matrix.orgoddlama
In reply to @passion-fruit:matrix.org
I could try that? is it possible to, if it works, narrow it down afterwards?
Does the stick show up in stage2? If so, just check lsmod for relevant modules.
15:37:52
@oddlama:matrix.orgoddlama If the device doesn't show up at all, you might be missing xhci_hcd xhci_pci or something like that 15:38:51
@passion-fruit:matrix.org@passion-fruit:matrix.org
In reply to @oddlama:matrix.org
If the device doesn't show up at all, you might be missing xhci_hcd xhci_pci or something like that
hmm i'm missing xhci_hcd but not the pci variant. could that perhaps be it?
15:49:18
@oddlama:matrix.orgoddlamaDepends on which controller is in use for the usb port15:52:33
@oddlama:matrix.orgoddlamasometimes xhci_hcd is pulled in as a dependencies, so not sure if that one is the missing link15:53:26
@oddlama:matrix.orgoddlamaTry lsusb -t in stage 2 to see which driver is in use15:54:13
@passion-fruit:matrix.org@passion-fruit:matrix.org that did it! Thank you so much :) - i checked lsusb -t after booting with the live iso and the usb controllers were using hcd. added xhci_hcd and now it works without issue 16:24:57
29 Jun 2023
@lily:lily.flowers@lily:lily.flowers So why is boot.initrd.services.lvm.enable a hidden option if it is required to enable it for systemd-stage-1 whenever you have a LVM needed for root 20:10:35
@lily:lily.flowers@lily:lily.flowers(I, uh, spent longer than I wish I had the last few weeks banging my head against that)20:10:52
@lily:lily.flowers@lily:lily.flowers(until I found that option)20:11:05

Show newer messages


Back to Room ListRoom Version: 6