Bug 1342905

Summary: Enters dracut emergency shell after installation with autopart encrypted.
Product: Red Hat Enterprise Linux 7 Reporter: Wei Wang <weiwang>
Component: anacondaAssignee: Anaconda Maintenance Team <anaconda-maint-list>
Status: CLOSED NOTABUG QA Contact: Release Test Team <release-test-team>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.2CC: bugs, cshao, fdeutsch, huiwa, huzhao, leiwang, weiwang, yaniwang, ycui
Target Milestone: pre-dev-freeze   
Target Release: 7.3   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-06-13 14:02:14 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Node RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 1329957    
Attachments:
Description Flags
kickstart file
none
resosreport none

Description Wei Wang 2016-06-06 05:24:26 UTC
Created attachment 1165041 [details]
kickstart file

Description of problem:
Enters dracut emergency shell after installation with autopart encrypted.

Version-Release number of selected component (if applicable):
rhev-hypervisor7-ng-4.0-20160527.0.x86_64
imgbased-0.7.0-0.1.el7ev.noarch


How reproducible:
100%

Steps to Reproduce:
1. Install NGN on a machine with kickstart file in attachment.
    key parameters:
    autopart --type=thinp --encrypted --passphrase=$1$wHbL1u1G$gqz7IPh.ctaUHFMpQnyKl/

2. During rebooting , input the passphrase
3. Check system after rebooting process

Actual results:
Enters dracut emergency shell after rebooting.

Expected results:
System reboot successfully, and login screen prompt.


Additional info:

Comment 1 Wei Wang 2016-06-06 05:26:39 UTC
Created attachment 1165042 [details]
resosreport

Comment 2 Fabian Deutsch 2016-06-06 09:14:27 UTC
Does this also happen with RHEL7?

Comment 3 Wei Wang 2016-06-08 08:34:13 UTC
Hi Fabian,
I will give the feedback later since I need to debug some problems and future research.

Comment 4 Wei Wang 2016-06-13 08:58:10 UTC
Test Version
RHEL-7.2-20151015.0-Server-x86_64-dvd1.iso

Test Steps:
1. Get squashfs image from RHEL DVD iso
2. Get passphrase via command #openssl passwd -1
3. Install NGN on a machine with kickstart file
    key parameters:
    autopart --type=thinp --encrypted --passphrase=$1$wHbL1u1G$gqz7IPh.ctaUHFMpQnyKl/

4. Check the process of installation


Result:
Install fail, since "Could not open X display"

More info:
Using rhev-hypervisor7-ng-4.0-20160608.0.x86_64 for retesting, and part /boot individually which is not encrypted, also install fail, the "Could not open X display" prompted.

Comment 5 David Shea 2016-06-13 14:02:14 UTC
LUKS does not the same crypt algorithm as the system password, and a pre-encrypted passphrase cannot be set in kickstart. The passphrase set for this install is literally "$1$wHbL1u1G$gqz7IPh.ctaUHFMpQnyKl/".