Skip to content

Commit

Permalink
[arch] disable the kernel messages just before getty starts, fixes #112
Browse files Browse the repository at this point in the history
  • Loading branch information
rroohhh committed Jun 2, 2019
1 parent eab7e5f commit b9cbb06
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
4 changes: 4 additions & 0 deletions makefiles/in_chroot/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,10 @@ cp DISCLAIMER.txt $DISCLAIMER_FILE
cp software/configs/gen_etc_issue.service /etc/systemd/system/
systemctl enable gen_etc_issue.service

# install kernel messages disabling system service
cp software/configs/disable_kernel_messages.service /etc/systemd/system/
systemctl enable disable_kernel_messages.service

# generate the motd and indicate software version
echo -e "\033[38;5;15m$(tput bold)$(figlet "AXIOM ${DEVICE^}") $(tput sgr0)" > /etc/motd
echo "Software version $(git describe --always --abbrev=8 --dirty). Last updated on $(date +"%d.%m.%y %H:%M UTC")" >> /etc/motd
Expand Down
11 changes: 11 additions & 0 deletions software/configs/disable_kernel_messages.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[Unit]
Description=disable the logging of kernel messages to the serial console just before getty gets ready
Before=systemd-user-sessions.service

[Service]
Type=oneshot
ExecStart=dmesg -n 1
KillMode=process

[Install]
WantedBy=multi-user.target

0 comments on commit b9cbb06

Please sign in to comment.