Skip to content

Commit

Permalink
fix for showing systemd boot messages in frecon
Browse files Browse the repository at this point in the history
  • Loading branch information
ading2210 committed Aug 28, 2024
1 parent 991bea2 commit a9599e8
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
4 changes: 4 additions & 0 deletions bootloader/bin/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,10 @@ boot_target() {
echo "moving mounts to newroot"
mkdir /newroot
mount $target /newroot
#bind mount /dev/console to show systemd boot msgs
if [ -f "/bin/frecon-lite" ]; then
mount -o bind "$TTY1" /dev/console
fi
move_mounts /newroot

echo "switching root"
Expand Down
2 changes: 1 addition & 1 deletion rootfs/etc/systemd/system/kill-frecon.service
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Description=kill frecon to allow xorg to start

[Service]
Type=oneshot
ExecStart=/usr/bin/pkill frecon-lite
ExecStart=/usr/local/bin/kill_frecon
RemainAfterExit=true

[Install]
Expand Down
6 changes: 6 additions & 0 deletions rootfs/usr/local/bin/kill_frecon
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

#this script handles unmounting the console and killing frecon so that xorg can start

umount -l /dev/console
pkill frecon-lite

0 comments on commit a9599e8

Please sign in to comment.