Bug 1192817

Summary: acpi power button shutdown fails due to omission of path to shutdown in PATH in /etc/acpi/actions/power.sh
Product: [Fedora] Fedora Reporter: morgan read <mstuff>
Component: acpidAssignee: Jaroslav Škarvada <jskarvad>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 20CC: jskarvad, ted
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: acpid-2.0.21-2.fc20 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-05-28 12:01:58 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description morgan read 2015-02-15 15:14:33 UTC
Description of problem:
acpi power button shutdown fails due to omission of path to shutdown in PATH in /etc/acpi/actions/power.sh

In 'power.sh'
PATH=/sbin:/bin:/usr/bin

# which shutdown
/usr/sbin/shutdown

Hmm...

Version-Release number of selected component (if applicable):
acpid-2.0.21-1.fc20.x86_64

How reproducible:
Always

Steps to Reproduce:
1. Install acpid-2.0.21-1.fc20.x86_64
2. Delete all the conditional stuff between 'PATH=/sbin:/bin:/usr/bin' and 'shutdown -h now'
3. 'acpid restart'
4. Nil result

Actual results:
Nothing

Expected results:
Shutdown

Additional info:
Adding path to 'shutdown' in 'power.sh' fixes bug

Comment 1 Jaroslav Škarvada 2015-02-15 16:24:23 UTC
Well, this is worth fix, but I cannot see why it is failing. There should be symlink:

/sbin -> /usr/sbin

Do you have such symlink on your filesystem?

$ rpm -ql filesystem | grep ^/sbin$
/sbin

$ rpm -qV filesystem
# none error

$ readlink /sbin
usr/sbin

Comment 2 Fedora Update System 2015-05-19 10:24:27 UTC
acpid-2.0.21-2.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/acpid-2.0.21-2.fc20

Comment 3 Fedora Update System 2015-05-19 10:24:48 UTC
acpid-2.0.23-2.fc22 has been submitted as an update for Fedora 22.
https://admin.fedoraproject.org/updates/acpid-2.0.23-2.fc22

Comment 4 Fedora Update System 2015-05-19 10:25:12 UTC
acpid-2.0.23-2.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/acpid-2.0.23-2.fc21

Comment 5 Fedora Update System 2015-05-20 02:53:48 UTC
Package acpid-2.0.23-2.fc22:
* should fix your issue,
* was pushed to the Fedora 22 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing acpid-2.0.23-2.fc22'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2015-8550/acpid-2.0.23-2.fc22
then log in and leave karma (feedback).

Comment 6 Fedora Update System 2015-05-28 12:01:58 UTC
acpid-2.0.23-2.fc22 has been pushed to the Fedora 22 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 7 Fedora Update System 2015-05-30 15:38:07 UTC
acpid-2.0.23-2.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 8 Fedora Update System 2015-05-30 15:50:04 UTC
acpid-2.0.21-2.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.