Commit d3db35f6 authored by Luka Blaskovic's avatar Luka Blaskovic Committed by Alyssa Ross
Browse files

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

parent dd77cbd1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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