RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1629053 - remove-args seems unable to handle backslash
Summary: remove-args seems unable to handle backslash
Keywords:
Status: CLOSED DUPLICATE of bug 1476273
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: grubby
Version: 7.6
Hardware: All
OS: Linux
high
high
Target Milestone: rc
: ---
Assignee: Peter Jones
QA Contact: Release Test Team
URL:
Whiteboard:
Depends On:
Blocks: 1629054
TreeView+ depends on / blocked
 
Reported: 2018-09-14 18:09 UTC by Qian Cai
Modified: 2018-09-17 13:31 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1629054 (view as bug list)
Environment:
Last Closed: 2018-09-17 13:31:54 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Qian Cai 2018-09-14 18:09:54 UTC
Description of problem:
# cat /proc/cmdline 
BOOT_IMAGE=/vmlinuz-3.10.0-862.14.1.el7.ppc64le root=/dev/mapper/rhel_ibm--p8--storage--02--guest--15-root ro crashkernel=auto rd.lvm.lv=rhel_ibm-p8-storage-02-guest-15/root rd.lvm.lv=rhel_ibm-p8-storage-02-guest-15/swap LANG=en_US.UTF-8

# grubby --remove-args='rd.lvm.lv=rhel_ibm-p8-storage-02-guest-15/swap' --update-kernel=/boot/vmlinuz-3.10.0-862.14.1.el7.ppc64le

It actually end up removing "rd.lvm.lv=rhel_ibm-p8-storage-02-guest-15/root" instead of swap which caused the system unable to boot later on.

Version-Release number of selected component (if applicable):
grubby-8.28-25.el7

Comment 1 Javier Martinez Canillas 2018-09-17 10:11:02 UTC
(In reply to Qian Cai from comment #0)
> Description of problem:
> # cat /proc/cmdline 
> BOOT_IMAGE=/vmlinuz-3.10.0-862.14.1.el7.ppc64le
> root=/dev/mapper/rhel_ibm--p8--storage--02--guest--15-root ro
> crashkernel=auto rd.lvm.lv=rhel_ibm-p8-storage-02-guest-15/root
> rd.lvm.lv=rhel_ibm-p8-storage-02-guest-15/swap LANG=en_US.UTF-8
> 
> # grubby --remove-args='rd.lvm.lv=rhel_ibm-p8-storage-02-guest-15/swap'
> --update-kernel=/boot/vmlinuz-3.10.0-862.14.1.el7.ppc64le
> 
> It actually end up removing "rd.lvm.lv=rhel_ibm-p8-storage-02-guest-15/root"
> instead of swap which caused the system unable to boot later on.
> 
> Version-Release number of selected component (if applicable):
> grubby-8.28-25.el7

Did this work on RHEL 7.5?

Comment 2 Qian Cai 2018-09-17 12:08:13 UTC
No

Comment 3 Javier Martinez Canillas 2018-09-17 13:24:04 UTC
I see, that this is a duplicate of bug 1476273.

Qian,

Could you please test the following scratch build?

https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=18361366

Comment 4 Qian Cai 2018-09-17 13:31:54 UTC
It works fine.

*** This bug has been marked as a duplicate of bug 1476273 ***


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