Summary: | sys-kernel/dracut-036-r1 - /usr/bin/dracut: line 557: [: ==: unary operator expected | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Erich Seifert <eseifert> |
Component: | [OLD] Core system | Assignee: | Amadeusz Żołnowski (RETIRED) <aidecoe> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | alexander, dschridde+gentoobugs, proxy-maint |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Erich Seifert
2014-02-22 00:12:03 UTC
It is parsing commandline arguments at that point, and someone forgot the quotes. This patch fixes it: --- dracut.orig 2014-02-22 11:50:21.885420684 +0100 +++ /usr/bin/dracut 2014-02-22 11:50:37.548960604 +0100 @@ -554,7 +554,7 @@ # the old fashioned way while (($# > 0)); do - if [ ${1%%=*} == "++include" ]; then + if [ "${1%%=*}" == "++include" ]; then push include_src "$2" push include_target "$3" PARMS_TO_STORE+=" --include '$2' '$3'" Yes, this was already mentioned in another bug https://bugs.gentoo.org/show_bug.cgi?id=501694#c1 Thanks! +*dracut-036-r2 (23 Feb 2014) + + 23 Feb 2014; Amadeusz Żołnowski <aidecoe@gentoo.org> +dracut-036-r2.ebuild, + +files/036-0007-Added-missing-quotes.patch: + Fixed bug #502064 and bug #501566. + + Commit on behalf of Alexander Tsoy <alexander@tsoy.me>. + I'm sorry to reopen, but although the patch file exists now, it isn't in the patch list of dracut-036-r2.ebuild. (In reply to Erich Seifert from comment #4) > I'm sorry to reopen, but although the patch file exists now, it isn't in the > patch list of dracut-036-r2.ebuild. I am sorry for my mistake. Thanks! :-) +*dracut-036-r3 (24 Feb 2014) + + 24 Feb 2014; Amadeusz Żołnowski <aidecoe@gentoo.org> +dracut-036-r3.ebuild: + Added missing patch entry to the list. + |