Bug 166818

Summary: alsa-lib - complaints from installation scripts
Product: [Fedora] Fedora Reporter: Michal Jaegermann <michal>
Component: alsa-libAssignee: Martin Stransky <stransky>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: rawhide   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: "alsa-lib-1.0.9rf-3 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-08-30 11:47:55 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Michal Jaegermann 2005-08-26 03:25:13 UTC
Description of problem:

While installing an update to alsa-lib I got few times (on x86_64 with
libraries for different architectures):

.....
Version 0.4

Usage: ainit user_name start|stop [--version] [--help]


Looking at installation scriplets that likely meand that
/var/run/console/console.lock was found but not with an expected content.

BTW, a script like /etc/hotplug/usb/usbcam looks for console.lock file
in few different places.

Version-Release number of selected component (if applicable):
alsa-lib-1.0.9rf-3

Comment 1 Martin Stransky 2005-08-29 10:23:40 UTC
Which version of pam do you have?
Could you please attach the /var/run/console/console.lock file?

Comment 2 Michal Jaegermann 2005-08-29 15:39:11 UTC
> Which version of pam do you have?

pam-0.80-7 at this moment. It was installed on 25 Aug 2005.

> Could you please attach the /var/run/console/console.lock file?

I am afraid that there is nothing to attach.  Such file does not exist.
'find /var -name console.lock' does not report it somewhere else either.
At least current alsa-lib package scripts have a check for this contigency
but this means that /usr/bin/ainit will not run.  No idea what practical
effects this will have.  Why it is important that during an de/installation
ainit runs for whomever happens to be listed in console.lock, if such thing
does exist, and not just simply for root?  "Random User" cannot install.

Comment 3 Martin Stransky 2005-08-30 11:47:55 UTC
If you run ainit for root, only root will be able to use sound card. So I added
check for configuration reloading for the current user, which is using
soundcard. If you are root, you can use the soundcard anyway.