systemd-udev fails to execute alsactl during start-up if /usr and/or /var are separate volumes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
alsa-utils (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
During system startup systemd-udev will print the following error messages:
[ 15.089778] systemd-udevd[683]: failed to execute '/usr/sbin/alsactl' '/usr/sbin/alsactl -E HOME=/var/run/alsa restore 0': No such file or directory
[ 15.090130] systemd-udevd[684]: failed to execute '/usr/sbin/alsactl' '/usr/sbin/alsactl -E HOME=/var/run/alsa restore 1': No such file or directory
alsactl is present:
$ which alsactl
/usr/sbin/alsactl
but on a separate partition:
$ df -h /usr/sbin/alsactl
Dateisystem Größe Benutzt Verf. Verw% Eingehängt auf
/dev/mapper/
$ df -h /var
Dateisystem Größe Benutzt Verf. Verw% Eingehängt auf
/dev/mapper/
This suggests that systemd-udev is called before all local partitions have been mounted.
$ lsb_release -rd
Description: Ubuntu Trusty Tahr (development branch)
Release: 14.04
$ apt-cache policy udev
udev:
Installiert: 204-5ubuntu13
Installations
Versionstabelle:
*** 204-5ubuntu13 0
500 http://
100 /var/lib/
Kind regards,
Dominik
tags: | added: patch |
Right, anything which wants to run at boot before /usr gets mounted needs to be in /bin or /sbin, not in /usr.