!PSmBFWNKoXmlQBzUQf:helsinki-systems.de

Stage 1 systemd

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

Load older messages


SenderMessageTime
7 Dec 2022
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgright21:32:48
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgbecause it's not rolling back and vanishing the mountpoints21:32:58
@hexa:lossy.network@hexa:lossy.networki think so21:33:07
@elvishjerricco:matrix.org@elvishjerricco:matrix.org once booted you can jump into journalctl -b 0 to see logs from the boot, including initrd 21:34:05
@hexa:lossy.network@hexa:lossy.networkoh21:34:19
@hexa:lossy.network@hexa:lossy.networkneat21:34:43
@elvishjerricco:matrix.org@elvishjerricco:matrix.org hexa: Do you see anything in the journal about your rollback service? 21:38:02
@hexa:lossy.network@hexa:lossy.network1 min21:38:31
@hexa:lossy.network@hexa:lossy.network
Dec 07 21:38:52 localhost systemd[1]: impermanence-root.service: Main process exited, code=exited, status=1/FAILURE
Dec 07 21:38:52 localhost systemd[1]: impermanence-root.service: Failed with result 'exit-code'.
Dec 07 21:38:52 localhost systemd[1]: Failed to start impermanence-root.service.
21:40:29
@hexa:lossy.network@hexa:lossy.network *
Dec 07 21:38:52 localhost systemd[1]: Starting impermanence-root.service...
Dec 07 21:38:52 localhost systemd[1]: Starting Create List of Static Device Nodes...
Dec 07 21:38:52 localhost systemd[1]: Starting Journal Service...
Dec 07 21:38:52 localhost systemd[1]: Starting Load Kernel Modules...
Dec 07 21:38:52 localhost systemd[1]: Starting Coldplug All udev Devices...
Dec 07 21:38:52 localhost systemd[1]: impermanence-root.service: Main process exited, code=exited, status=1/FAILURE
Dec 07 21:38:52 localhost systemd[1]: impermanence-root.service: Failed with result 'exit-code'.
Dec 07 21:38:52 localhost systemd[1]: Failed to start impermanence-root.service.
21:40:46
@elvishjerricco:matrix.org@elvishjerricco:matrix.org hmph, nothing useful in the journal. But that's definitely starting way too early 21:41:15
@hexa:lossy.network@hexa:lossy.networkyep21:41:36
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgYou sure you put the right ordering constraint?21:41:41
@hexa:lossy.network@hexa:lossy.networkno21:42:14
@elvishjerricco:matrix.org@elvishjerricco:matrix.org Search the journal for zfs-import, just to make sure you've got the name zfs-import-zpool.service correct 21:42:43
@hexa:lossy.network@hexa:lossy.network
Dec 07 21:38:58 nixos systemd[1]: zfs-import-zroot.service: Deactivated successfully.
21:42:46
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgzroot, not zpool?21:43:03
@hexa:lossy.network@hexa:lossy.networkyes21:43:09
@hexa:lossy.network@hexa:lossy.networksometimes I also have zhome 🙂21:43:19
@elvishjerricco:matrix.org@elvishjerricco:matrix.org You said earlier you used zfs-import-zpool.service, so that should be zfs-import-zroot.service 21:43:34
@hexa:lossy.network@hexa:lossy.networkoh boy 21:43:46
@hexa:lossy.network@hexa:lossy.networkrebooting21:43:50
@hexa:lossy.network@hexa:lossy.networkworks! 😄21:45:13
@hexa:lossy.network@hexa:lossy.networkthank you!21:46:34
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgwhoo21:47:06
@hexa:lossy.network@hexa:lossy.network
  boot.initrd.systemd.services = {
    impermanence-root = {
      wantedBy = [
        "initrd.target"
      ]; 
      after = [
        "zfs-import-zroot.service"
      ];
      before = [ 
        "sysroot.mount"
      ];
      unitConfig.DefaultDependencies = "no";
      serviceConfig = {
        Type = "oneshot";
        ExecStart = "${pkgs.zfs}/bin/zfs rollback -r zroot/local/root@blank";
      };
    };
  };
21:47:35
@elvishjerricco:matrix.org@elvishjerricco:matrix.org hexa: looks good to me! 21:51:39
8 Dec 2022
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.de
In reply to @hexa:lossy.network
  boot.initrd.systemd.services = {
    impermanence-root = {
      wantedBy = [
        "initrd.target"
      ]; 
      after = [
        "zfs-import-zroot.service"
      ];
      before = [ 
        "sysroot.mount"
      ];
      unitConfig.DefaultDependencies = "no";
      serviceConfig = {
        Type = "oneshot";
        ExecStart = "${pkgs.zfs}/bin/zfs rollback -r zroot/local/root@blank";
      };
    };
  };
https://github.com/nix-community/impermanence/pulls ;)
08:14:40
@hexa:lossy.network@hexa:lossy.networkRelated, yes08:20:06
11 Dec 2022
@mlyx:matrix.org@mlyx:matrix.org https://github.com/NixOS/nixpkgs/blob/9f6f47f27cc0bff0aee003834e2c7d8a17c8d202/nixos/modules/system/boot/systemd/initrd.nix#L500
why use chroot not systemctl switch-root?
21:55:06

Show newer messages


Back to Room ListRoom Version: 6