| 23 Feb 2023 |
@janne.hess:helsinki-systems.de | In reply to @k900:0upti.me I'm just annoyed AMDGPU has what seems to be a forced modeset on boot Have you tried amdgpu.dc=0? | 13:42:51 |
K900 | Pretty sure that doesn't work | 13:43:30 |
K900 | My GPU is too new to support the pre-DC code paths | 13:43:40 |
@kranzes:matrix.org | It doesn't work right now btw. so debugging is also needed | 13:50:54 |
@kranzes:matrix.org | this plymouth PR works if i manually run systemctl restart plymouth-start.service but doesn't work in the initrd. interesting. | 15:33:37 |
@kranzes:matrix.org | testing it with something like this:
{
inputs = {
nixpkgs.url = "github:Kranzes/nixpkgs/plymouth";
nixos-generators = { url = "github:nix-community/nixos-generators"; inputs.nixpkgs.follows = "nixpkgs"; };
};
outputs = { self, nixpkgs, nixos-generators }:
let
pkgs = nixpkgs.legacyPackages.x86_64-linux;
in
{
packages.x86_64-linux.default = nixos-generators.nixosGenerate {
inherit pkgs;
modules = [{
boot.initrd.systemd.enable = true;
boot.plymouth.enable = true;
boot.plymouth.theme = "breeze";
documentation.nixos.enable = false;
users.users.root.hashedPassword = "$y$j9T$92VDaYfgg6XS1G8/s4Yff1$ORqQG/Iy/hUUuRdee35PBNqHu3FsplYv9ui.hqTL/bC"; # 123
users.mutableUsers = false;
}];
format = "vm-bootloader";
};
};
}
| 15:34:23 |
@lily:lily.flowers | In reply to @kranzes:matrix.org this plymouth PR works if i manually run systemctl restart plymouth-start.service but doesn't work in the initrd. interesting. Is it just segfaulting shortly after starting in initrd for you? That's what I'm seeing in a VM with a bunch of debug logging turned on and your flake | 16:03:02 |
@kranzes:matrix.org | Idk, I don't know how to get debugging logs in the initrd. | 16:46:45 |
@lily:lily.flowers | Alright, this is gonna sound dumb, but why is there an empty directory in my initrd rootfs just called 0755 | 17:56:06 |
@elvishjerricco:matrix.org | wut | 17:56:33 |
@elvishjerricco:matrix.org | lol that sounds like a mistake | 17:56:43 |
@elvishjerricco:matrix.org | I don't even know how to begin debugging that | 17:57:09 |
@elvishjerricco:matrix.org | I guess you could grep nixpkgs for 0755 and look for files related to initrd | 17:57:57 |
@elvishjerricco:matrix.org | * I guess you could grep nixpkgs for 0755 and look for files related to initrd? | 17:57:58 |
@lily:lily.flowers | Found it. It's in the qemu thing | 17:58:17 |
@lily:lily.flowers | Hold on | 17:58:18 |
@lily:lily.flowers | Here: https://github.com/NixOS/nixpkgs/blob/7ce8e7c4cf90492a631e96bcfe70724104914381/nixos/modules/virtualisation/qemu-vm.nix#L895 | 17:59:06 |
@lily:lily.flowers | And also here: https://github.com/NixOS/nixpkgs/blob/7ce8e7c4cf90492a631e96bcfe70724104914381/nixos/modules/virtualisation/qemu-vm.nix#L1098 | 17:59:12 |
@lily:lily.flowers | No wonder I hadn't noticed it before until mucking in the initrd in a VM | 17:59:21 |
@lily:lily.flowers | They're missing a -m before the 0755 | 17:59:34 |
@elvishjerricco:matrix.org | Oof. I guess I did a blind copy-paste when I wrote that service :/ | 18:00:25 |
@lily:lily.flowers | No worries, I'll make a PR in a bit | 18:00:37 |
@elvishjerricco:matrix.org | my bad | 18:00:43 |
@lily:lily.flowers | Honestly maybe the -m 0755 can just be removed if it's clearly not needed.... | 18:00:51 |
@elvishjerricco:matrix.org | thanks | 18:00:51 |
@elvishjerricco:matrix.org | lol fair point | 18:01:02 |
@lily:lily.flowers | Question: Can we make this ln -sf so that I can override built in bins (I really want bashInteractive in my initrd so I have tab completion while mucking around debugging plymouth...): https://github.com/NixOS/nixpkgs/blob/ac573e5046f1e2ff60e4260771a88b9862fa7148/nixos/modules/system/boot/systemd/initrd.nix#L121 | 18:14:39 |
@lily:lily.flowers | * Question: Can we make this ln -sf so that I can override built-in bins (I really want bashInteractive in my initrd so I have tab completion while mucking around debugging plymouth...): https://github.com/NixOS/nixpkgs/blob/ac573e5046f1e2ff60e4260771a88b9862fa7148/nixos/modules/system/boot/systemd/initrd.nix#L121 | 18:14:47 |
@elvishjerricco:matrix.org | That sounds like a good idea | 18:15:26 |
@elvishjerricco:matrix.org | I would expect extraBin to override whatever is there normally | 18:15:38 |