Bug 2209279
Summary: | RFE: 'guestfish --inspector' should recognize device pathnames like '/dev/mapper/rhel boot--73--75--123-root' with "--key" | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 9 | Reporter: | Laszlo Ersek <lersek> |
Component: | libguestfs | Assignee: | Laszlo Ersek <lersek> |
Status: | CLOSED ERRATA | QA Contact: | YongkuiGuo <yoguo> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 9.2 | CC: | chhu, hongzliu, juzhou, lersek, mxie, qzhang, rjones, tyan, tzheng, virt-bugs, virt-maint, vwu, xiaodwan, ymao, yoguo |
Target Milestone: | rc | Keywords: | FutureFeature, Triaged |
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | libguestfs-1.50.1-6.el9 | Doc Type: | Enhancement |
Doc Text: | Story Points: | --- | |
Clone Of: | 2168506 | Environment: | |
Last Closed: | 2023-11-07 08:24:21 UTC | Type: | Feature Request |
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: | 2168506 | ||
Bug Blocks: |
Description
Laszlo Ersek
2023-05-23 10:28:26 UTC
(In reply to Laszlo Ersek from comment #1) > Scratch build in progress: > > - > https://gitlab.cee.redhat.com/lersek/libguestfs-pkg/-/tree/devmapper-rhel9- > 2209279 (@ d5d03ce5) > - https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=52829845 > Hi lersek, This scratch build works well as expected. Steps: On rhel9.3 host: 1. Prepare a guest 'rhel9-luks-on-lv.qcow2' with LUKS-on-LVM scheme [root@localhost ~]# lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS sr0 11:0 1 1024M 0 rom vda 252:0 0 10G 0 disk ├─vda1 252:1 0 1G 0 part /boot └─vda2 252:2 0 9G 0 part ├─rhel-root 253:0 0 8G 0 lvm │ └─luks-e5b1101d-815d-4f07-a19e-8f739bcc3657 253:3 0 8G 0 crypt / └─rhel-swap 253:1 0 1G 0 lvm └─luks-91fdf893-fff9-40b1-be55-ddb872501e72 253:2 0 1008M 0 crypt [SWAP] 2. # guestfish --ro -a rhel9-luks-on-lv.qcow2 --inspector --key "/dev/mapper/rhel-root":key:redhat --key "/dev/mapper/rhel-swap":key:redhat Welcome to guestfish, the guest filesystem shell for editing virtual machine filesystems and disk images. Type: ‘help’ for help on commands ‘man’ to read the manual ‘quit’ to quit the shell Operating system: Red Hat Enterprise Linux 9.1 Beta (Plow) /dev/mapper/luks-e5b1101d-815d-4f07-a19e-8f739bcc3657 mounted on / /dev/sda1 mounted on /boot ><fs> Thanks for checking! My local test succeeded as well. Commit range on the "rhel-9.3" branch in the upstream repo: 73061a7feafc..15cc20d1f5e0. Verified this bug with the package:
libguestfs-1.50.1-6.el9.x86_64
Steps:
On rhel9.3 host:
1. Prepare a guest image 'rhel9.3-luks-on-lvm.qcow2'
[root@localhost ~]# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
vda 252:0 0 10G 0 disk
├─vda1 252:1 0 1G 0 part /boot
└─vda2 252:2 0 9G 0 part
├─vg----rhel-lv----root 253:0 0 8G 0 lvm
│ └─luks-c45ece75-54d6-4d39-a11a-dcda168f61fd 253:3 0 8G 0 crypt /
└─vg----rhel-lv----swap 253:1 0 1G 0 lvm
└─luks-d3d68e46-87a3-4e59-9f5d-67495eb2d623 253:2 0 1008M 0 crypt [SWAP]
2.
# guestfish --ro -a rhel9.3-luks-on-lvm.qcow2 -i --key "/dev/mapper/vg----rhel-lv----root":key:redhat --key "/dev/mapper/vg----rhel-lv----swap":key:redhat
Welcome to guestfish, the guest filesystem shell for
editing virtual machine filesystems and disk images.
Type: ‘help’ for help on commands
‘man’ to read the manual
‘quit’ to quit the shell
Operating system: Red Hat Enterprise Linux 9.3 Beta (Plow)
/dev/mapper/luks-c45ece75-54d6-4d39-a11a-dcda168f61fd mounted on /
/dev/sda1 mounted on /boot
><fs>
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 (libguestfs 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-2023:6327 |