#
✕ nick:whynothugo
#asahi · 2022-11-10 16:50
WhyNotHugoChaosPrincess: I want a proper VM where I will be working and not a transient one. I can't be bothered with docker-on-mac.
#asahi · 2022-11-10 16:49
WhyNotHugokloenk: Will keep that in mind, thanks!
#asahi · 2022-11-10 16:13
WhyNotHugoAny suggestions on what's best to run a VM inside macOS (mostly for interactive usage). UTM?
#asahi · 2022-11-01 22:28
WhyNotHugomps: Feel free!
#asahi · 2022-11-01 21:58
WhyNotHugoReminds me of this tiny thing I made for some pre-T2 intel macbooks https://github.com/WhyNotHugo/kbdlight/blob/master/kbdlight.c
#asahi · 2022-11-01 21:57
WhyNotHugokeyboard backlight control.
#asahi · 2022-11-01 21:56
WhyNotHugomps: Oh, it's already exposed via sysfs? Nice!
#asahi · 2022-11-01 20:21
WhyNotHugoI tried it but that was a pain. And it's too different from posix shell for scripts too.
#asahi · 2022-11-01 20:20
WhyNotHugoYeah, fish is terrible because lots of common, portable one-liners don't work.
#asahi · 2022-11-01 20:19
WhyNotHugoWhat's makes tsch special?
#asahi · 2022-11-01 16:13
WhyNotHugomarcan: Are you familiar with `bootctl --print-esp-path`?
#asahi · 2022-11-01 14:26
WhyNotHugoYeah, I fear that's the hard part.
#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
WhyNotHugoHang on, systemd replace udev+usr+resume. "base" is still there.
#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:16
WhyNotHugoNo entries
#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
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:10
WhyNotHugoThe run_latehook runs _after_ systemd, right? Because systemd does the mounting of the rootfs.
#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:47
WhyNotHugocat /proc/cmdline is initrd=\initramfs-linux-asahi.img rw rd.log=kmsg printk.devkmsg=on
#asahi · 2022-11-01 13:47
WhyNotHugoJust "Trying to unpack rootfs image as initramfs..."
#asahi · 2022-11-01 13:41
WhyNotHugoStill nothing logged from the initramfs. Kernel command line: initrd=\initramfs-linux-asahi.img rw rd.log=kmsg printk.devkmsg=on
#asahi · 2022-11-01 13:24
WhyNotHugomarcan: I don't see that output tho. Nor anyting from the initramfs.
#asahi · 2022-11-01 13:17
WhyNotHugoNeither dmesg nor journalctl show any output that matches "Asahi". Pretty sure output from the hook should show up there.
#asahi · 2022-11-01 13:13
WhyNotHugoOh, it's the run_latehook that matters here.
#asahi · 2022-11-01 13:12
WhyNotHugoDoesn't this mean that the script exits if /boot/vendorfw exists? https://github.com/AsahiLinux/asahi-scripts/blob/c6dce3ddf4af34f72787e6e5a499b888ac9e80b8/initcpio/hooks/asahi#L5-L8
#asahi · 2022-11-01 13:07
WhyNotHugoThat was my next question :)
#asahi · 2022-11-01 13:06
WhyNotHugoThere's no /boot/vendorfw/.vendorfw.manifest tho.
#asahi · 2022-11-01 13:02
WhyNotHugoI'lll mount a tmpfs there
#asahi · 2022-11-01 13:01
WhyNotHugoOkay
#asahi · 2022-11-01 13:01
WhyNotHugoI meant as a workaround tho, to at least get network on the device while debugging it
#asahi · 2022-11-01 13:00
WhyNotHugoIf I copy /boot/vendorfw/* into /lib/firmware/vendor/, should it work all the same?
#asahi · 2022-11-01 12:59
WhyNotHugoI'm using an encrypted root, could that mess up the copying process somehow?
#asahi · 2022-11-01 12:58
WhyNotHugoJust that
#asahi · 2022-11-01 12:58
WhyNotHugoefivar on /sys/firmware/efi/... (doesn't seem relevnat)
#asahi · 2022-11-01 12:57
WhyNotHugo(and empty directory)
#asahi · 2022-11-01 12:57
WhyNotHugoYes, it is empty.
#asahi · 2022-11-01 12:57
WhyNotHugozcat prints -> cp -r /vendrfw/* /vendorfw/.vendorfw.manifest /new_root/lib/firmware/vendor
#asahi · 2022-11-01 12:56
WhyNotHugoIt's a 16mb cpio archive
#asahi · 2022-11-01 12:56
WhyNotHugoyes, /boot/vendorfw/firmware.cpio exists
#asahi · 2022-11-01 12:56
WhyNotHugoyes, /proc/device-tree/chosen/asahi,efi-system-partitio exists and shows a uuid (ff94...)
#asahi · 2022-11-01 12:53
WhyNotHugoThe new initramfs overwrites the previous one.
#asahi · 2022-11-01 12:51
WhyNotHugomkinitcpio -p linux-asahi
#asahi · 2022-11-01 12:51
WhyNotHugoNo, I'm using systemd-boot (aka: gummyboot).
#asahi · 2022-11-01 12:50
WhyNotHugoThe bootloader puts files inside /lib/firmware in the root partition?

plus ›