Bug 1940607
Summary: | lsblk sometimes returns block devices in wrong order with --pairs | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 8 | Reporter: | Jonathan Lebon <jlebon> |
Component: | util-linux | Assignee: | Karel Zak <kzak> |
Status: | CLOSED ERRATA | QA Contact: | Vojtech Eichler <veichler> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 8.3 | CC: | bgilbert, miabbott, veichler |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | util-linux-2.32.1-28.el8 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2021-11-09 20:02:21 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: |
Description
Jonathan Lebon
2021-03-18 17:34:42 UTC
Should be fixed by upstream commit https://github.com/karelzak/util-linux/commit/529b51706ef06611a8165023f14e6593e06901de. Yes, confirmed working with the same setup as in comment 0: ``` [root@cosa-devsh ~]# lsblk /dev/nvme0n1 --pairs NAME="root" MAJ:MIN="253:0" RM="0" SIZE="15.5G" RO="0" TYPE="crypt" MOUNTPOINT="/sysroot" NAME="nvme0n1" MAJ:MIN="259:0" RM="0" SIZE="16G" RO="0" TYPE="disk" MOUNTPOINT="" NAME="nvme0n1p1" MAJ:MIN="259:1" RM="0" SIZE="1M" RO="0" TYPE="part" MOUNTPOINT="" NAME="nvme0n1p2" MAJ:MIN="259:2" RM="0" SIZE="127M" RO="0" TYPE="part" MOUNTPOINT="" NAME="nvme0n1p3" MAJ:MIN="259:3" RM="0" SIZE="384M" RO="0" TYPE="part" MOUNTPOINT="/boot" NAME="nvme0n1p4" MAJ:MIN="259:4" RM="0" SIZE="15.5G" RO="0" TYPE="part" MOUNTPOINT="" [root@cosa-devsh ~]# rpm -Uvh *.rpm Verifying... ################################# [100%] Preparing... ################################# [100%] Updating / installing... 1:libuuid-2.32.1-28.el8 ################################# [ 8%] 2:libblkid-2.32.1-28.el8 ################################# [ 17%] 3:libfdisk-2.32.1-28.el8 ################################# [ 25%] 4:libmount-2.32.1-28.el8 ################################# [ 33%] 5:libsmartcols-2.32.1-28.el8 ################################# [ 42%] 6:util-linux-2.32.1-28.el8 ################################# [ 50%] Cleaning up / removing... 7:util-linux-2.32.1-27.el8 ################################# [ 58%] 8:libfdisk-2.32.1-27.el8 ################################# [ 67%] 9:libmount-2.32.1-27.el8 ################################# [ 75%] 10:libblkid-2.32.1-27.el8 ################################# [ 83%] 11:libuuid-2.32.1-27.el8 ################################# [ 92%] 12:libsmartcols-2.32.1-27.el8 ################################# [100%] [root@cosa-devsh ~]# lsblk /dev/nvme0n1 --pairs NAME="nvme0n1" MAJ:MIN="259:0" RM="0" SIZE="16G" RO="0" TYPE="disk" MOUNTPOINT="" NAME="nvme0n1p1" MAJ:MIN="259:1" RM="0" SIZE="1M" RO="0" TYPE="part" MOUNTPOINT="" NAME="nvme0n1p2" MAJ:MIN="259:2" RM="0" SIZE="127M" RO="0" TYPE="part" MOUNTPOINT="" NAME="nvme0n1p3" MAJ:MIN="259:3" RM="0" SIZE="384M" RO="0" TYPE="part" MOUNTPOINT="/boot" NAME="nvme0n1p4" MAJ:MIN="259:4" RM="0" SIZE="15.5G" RO="0" TYPE="part" MOUNTPOINT="" NAME="root" MAJ:MIN="253:0" RM="0" SIZE="15.5G" RO="0" TYPE="crypt" MOUNTPOINT="/sysroot" ``` Thanks a lot Karel! 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 (util-linux 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-2021:4490 |