!PSmBFWNKoXmlQBzUQf:helsinki-systems.de

Stage 1 systemd

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

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


SenderMessageTime
25 Jan 2023
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgbut yea, maybe add the unit to the upstream units list and make it wanted by initrd.target or something?18:19:45
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgnot that it would necessarily matter; the udev stuff should probably do the trick18:20:06
@lily:lily.flowers@lily:lily.flowers
In reply to @elvishjerricco:matrix.org
but yea, maybe add the unit to the upstream units list and make it wanted by initrd.target or something?
I'll try that and see if it helps then. I'm not sure if it'll just continue racing like that or not (does modesetting reset vtcon settings or something?)
18:21:11
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgI know absolutely nothing about the vconsole stuff18:21:51
@lily:lily.flowers@lily:lily.flowersHey same18:22:34
@lily:lily.flowers@lily:lily.flowersWhich is why debugging this for me has mostly been trying random seemingly-related changed18:22:53
@lily:lily.flowers@lily:lily.flowers* Which is why debugging this for me has mostly been trying random seemingly-related changes18:23:00
26 Jan 2023
@viktor:kleen.org@viktor:kleen.org joined the room.17:06:51
@lily:lily.flowers@lily:lily.flowers
In reply to @elvishjerricco:matrix.org
but yea, maybe add the unit to the upstream units list and make it wanted by initrd.target or something?
So it does look like dracut actually manually adds Wants for the service to stuff: https://github.com/dracutdevs/dracut/blob/3c16c76fb51683cd70c3643b122685b7cdb4178c/modules.d/00systemd/module-setup.sh#L249-L256
23:29:27
@lily:lily.flowers@lily:lily.flowersMaybe we need to do that too?23:29:37
@lily:lily.flowers@lily:lily.flowers(I have made the change you suggested locally and I've just been waiting to see in the next week if it happens again during boot or if your suggestion fixed it)23:30:43
@lily:lily.flowers@lily:lily.flowersIt actually looks like mkinitcpio doesn't even install that .service anymore (and they used to have a module load hack to fix the problem I'm having): https://github.com/archlinux/mkinitcpio/commit/8d1d5cce87cec6038dfc42c93e1c65b486bff16f23:43:52
27 Jan 2023
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgHm yea according to https://github.com/systemd/systemd/issues/4699, it sounds like the udev rule is all that's expected to be needed00:10:37
@lily:lily.flowers@lily:lily.flowers
In reply to @elvishjerricco:matrix.org
Hm yea according to https://github.com/systemd/systemd/issues/4699, it sounds like the udev rule is all that's expected to be needed
We don't even seem to be doing anything different from mkinitcpio for vconsole stuff that I saw, and I've not seen anyone else say they've had an issue like this for NixOS. So I'm worried I may be the only one with this issue (and it's not show-stopping, it's just mildly annoying when my vconsole settings get reverted before I type my luks password)
00:14:03
@lily:lily.flowers@lily:lily.flowers(granted not many people on NixOS are using stage 1 systemd)00:14:19
@lily:lily.flowers@lily:lily.flowers

So it seems the issue happens when fb0 switches from efifb to i915drmfb, which resets the fbcon on vtcon0 (presumably indicated by the log item kernel: Console: switching to colour frame buffer device 282x94). So depending on what events trigger the "change" event for vtconsoles, setting that udev rule could cause later setfonts to be overriden by the default vconsole settings

I'm trying a few kernel params to attempt to prevent the switches during initrd for further testing in confirming the cause

14:58:52
@lily:lily.flowers@lily:lily.flowers *

So it seems the issue happens when fb0 switches from efifb to i915drmfb, which resets the fbcon on vtcon0 (presumably indicated by the log item kernel: Console: switching to colour frame buffer device 282x94). So depending on what events trigger the "change" event for vtconsoles, setting that udev rule with ACTION="add|change" could cause later setfonts to be overriden by the default vconsole settings

I'm trying a few kernel params to attempt to prevent the switches during initrd for further testing in confirming the cause

14:59:14
@lily:lily.flowers@lily:lily.flowers Yeah setting i915.fastboot=1 makes the problem go away and also reduces flickering during boot anyways so I'll probably keep that set 15:08:01
28 Jan 2023
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgAnyone here using hibernation over LUKS with systemd initrd?19:32:48
@elvishjerricco:matrix.org@elvishjerricco:matrix.orghttps://github.com/NixOS/nixpkgs/issues/21312219:32:53
@elvishjerricco:matrix.org@elvishjerricco:matrix.org I doubt this has anything to do with btrfs, but I wanted to know if anyone's had anything similar successfully working. I don't think it would be the use of swapfile instead of device either 19:33:38
@elvishjerricco:matrix.org@elvishjerricco:matrix.org * I doubt this has anything to do with btrfs, and I wanted to know if anyone's had anything similar successfully working. I don't think it would be the use of swapfile instead of device either 19:34:01
@lily:lily.flowers@lily:lily.flowersI've tested it and it does work on my system. But I don't really use it more than those few times because I was curious if it worked19:34:44
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgWas that over LUKS?19:34:52
@lily:lily.flowers@lily:lily.flowersYes19:34:59

Show newer messages


Back to Room ListRoom Version: 6