Enable syslog on boot

This enables the busybox syslog implementation, which logs to
/var/log/messages, on boot. This is very helpful for debugging
applications which write to syslog (e.g. NetworkManager)

syslog is being set up to log to shared memory (not to disk), so log is
lost 1) on reboot and 2) if the service is restarted. It can be read
with `logread`
This commit is contained in:
Clayton Craft 2017-07-24 22:02:51 -07:00
parent bed8ab6427
commit e32323fb86
2 changed files with 5 additions and 2 deletions

View File

@ -1,6 +1,6 @@
pkgname=postmarketos-base pkgname=postmarketos-base
pkgver=2 pkgver=2
pkgrel=1 pkgrel=2
pkgdesc="Meta package for minimal postmarketos base" pkgdesc="Meta package for minimal postmarketos base"
url="https://github.com/postmarketOS" url="https://github.com/postmarketOS"
arch="noarch" arch="noarch"

View File

@ -6,7 +6,7 @@
for service in devfs dmesg; do for service in devfs dmesg; do
rc-update -q add $service sysinit rc-update -q add $service sysinit
done done
for service in hwclock modules sysctl hostname bootmisc wpa_supplicant wifi-handler; do for service in hwclock modules sysctl hostname bootmisc wpa_supplicant wifi-handler syslog; do
rc-update -q add $service boot rc-update -q add $service boot
done done
for service in haveged sshd udev; do for service in haveged sshd udev; do
@ -48,3 +48,6 @@ if ! apk audit /etc | grep -q etc/motd; then
echo '' echo ''
} >/etc/motd } >/etc/motd
fi fi
# Enable syslog to SHM. Note: size is 4048KiB, which *should* be More Than Enough(TM) for all but the most chattiest of devices.
sed s/=\"/=\""-C4048 "/ -i /etc/conf.d/syslog