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

authored by Luka Blaskovic and committed by Alyssa Ross d3db35f6 dd77cbd1

+1 -1
+1 -1
nixos/modules/system/boot/stage-2-init.sh
··· 54 54 fi 55 55 56 56 57 - if [ "${IN_NIXOS_SYSTEMD_STAGE1:-}" = true ]; then 57 + if [ "${IN_NIXOS_SYSTEMD_STAGE1:-}" = true ] || [ ! -c /dev/kmsg ] ; then 58 58 echo "booting system configuration ${systemConfig}" 59 59 else 60 60 echo "booting system configuration $systemConfig" > /dev/kmsg