Skip to content

Commit

Permalink
fix /dev/console bind mount crash
Browse files Browse the repository at this point in the history
  • Loading branch information
ading2210 committed Aug 28, 2024
1 parent f03fcf8 commit aeecd35
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bootloader/bin/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,8 @@ boot_target() {
mount $target /newroot
#bind mount /dev/console to show systemd boot msgs
if [ -f "/bin/frecon-lite" ]; then
rm -f /dev/console
touch /dev/console #this has to be a regular file otherwise the system crashes afterwards
mount -o bind "$TTY1" /dev/console
fi
move_mounts /newroot
Expand Down

0 comments on commit aeecd35

Please sign in to comment.