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

This commit is contained in:
Luka Blaskovic 2023-09-10 15:36:49 +02:00 committed by Alyssa Ross
parent dd77cbd175
commit d3db35f684

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