Bug 542081 - "unexpected operator" complaint during boot
Summary: "unexpected operator" complaint during boot
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: dracut
Version: 12
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Harald Hoyer
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-11-28 09:15 UTC by Michal Schmidt
Modified: 2010-01-28 00:53 UTC (History)
1 user (show)

Fixed In Version: 004-4.fc12
Clone Of:
Environment:
Last Closed: 2010-01-28 00:53:50 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.