!PSmBFWNKoXmlQBzUQf:helsinki-systems.de

Stage 1 systemd

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

Load older messages


SenderMessageTime
26 Jan 2023
@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
@lily:lily.flowers@lily:lily.flowersSwap lv in luks19:35:14
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgswap file or device? And I'm assuming systemd initrd?19:35:14
@lily:lily.flowers@lily:lily.flowersDevice and yes19:35:25
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgah, LV, not file19:35:26
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgcool19:35:32
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgso then maybe a swap file thing...19:35:44
@lily:lily.flowers@lily:lily.flowersI'll also take a look at the issue later. I'm busy atm but I thought I would confirm that it does work for me19:38:22
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgthanks19:38:34
@elvishjerricco:matrix.org@elvishjerricco:matrix.org Hm, this is actually going to be kind of hard to write a nixos test for, because we probably can't realistically know the resume_offset= value at eval time 21:24:46
@lily:lily.flowers@lily:lily.flowers
In reply to @elvishjerricco:matrix.org
Hm, this is actually going to be kind of hard to write a nixos test for, because we probably can't realistically know the resume_offset= value at eval time
Could you make it so the initrd put the value in /sys/power/resume_offset before systemd does the resume handling? That way it's not on kernel cmdline and so not needed at eval time but you'd have to generate the initrd from within the VM then. Unless someone knows a clever trick to make it easier
22:19:36
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgIt'd have to be a little different than that22:20:47
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgbecause the file system containing the swap file isn't actually mounted22:20:59
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgso we can't ask btrfs where its offset is in initrd22:21:07
@elvishjerricco:matrix.org@elvishjerricco:matrix.org we'd have to save it somewhere that initrd can read it from 22:21:23
@lily:lily.flowers@lily:lily.flowersI did not mean auto-magicking the value from initrd. I mean in a VM figure out the offset and build a new initrd with the number baked in22:22:16
@lily:lily.flowers@lily:lily.flowers
In reply to @elvishjerricco:matrix.org
we'd have to save it somewhere that initrd can read it from
But doing this could work too
22:22:25

Show newer messages


Back to Room ListRoom Version: 6