Remove agetty services for missing devices#194
Remove agetty services for missing devices#194raindev wants to merge 1 commit intovoid-linux:masterfrom raindev:agetty-services-clean-up
Conversation
The most common offenders are agetty-hvsi0 and agetty-hvc0. agetty services started for devices that do not exist end up failing with cannot open as standard input: No such file or directory runit restarts such services resulting in syslog being flooded with error messages. Closes #193
|
|
||
| # remove agetty services for devices that are not present | ||
| for service in /var/service/agetty-*; do | ||
| if [ ! -e /dev/"$(cut -d'-' -f2 <<< "$service")" ]; then |
There was a problem hiding this comment.
for service in /var/service/agetty-*; do
[ -e "/dev/${service#*agetty-}" ] || rm -v "$service"
done
But shouldn't this be done in $TARGETDIR?
There was a problem hiding this comment.
we should instead figure out why those services are getting auto-enabled in the first place, and then fix that
There was a problem hiding this comment.
This dracut hook enables all installed services on boot that are not excludes: https://github.com/void-linux/void-mklive/blob/master/dracut/vmklive/services.sh
There was a problem hiding this comment.
well, since this dracut hook includes ttyS* already, it would make sense to add hvc0 and hvsi0 in there as well
There was a problem hiding this comment.
actually, i have that already done here, along with proper enablement of serial console in live: void-ppc@8a3c5c0
There was a problem hiding this comment.
There was a problem hiding this comment.
yeah just add the console= you want, e.g. console=hvc0 or console=ttyS0 and the new dracut hook will pick it up and enable the service
the only people who need hvc0 are users of openpower machines (ibm power8/power9) which expose the serial port through a firmware abstraction rather than directly, and some xen users; hvsi0 will have even fewer users
also blacklist more agettys to fix the hvc0/hvsi0 issue Closes void-linux/void-mklive#194
The most common offenders are agetty-hvsi0 and agetty-hvc0. agetty
services started for devices that do not exist end up failing with
cannot open as standard input: No such file or directory
runit restarts such services resulting in syslog being flooded
with error messages.
Closes #193
A "test case":
Note that I only verified the snipped outside of the installer. If you think it makes sense to test it as a part of the installation process, I can do that too.