#
#asahi · 2022-11-01 15:13
nvflashI can't seem to tell if IOMMU is enabled, I do get IOMMU grooups, but I can't bind vfio-pci to any devices, I just get an error type -22.
#asahi · 2022-11-01 15:11
nvflashAnyone testing PCI Passthough?
#asahi · 2022-11-01 14:32
marcanwhich apparently systemd doesn't provide? so you still need base
#asahi · 2022-11-01 14:32
marcanbut also, these scripts expect a shell and stuff
#asahi · 2022-11-01 14:31
marcanthe pre hook probably needs to run before systemd-udevd.service
#asahi · 2022-11-01 14:30
marcanand /new_root is called /sysroot in the systemd world
#asahi · 2022-11-01 14:29
marcansounds like the posthook stuff needs to run after initrd-fs.target is reached
#asahi · 2022-11-01 14:26
WhyNotHugoYeah, I fear that's the hard part.
#asahi · 2022-11-01 14:26
marcanyes, and be ordered correctly (which is subtle)
#asahi · 2022-11-01 14:25
WhyNotHugoOh, the unit files needs to just mount the tmpfs and untar the stuff, right?
#asahi · 2022-11-01 14:25
marcanit literally replaces /init with systemd
#asahi · 2022-11-01 14:25
marcanand makes it useless
#asahi · 2022-11-01 14:25
marcanyes, but systemd overrides it
#asahi · 2022-11-01 14:25
WhyNotHugoHang on, systemd replace udev+usr+resume. "base" is still there.
#asahi · 2022-11-01 14:24
marcanbut right now that doesn't exist, so unless you want to write it... :)
#asahi · 2022-11-01 14:24
marcansure, and we can provide a unit file to make it work with it
#asahi · 2022-11-01 14:23
WhyNotHugoBecause it duplicates everything the systemd hook provides.
#asahi · 2022-11-01 14:22
WhyNotHugoThere's been discussion of deprecating the base hook IIRC
#asahi · 2022-11-01 14:20
marcanWhyNotHugo: systemd in the initrd is unsupported, sorry, you're well on your own here
#asahi · 2022-11-01 14:20
marcanit's right there in the docs
#asahi · 2022-11-01 14:20
marcan"Other hooks with runtime components will need to be ported, and will not work as intended"
#asahi · 2022-11-01 14:20
marcanyou are throwing away our hook (and the debug stuff, and everything)
#asahi · 2022-11-01 14:19
marcanyeah that's not going to work
#asahi · 2022-11-01 14:19
marcanthe systemd stuff *replaces* base?!
#asahi · 2022-11-01 14:19
marcanoh *facepalm*
#asahi · 2022-11-01 14:18
marcanthe hooks
#asahi · 2022-11-01 14:18
marcanWhyNotHugo: what is your mkinitcpio config?
#asahi · 2022-11-01 14:16
WhyNotHugoNo entries
#asahi · 2022-11-01 14:16
marcanis supposed to show you the initramfs stuff
#asahi · 2022-11-01 14:16
marcanjournalctl -b 0 -t initramfs
#asahi · 2022-11-01 14:12
WhyNotHugoOk
#asahi · 2022-11-01 14:12
WhyNotHugohttps://paste.sr.ht/~whynothugo/f2d13ac900b08b1ab168d16ca98f69b789b8f7c1
#asahi · 2022-11-01 14:12
j`eyif it's the buggy firmware warning, you can ignore it
#asahi · 2022-11-01 14:12
WhyNotHugoOh, it's not trimmed, there's an eror there. I think it's unrelated tho
#asahi · 2022-11-01 14:12
WhyNotHugodmesg says "[ 0.001098] ------------[ cut here ]------------"
#asahi · 2022-11-01 14:11
marcanthat worries me more
#asahi · 2022-11-01 14:11
marcanbut again, why are you not getting debug logs?
#asahi · 2022-11-01 14:11
marcanit should
#asahi · 2022-11-01 14:10
WhyNotHugoThe run_latehook runs _after_ systemd, right? Because systemd does the mounting of the rootfs.
#asahi · 2022-11-01 14:07
marcaneither it's using another initramfs, or you are not using the base mkinitcpio scripts at all, or something
#asahi · 2022-11-01 14:06
marcanthere is something weird about your setup you are missing
#asahi · 2022-11-01 14:06
marcanand since the asahi hook should run before any systemd stuff, it not showing up doesn't make any sense to me
#asahi · 2022-11-01 14:04
marcanWhyNotHugo: I just tried systemd-boot (the EFI stub side) and the rd.log stuff works fine
#asahi · 2022-11-01 14:04
WhyNotHugoBasically, the partition type has the right UUID, so it's mounted as the rootfs
#asahi · 2022-11-01 13:51
WhyNotHugosystemd-boot finds the root partition based on its type UUID. https://systemd.io/DISCOVERABLE_PARTITIONS/
#asahi · 2022-11-01 13:48
marcanor you're using a different initramfs from what you think
#asahi · 2022-11-01 13:48
marcanand it sounds like it's ignoring your kernel command line options
#asahi · 2022-11-01 13:48
marcanstart there, because something is weird about this setup
#asahi · 2022-11-01 13:48
marcanhow does it find the rootfs?
#asahi · 2022-11-01 13:48
marcanhow does your encrypted root work then?

plus ›