We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2271c42 + deb045e commit 4edfeafCopy full SHA for 4edfeaf
nixos/modules/system/boot/systemd/initrd.nix
@@ -703,10 +703,11 @@ in
703
"|stage1panic"
704
];
705
};
706
- script = ''
707
- echo c > /proc/sysrq-trigger
708
- '';
709
- serviceConfig.Type = "oneshot";
+ serviceConfig = {
+ Type = "oneshot";
+ ExecStart = "${pkgs.coreutils}/bin/echo c";
+ StandardOutput = "file:/proc/sysrq-trigger";
710
+ };
711
712
713
0 commit comments