stage-2: don't write to /dev/kmsg if missing
This commit is contained in:
committed by
Alyssa Ross
parent
dd77cbd175
commit
d3db35f684
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user