Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 720334 - sys-cluster/nova nova-compute: unexpected operator
Summary: sys-cluster/nova nova-compute: unexpected operator
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo OpenStack team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: nonbash
  Show dependency tree
 
Reported: 2020-05-01 18:31 UTC by Alessandro Barbieri
Modified: 2020-05-02 18:38 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alessandro Barbieri 2020-05-01 18:31:22 UTC
I have dash symlinked to /bin/sh an when I try to run

rc-service nova-compute start

I have this issue

/lib/rc/sh/openrc-run.sh: 12: [: nova-compute: unexpected operator


I confirm that ith bash this issue isn't present
Comment 1 kfm 2020-05-01 18:37:20 UTC
It's a simple fix. The POSIX [ command accepts = as a string equality operator, not ==.

As an aside, the expansions for the checkpath command should be quoted.
Comment 2 Larry the Git Cow gentoo-dev 2020-05-02 18:38:18 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=72006cc0e7cfcb3fb0d9f0df1e825beb97948b32

commit 72006cc0e7cfcb3fb0d9f0df1e825beb97948b32
Author:     Matthew Thode <prometheanfire@gentoo.org>
AuthorDate: 2020-05-02 18:38:03 +0000
Commit:     Matthew Thode <prometheanfire@gentoo.org>
CommitDate: 2020-05-02 18:38:13 +0000

    sys-cluster/nova: fix init
    
    Closes: https://bugs.gentoo.org/720334
    Package-Manager: Portage-2.3.89, Repoman-2.3.20
    Signed-off-by: Matthew Thode <prometheanfire@gentoo.org>

 sys-cluster/nova/files/nova.initd | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)