Bug 948612

Summary: Shutdown fails with kernel 3.8 series,
Product: [Fedora] Fedora Reporter: hans.karlsson
Component: dracutAssignee: dracut-maint
Status: CLOSED CANTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 18CC: dracut-maint, harald, jonathan
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-05-29 13:39:09 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:
Attachments:
Description Flags
Output from lsinitrd none

Description hans.karlsson 2013-04-04 19:52:50 UTC
Description of problem:
Hangs on shutdown with kernel 3.8, drops to debug shell

Version-Release number of selected component (if applicable):
Kernel 3.8, dracut-024-25

How reproducible:
Everytime I try to shutdown

Steps to Reproduce:
1.
2.
3.
  
Actual results:
Hangs on shutdown, message 
"/shutdown line 103: poweroff command not found 
dracut warning: poweroff failed"

Then I'm droped to debug shell.

Expected results:
Clean shutdown

Additional info:
Fedora 18, kernel 3.8, Lenovo W530

Comment 1 Harald Hoyer 2013-04-05 05:49:30 UTC
wow.. what's the output of:

# lsinitrd
# ls -l $(which poweroff)
# ls -l $(readlink -f $(which poweroff))

Comment 2 hans.karlsson 2013-04-05 15:04:31 UTC
Created attachment 731922 [details]
Output from lsinitrd

Comment 3 hans.karlsson 2013-04-05 15:06:08 UTC
(In reply to comment #1)
> wow.. what's the output of:
> 
> # lsinitrd
Added as attachment
> # ls -l $(which poweroff)
lrwxrwxrwx. 1 root root 16 Apr  3 17:48 /usr/sbin/poweroff -> ../bin/systemctl

> # ls -l $(readlink -f $(which poweroff))
-rwxr-xr-x. 1 root root 291336 Jan 28 20:05 /usr/bin/systemctl

Comment 4 Harald Hoyer 2013-04-08 06:42:22 UTC
very strange... "poweroff" is missing from the initramfs. 
Can you append /var/log/dracut.log?

Run:
# dracut -f

and check, if poweroff is in your initramfs:

# lsinitrd | grep poweroff

Comment 5 hans.karlsson 2013-04-08 06:47:24 UTC
(In reply to comment #4)
> very strange... "poweroff" is missing from the initramfs. 
> Can you append /var/log/dracut.log?
> 
> Run:
> # dracut -f
> 
> and check, if poweroff is in your initramfs:
> 
> # lsinitrd | grep poweroff

I did a complete reinstallation of Fedora 18 and now its working.
The error started to appear when I upgraded from kernel 3.7 to 3.8.

You can close this ticket. Thanks for your help and time.