Red Hat Bugzilla – Bug 1270629
Bad cmdline parsing in 50-dracut.install and 51-dracut-rescue.install
Last modified: 2016-07-19 14:11:01 EDT
This bug is in dracut-041-14.fc22.x86_64.
50-dracut.install and 51-dracut-rescue.install use the shell "read" builtin incorrectly. This causes /bin/kernel-install to exit unsuccessfully, leading to RPM scriptlet failures when a kernel-core package is installed or updated.
The problem is on these lines:
28: read -ar BOOT_OPTIONS < /proc/cmdline
48: read -ar BOOT_OPTIONS < /proc/cmdline
"read -a" requires the array name to immediately follow. These lines aren't reading into the $BOOT_OPTIONS array; instead they're populating an array named $r. A subsequent test for $BOOT_OPTIONS being empty causes the *.install scripts to exit with failure.
This bug has been fixed upstream:
Author: Harald Hoyer <email@example.com>
Date: Wed May 13 11:49:05 2015 +0200
5?-dracut*.install: better parsing of /proc/cmdline
"read -r -d '' -a" does, what we want.
It would be nice to have this commit backported to the dracut in Fedora.
This is still a bug as of dracut-041-15.fc22.x86_64.
Fedora 22 changed to end-of-life (EOL) status on 2016-07-19. Fedora 22 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.
If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
Thank you for reporting this bug and we are sorry it could not be fixed.