!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
24 Apr 2023
@elvishjerricco:matrix.org@elvishjerricco:matrix.org aktaboot: How big, and how big was the traditional one? 21:14:05
@elvishjerricco:matrix.org@elvishjerricco:matrix.orginitrd size is something we would like to be careful about, but sometimes we make sacrifices21:14:23
@aktaboot:tchncs.de@aktaboot:tchncs.de25Mi21:14:58
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgIIRC networking does blow up the size quite a bit...21:15:22
@aktaboot:tchncs.de@aktaboot:tchncs.de* 25.4 MiB on new, 5.1 MiB on old21:15:29
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgnot sure with the regular initrd though21:15:35
@elvishjerricco:matrix.org@elvishjerricco:matrix.org5.1MiB O_o I've never seen it that small, scripted or systemd21:15:52
@aktaboot:tchncs.de@aktaboot:tchncs.deI'm not sure if that's just the one that wasn't written fully because there was no space21:16:56
@aktaboot:tchncs.de@aktaboot:tchncs.deand I can't really know because they all have the same date ?21:18:18
@aktaboot:tchncs.de@aktaboot:tchncs.dehmm, on another laptop the older ones are 40MiB21:21:10
@aktaboot:tchncs.de@aktaboot:tchncs.deor not these are not the initrds (?)21:22:08
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgIf you're using plymouth, that makes up the majority of the initrd's space regardless of systemd vs scripted21:23:38
@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

Show newer messages


Back to Room ListRoom Version: 6