[alsa-devel] [PATCHES] Integrate minimal systemd support in alsa-utils

Lennart Poettering mznyfn at 0pointer.de
Tue Nov 23 15:43:03 CET 2010

On Tue, 23.11.10 10:44, Jaroslav Kysela (perex at perex.cz) wrote:


> > Up to this point most distributions have been using different init
> > scripts/udev rules files to save/restore mixer settings at
> > boot/hotplug/shutdown. Please see my two attached patches for alsa-utils
> > which add standardized, simplified support for this.
> >
> > The first patch is stolen from Debian/Ubuntu, which moves asound.state
> > to /var/lib, which is a more appropriate place, since /etc might be
> > read-only.
> This will break users which upgrade the package manually from sources and
> /var/lib/alsa directory is not created. I think that the 'make 
> install' rules should create this directory and also alsaconf should 
> check/create this directory if it does not exists.

See attached patch. This will now ensure the directory is created both
at install time and when alsaconf is run.

Also, I made the path configurable, as requested by Takashi, however
set the default to /var/lib/alsa.

> > Given that most big distributions are moving to adopt systemd sooner or
> > later it would be great to have support for this in the upstream package
> > to avoid further balkanization how things are done here.
> I applied this second patch to the alsa-utils repo.



Lennart Poettering - Red Hat, Inc.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Move-asound.state-location-to-var-lib-alsa-and-add-c.patch
Type: text/x-diff
Size: 0 bytes
Desc: not available
Url : http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20101123/731ddbf9/attachment-0001.bin 

More information about the Alsa-devel mailing list