initrd: implement panic-on-fail interpreterless

This commit is contained in:
Benedikt Ritter
2025-03-17 16:22:39 +01:00
parent 403ba1850d
commit deb045e057

View File

@@ -703,10 +703,11 @@ in
"|stage1panic"
];
};
script = ''
echo c > /proc/sysrq-trigger
'';
serviceConfig.Type = "oneshot";
serviceConfig = {
Type = "oneshot";
ExecStart = "${pkgs.coreutils}/bin/echo c";
StandardOutput = "file:/proc/sysrq-trigger";
};
};
};
};