!PSmBFWNKoXmlQBzUQf:helsinki-systems.de

Stage 1 systemd

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

You have reached the beginning of time (for this room).


SenderMessageTime
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

Show newer messages


Back to Room ListRoom Version: 6