[Bug 2145810] Re: apport truncates UdevDb DEVLINKS value
Benjamin Drung
2145810 at bugs.launchpad.net
Wed Mar 25 12:05:18 UTC 2026
** Changed in: apport
Milestone: None => 2.34.0
** Changed in: apport
Importance: Undecided => Medium
** Changed in: apport (Ubuntu)
Importance: Undecided => Medium
** Changed in: apport (Ubuntu)
Status: New => In Progress
** Changed in: apport
Status: New => Fix Committed
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to apport in Ubuntu.
https://bugs.launchpad.net/bugs/2145810
Title:
apport truncates UdevDb DEVLINKS value
Status in Apport:
Fix Committed
Status in apport package in Ubuntu:
In Progress
Bug description:
Apport has support for anonymizing filesystems names when collecting
the udev database. To do so, it performs text substitutions in lines
that have "by-label":
S: disk/by-label/john-doe-rootfs
S: disk/by-label/<hidden>
Unfortunately, the text substitution has a side effect when applied to
the DEVLINKS property. It effectively truncates the property after the
first occurrence of "by-label":
E: DEVLINKS=/dev/disk/by-path/pci-0000:00:04.0-part/by-partuuid/2722bff2-40ac-47e6-8025-5b7889adb69a
/dev/disk/by-path/pci-0000:00:04.0-part1 /dev/disk/by-path/pci-0000:00:04.0-part/by-partnum/1
/dev/disk/by-uuid/e6134f84-e3eb-4ae4-8c43-959b9740bd3e
/dev/disk/by-path/pci-0000:00:04.0-part/by-uuid/e6134f84-e3eb-4ae4-8c43-959b9740bd3e
/dev/disk/by-path/virtio-pci-0000:00:04.0-part1
/dev/disk/by-path/pci-0000:00:04.0-part/by-label/john-doe-rootfs
/dev/disk/by-label/john-doe-rootfs
/dev/disk/by-diskseq/9-part1
/dev/disk/by-partuuid/2722bff2-40ac-47e6-8025-5b7889adb69a
Currently results in the following after applying the text
substitutions:
E: DEVLINKS=/dev/disk/by-path/pci-0000:00:04.0-part/by-partuuid/2722bff2-40ac-47e6-8025-5b7889adb69a
/dev/disk/by-path/pci-0000:00:04.0-part1
/dev/disk/by-path/pci-0000:00:04.0-part/by-partnum/1
/dev/disk/by-uuid/e6134f84-e3eb-4ae4-8c43-959b9740bd3e
/dev/disk/by-path/pci-0000:00:04.0-part/by-uuid/e6134f84-e3eb-4ae4-8c43-959b9740bd3e
/dev/disk/by-path/virtio-pci-0000:00:04.0-part1
/dev/disk/by-path/pci-0000:00:04.0-part/by-label/<hidden>
and I would expect the following instead:
E: DEVLINKS=/dev/disk/by-path/pci-0000:00:04.0-part/by-partuuid/2722bff2-40ac-47e6-8025-5b7889adb69a
/dev/disk/by-path/pci-0000:00:04.0-part1
/dev/disk/by-path/pci-0000:00:04.0-part/by-partnum/1
/dev/disk/by-uuid/e6134f84-e3eb-4ae4-8c43-959b9740bd3e
/dev/disk/by-path/pci-0000:00:04.0-part/by-uuid/e6134f84-e3eb-4ae4-8c43-959b9740bd3e
/dev/disk/by-path/virtio-pci-0000:00:04.0-part1
/dev/disk/by-path/pci-0000:00:04.0-part/by-label/<hidden>
/dev/disk/by-label/<hidden>
/dev/disk/by-diskseq/9-part1
/dev/disk/by-partuuid/2722bff2-40ac-47e6-8025-5b7889adb69a
To manage notifications about this bug go to:
https://bugs.launchpad.net/apport/+bug/2145810/+subscriptions
More information about the foundations-bugs
mailing list