blkid --match-types has no effect
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Util-Linux-ng |
New
|
Unknown
|
|||
initramfs-tools (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
--match-types seems to have no effect:
```
$ blkid
/dev/vda2: UUID="a89f4e16-
$ sudo blkid -p /dev/vda2
/dev/vda2: UUID="a89f4e16-
$ sudo blkid -p --match-types swap /dev/vda2 || echo $?
/dev/vda2: PART_ENTRY_
```
I expect blkid will fail if the type does not match.
This behavior is the same on 22.04 and 24.04 and 24.10 (util-linux 2.39.3-9ubuntu6).
ProblemType: Bug
DistroRelease: Ubuntu 24.04
Package: util-linux 2.39.3-9ubuntu6
ProcVersionSign
Uname: Linux 6.8.0-36-generic x86_64
NonfreeKernelMo
ApportVersion: 2.28.1-0ubuntu3
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: Unity:Unity7:ubuntu
Date: Wed Jul 3 13:13:10 2024
InstallationDate: Installed on 2022-03-20 (836 days ago)
InstallationMedia: Ubuntu 21.10 "Impish Indri" - Release amd64 (20211012)
SourcePackage: util-linux
UpgradeStatus: Upgraded to noble on 2024-04-22 (72 days ago)
Related branches
- Benjamin Drung: Approve
-
Diff: 15 lines (+3/-2)1 file modifiedhooks/resume (+3/-2)
description: | updated |
Changed in util-linux-ng: | |
status: | Unknown → New |
It is correct behavior according to https:/ /github. com/util- linux/util- linux/issues/ 3111
So initramfs-tools need to be changed.