Bug 1031304

Summary: "hostonly=yes" breaks resume from disk; dracut ignores "hostonly" setting in dracut.conf
Product: [Fedora] Fedora Reporter: d141221
Component: dracutAssignee: dracut-maint
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 20CC: 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: 2014-01-22 10:56:18 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:
Attachments:
Description Flags
fstab
none
dracut-debug.log none

Description d141221 2013-11-16 16:53:52 UTC
Description of problem:
Inintrds created by dracut won't resume from disk if they're host-only. Setting "hostonly=no" in /etc/dracut.conf has no effect; only the command-line option works. It's possible to make the system resume from disk if the device is added manually to a .conf snippet in /etc/dracut.conf.d.

Version-Release number of selected component (if applicable):
dracut-034-19.git20131021.fc20.x86_64

How reproducible:
Always

Steps to Reproduce:
1. Run 'systemctl hibernate' and wait until it saves the image to disk
2. Power on the computer

Actual results:
Hibernation image is completely ignored on boot.

Expected results:
The system should at least check if there's a hibernation image on the swap device and resume from it, if applicable.

Additional info:
* Workaround 1: dracut -f --no-hostonly --regenerate-all
* Workaround 2: add the swap partition manually to a .conf snippet in /etc/dracut.conf.d (add_device+=" /dev/<swap partition> ")
* Partition table is GPT (not sure if this matters)

Comment 1 Harald Hoyer 2013-11-18 11:57:00 UTC
please attach your /etc/fstab

please attach the output of:

# dracut -f --debug

Comment 2 d141221 2013-11-18 12:04:25 UTC
Created attachment 825569 [details]
fstab

Comment 3 d141221 2013-11-18 12:09:35 UTC
Created attachment 825570 [details]
dracut-debug.log

Comment 4 d141221 2013-11-18 12:10:34 UTC
The swap entry is commented out because systemd tries to enable it twice, slowing down boot by 20 seconds or so.

Comment 5 Harald Hoyer 2013-11-19 12:04:54 UTC
(In reply to enthymeme from comment #4)
> The swap entry is commented out because systemd tries to enable it twice,
> slowing down boot by 20 seconds or so.

Well, dracut wants that entry. No swap -> no resume.

Comment 6 d141221 2013-11-19 14:53:42 UTC
So I have to choose between snail-slow boot and working resume from disk? I wouldn't even care about boot times if hibernation wasn't half-broken.