Commit graph

9 commits

Author SHA1 Message Date
Sizhe Zhao
fb24b403c1
nixosTests: fix eval 2025-05-28 15:08:32 +08:00
Sizhe Zhao
f34483be5e
nixosTests: handleTest -> runTest, batch 1
Reference: https://github.com/NixOS/nixpkgs/issues/386873
2025-05-26 20:40:17 +08:00
Will Fancher
c9ea864d6f nixos/shutdown: Create /run/initramfs with mode 0700 2025-04-13 12:02:16 -04:00
Will Fancher
afdd737c95 nixos/tests: Fix systemd-shutdown
Since 459ddaec26, stdout of PID 1
and children such as systemd generators and systemd-shutdown scripts
goes to `tty0` instead of `ttyS0`. This is because systemd's stdout is
`/dev/console`, which represents only one tty at a time, as explained
here: https://docs.kernel.org/admin-guide/serial-console.html

The reason PID 1's own output makes it to both consoles is because
it uses kmsg as its log target both before journald has started and
once the `systemd-shutdown` executable takes control. Unlike
`/dev/console`, kmsg output makes it to one console *of each type*,
i.e. one VT and one serial console.
2025-04-05 23:29:14 -04:00
Silvan Mosberger
4f0dadbf38 treewide: format all inactive Nix files
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.

Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.

A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.

This commit was automatically created and can be verified using

    nix-build a08b3a4d19.tar.gz \
      --argstr baseRev b32a094368
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:26:33 +01:00
Will Fancher
4ecd0c119a systemd shutdownRamfs: Fix infinite shutdown loop 2023-07-29 13:52:52 -04:00
Lily Foster
308657daec
nixos/tests/systemd-shutdown: ensure systemd-initrd variant actually enables it
It looks like the systemd-initrd variant of the systemd-shutdown test
(systemd-initrd-shutdown) did not actually enable the systemd-initrd and
so was just evaluating to the same store path before this change.
2023-02-23 19:42:45 -05:00
Will Fancher
69d8047516 nixos: Fix up systemd shutdown ramfs 2022-04-28 14:12:14 -04:00
Janne Heß
30a00c29c4
nixos/systemd: Properly shut down the system 2022-04-16 21:17:36 +01:00