!PSmBFWNKoXmlQBzUQf:helsinki-systems.de

Stage 1 systemd

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

Load older messages


SenderMessageTime
24 Apr 2023
@elvishjerricco:matrix.org@elvishjerricco:matrix.org

If I build these initrds:

let
  pkgs = import ./. {};
  initrd = module: (pkgs.nixos {
    imports = [module];
    fileSystems."/".device = "dummy";
  }).config.system.build.initialRamdisk;
in {
  simple = initrd {};
  network = initrd {
    boot.initrd.network.enable = true;
    boot.initrd.network.ssh.enable = true;
  };
  systemd-simple = initrd {
    boot.initrd.systemd.enable = true;
  };
  systemd-network = initrd {
    boot.initrd.systemd.enable = true;
    boot.initrd.network.enable = true;
    boot.initrd.network.ssh.enable = true;
  };
}

I get these size:

  • simple: 12M
  • network: 13M
  • systemd-simple: 15M
  • systemd-network: 17M
21:25:00
@aktaboot:tchncs.de@aktaboot:tchncs.dewait I think the older ones are just not getting cleaned21:25:08
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgSo we're somewhere between 3M and 4M larger21:25:16
@aktaboot:tchncs.de@aktaboot:tchncs.deoh okay21:25:47
@elvishjerricco:matrix.org@elvishjerricco:matrix.orglemme try with plymouth...21:26:01
@aktaboot:tchncs.de@aktaboot:tchncs.deI dont have plymouth21:26:10
@aktaboot:tchncs.de@aktaboot:tchncs.deI just haver 15 initrd21:26:14
@aktaboot:tchncs.de@aktaboot:tchncs.de* I just have 15 initrds21:26:18
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgAnd how big is the typical one of them?21:26:43
@aktaboot:tchncs.de@aktaboot:tchncs.de25.4 MiB21:26:57
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgthat still seems weirdly large...21:27:30
@aktaboot:tchncs.de@aktaboot:tchncs.detrue, I have cryptsetup21:27:46
@aktaboot:tchncs.de@aktaboot:tchncs.dethat should make it bigger. The thing I'm worried about is that I do not have 15 generations, I have 521:28:51
@aktaboot:tchncs.de@aktaboot:tchncs.deI do have multiple specializations, but their initrds do not differ 🤔21:29:25
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgEven with both plymouth and luks in there, I only get 24M max...21:29:25
@aktaboot:tchncs.de@aktaboot:tchncs.deunless! kernel modules!21:29:34
@aktaboot:tchncs.de@aktaboot:tchncs.deit's the kernel modules for nvidia!21:29:44
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgoh21:29:56
@aktaboot:tchncs.de@aktaboot:tchncs.deI blame nvidia!21:29:57
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgyea a gpu driver would do it21:30:02
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgare gpu drivers included in initrd by default in nixos?21:30:18
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgMy AMD driver isn't I don't think21:30:26
@aktaboot:tchncs.de@aktaboot:tchncs.de
  availableKernelModules = ["xhci_pci" "ahci" "nvme" "usb_storage" "usbhid" "sd_mod" "rtsx_usb_sdmmc"];

ok not nvidia, it's this

21:31:41
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgyea my desktop has plymouth and networking enabled and it's only 27M, but I don't have amdgpu in there21:31:44
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgI wouldn't expect any of those modules to add all that much space21:31:58
@aktaboot:tchncs.de@aktaboot:tchncs.deprobably some old copy pasta from somewhere 🤔 I have no idea why I have these21:32:19
@aktaboot:tchncs.de@aktaboot:tchncs.deoh21:32:30
@elvishjerricco:matrix.org@elvishjerricco:matrix.org in fact the only one of those that isn't in my desktop's initrd is rtsx_usb_sdmmc 21:32:36
@aktaboot:tchncs.de@aktaboot:tchncs.de and dm-snapshot 21:32:54
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgI also don't have that one I don't think. But still that doesn't seem like a big space consumer21:33:25

Show newer messages


Back to Room ListRoom Version: 6