Bug 542081

Summary: "unexpected operator" complaint during boot
Product: [Fedora] Fedora Reporter: Michal Schmidt <mschmidt>
Component: dracutAssignee: Harald Hoyer <harald>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: 12CC: harald
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 004-4.fc12 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-01-28 00:53:50 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:

Description Michal Schmidt 2009-11-28 09:15:45 UTC
Description of problem:
During boot I am getting an error message like this:
[: 44: luks-...: unexpected operator
The message is from dash which does not know the '==' operator (it's a bashism). POSIX specifies '=' for string comparison.

A simple testcase:
dash -c '[ foo == foo ] && echo equal'
[: 1: foo: unexpected operator

Version-Release number of selected component (if applicable):
dracut-003-1.fc12.noarch

How reproducible:
always

Steps to Reproduce:
1. Boot from an encrypted root fs and use the rd_LUKS_UUID parameter
2. Press Esc when plymouth starts, so that you can see the messages. (Or just don't use "rhgb".)

Actual results:
The system boots fine, but the error message can be seen.

Expected results:
The system should boot without error messages.

Additional info:
These two files use the non-POSIX '==' operator:
modules.d/50plymouth/cryptroot-ask.sh
modules.d/90crypt/cryptroot-ask.sh

Comment 1 Fedora Update System 2010-01-26 10:49:11 UTC
dracut-004-4.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/dracut-004-4.fc12

Comment 2 Fedora Update System 2010-01-27 01:06:17 UTC
dracut-004-4.fc12 has been pushed to the Fedora 12 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update dracut'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F12/FEDORA-2010-1088

Comment 3 Fedora Update System 2010-01-28 00:51:37 UTC
dracut-004-4.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.