Summary: | no motd displayed after reboot when update_motd="NO" | ||
---|---|---|---|
Product: | Base System | Reporter: | guyyur |
Component: | bin | Assignee: | freebsd-bugs (Nobody) <bugs> |
Status: | New --- | ||
Severity: | Affects Some People | CC: | emaste, grahamperrin, imp, nomoo, yvesguerin |
Priority: | --- | Keywords: | patch |
Version: | CURRENT | ||
Hardware: | Any | ||
OS: | Any | ||
URL: | https://reviews.freebsd.org/D26654 |
Description
guyyur
2020-10-03 19:32:01 UTC
The problem also affects update_motd="NO" when not using tmpfs for /var/run. cleanvar_enable="YES" by default and cleanvar scripts removes files under /var/run so if motd is created there manually it will be deleted after reboot. login(1) must honor the variable from /etc/login.conf: welcome=FOLDER_TO/motd /etc/rc.d/motd needs to update motd with kernel info if update_motd="YES" so /etc/rc.d/motd needs to read the /etc/login.conf and find the motd file and update it. If the filesystem where the motd file is read-only, display a message to inform the user/sysadmin. |