[Pkg-alsa-devel] Bug#636437: Bug#636437: /usr/sbin is not mounted at boot! So don't expect that it is please

Jordi Mallach jordi at debian.org
Wed Aug 3 17:51:33 UTC 2011


On Wed, Aug 03, 2011 at 09:09:16AM +0800, jidanni at jidanni.org wrote:
> Gentlemen, you have blown it rather royally.

jidanni, I look out of my window, and I don't see the world falling in
pieces. I just see a pair of annoying messages at boot. Don't worry, it'll
be fixed.

> There are plenty of scripts in /lib/udev/rules.d that use RUN
> $ cd /lib/udev/rules.d
> $ grep RUN+= *|wc -l
> 123
> 
> And plenty that use /sbin
> 
> $ grep /sbin *|wc -l
> 26
> 
> But only one that uses /usr/sbin
> 
> $ grep /usr/sbin *|wc -l
> 1
> 
> And the winner is
> 
> $ grep /usr/sbin *
> 90-alsa-restore.rules:        RUN+="/usr/sbin/alsactl restore $attr{number}"
> 
> Which of course will fail upon boot, with plenty of errors on the console,
> 
> because /usr/sbin/ is not mounted at that time!

It seems clear that we need to move that binary to /sbin if we want to use
it like that in udev. Luckily, this was going to happen as we try to make
our delta with ubuntu smaller (they had done this change some time ago,
not sure if the reason was to avoid this or for other reasons derived from
upstart introduction).

Jordi
-- 
Jordi Mallach Pérez  --  Debian developer     http://www.debian.org/
jordi at sindominio.net     jordi at debian.org     http://www.sindominio.net/
GnuPG public key information available at http://oskuro.net/





More information about the Pkg-alsa-devel mailing list