Bug 1787584
| Summary: | [BUG] Grubby prints sed error given some arguments | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 8 | Reporter: | Oliver Falk <ofalk> | ||||
| Component: | grubby | Assignee: | Bootloader engineering team <bootloader-eng-team> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Release Test Team <release-test-team-automation> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 8.1 | CC: | fmartine, peter.vreman, pjanda, pzatko | ||||
| Target Milestone: | rc | Keywords: | TestCaseNeeded | ||||
| Target Release: | 8.0 | Flags: | pm-rhel:
mirror+
|
||||
| Hardware: | All | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | grubby-8.40-41.el8 | Doc Type: | If docs needed, set a value | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2020-11-04 01:51:12 UTC | Type: | Bug | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Bug Depends On: | |||||||
| Bug Blocks: | 1122832 | ||||||
| Attachments: |
|
||||||
|
Description
Oliver Falk
2020-01-03 14:22:04 UTC
can be reproduced by reported args, but some issue is hidden on more lines grubby --update-kernel=$KERNEL --args="/haha" sed: -e expression #1, char 59: unknown option to `s' or grubby --update-kernel=$KERNEL --args="x=/haha=" sed: -e expression #1, char 61: unknown option to `s' Created attachment 1684818 [details]
grubby-8.40-39.el8.x86_64.rpm
Could you please test with the attached test build?
with test build most errors disappeared (I did'n check if it works correctly though) But I've foud one which prints error. I don't know how to fix it # grubby --update-kernel=$KERNEL --args="some\/escaped\/slashes" sed: -e expression #1, char 35: unknown option to `s' sed: -e expression #1, char 30: unknown option to `s' grubby --update-kernel=$KERNEL --args="\1" sed: -e expression #1, char 30: invalid reference \1 on `s' command's RHS using sed looks pretty fragile - but the attached build probably fixed Oliver's issue (In reply to Petr Janda from comment #6) > with test build most errors disappeared (I did'n check if it works correctly > though) > But I've foud one which prints error. I don't know how to fix it > > # grubby --update-kernel=$KERNEL --args="some\/escaped\/slashes" > sed: -e expression #1, char 35: unknown option to `s' > sed: -e expression #1, char 30: unknown option to `s' > > grubby --update-kernel=$KERNEL --args="\1" > sed: -e expression #1, char 30: invalid reference \1 on `s' command's RHS > > using sed looks pretty fragile - but the attached build probably fixed > Oliver's issue Agreed, this has gotten complex enough that needs to be written in a proper language. Yes, the attached test package should contain fixes for Oliver's issue and also the first issue that you described. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (grubby bug fix and enhancement update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2020:4502 |