Bug 483269
Summary: | Can't set up encrypted swap. | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Valdis Kletnieks <valdis.kletnieks> | ||||
Component: | initscripts | Assignee: | Bill Nottingham <notting> | ||||
Status: | CLOSED NEXTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | low | ||||||
Version: | rawhide | CC: | notting, rvokal | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | 8.86.3-1 | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2009-03-20 21:04:47 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: | |||||||
Attachments: |
|
http://git.fedorahosted.org/git/?p=initscripts.git;a=commitdiff;h=23985b14531dab30732b743938b1b1d3ccdd314b Also cherry-picked to the F-10 branch for a future update. initscripts-8.86.1-1 has been submitted as an update for Fedora 10. http://admin.fedoraproject.org/updates/initscripts-8.86.1-1 initscripts-8.86.2-1 has been submitted as an update for Fedora 10. http://admin.fedoraproject.org/updates/initscripts-8.86.2-1 initscripts-8.86.3-1 has been pushed to the Fedora 10 stable repository. If problems still persist, please make note of it in this bug report. |
Created attachment 330486 [details] Possible patch to fix the problem Description of problem: There's a bug in init_crypto{} in /etc/rc.sysinit, as follows: else [ -z "$key" ] && plymouth --hide-splash /sbin/cryptsetup $params ${key:+-d $key} create "$dst" "$src" <&1 2> /dev/null && success || failure [ -z "$key" ] && plymouth --show-splash fi rc=$? if [ $rc -ne 0 ]; then ret=1 continue fi This *used* to work, but with the recent addition of the two 'plymouth' calls around cryptsetup, the value of $? is no longer capturing cryptsetup, but the line after it. The 'rc=$?' needs to be moved up after the cryptsetup, and probably added in several other places in the preceding lines. I've attached a potential patch for the issue. Version-Release number of selected component (if applicable): initscripts-8.89-1.x86_64 How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info: