stage-2: don't write to /dev/kmsg if missing

This commit is contained in:
Luka Blaskovic
2023-10-30 21:53:52 +01:00
committed by Alyssa Ross
parent dd77cbd175
commit d3db35f684
+1 -1
View File
@@ -54,7 +54,7 @@ if [ ! -e /proc/1 ]; then
fi
if [ "${IN_NIXOS_SYSTEMD_STAGE1:-}" = true ]; then
if [ "${IN_NIXOS_SYSTEMD_STAGE1:-}" = true ] || [ ! -c /dev/kmsg ] ; then
echo "booting system configuration ${systemConfig}"
else
echo "booting system configuration $systemConfig" > /dev/kmsg