[Bug 2054390] [NEW] Refine proc mounts entries traversal

Launchpad Bug Tracker 2054390 at bugs.launchpad.net
Wed Apr 3 07:06:45 UTC 2024


You have been subscribed to a public bug by Chengen Du (chengendu):

[Impact]
When LDAP automount maps generate a substantial number of entries in /proc/mounts, it has the potential to induce a timeout issue, particularly during the process of iterating through the entries twice in the cryptroot hook.

[Fix]
Utilizing awk to initially filter out pertinent mount points results in a notable reduction in the execution time of the hook.

[Test Plan]
The patch maintains the existing logic within the hook.
Our primary objective is to ensure that the output remains consistent when obtaining devnos through iteration.
1. Execute the /usr/share/initramfs-tools/hooks/cryptroot binary
2. Confirm that the output does not include the following warning message:
cryptsetup: WARNING: Couldn't determine root device

[Where problems could occur]
The patch exclusively modifies the method of extracting information without altering the underlying hook logic.
It's crucial to note that the successful generation of the crypttab is contingent upon the accuracy of the information provided by the patch.
Any inaccuracies may impede the crypttab generation process.

** Affects: cryptsetup (Ubuntu)
     Importance: Undecided
     Assignee: Chengen Du (chengendu)
         Status: In Progress

** Affects: cryptsetup (Ubuntu Focal)
     Importance: Undecided
     Assignee: Chengen Du (chengendu)
         Status: In Progress

** Affects: cryptsetup (Ubuntu Jammy)
     Importance: Undecided
     Assignee: Chengen Du (chengendu)
         Status: In Progress

** Affects: cryptsetup (Ubuntu Mantic)
     Importance: Undecided
     Assignee: Chengen Du (chengendu)
         Status: In Progress

** Affects: cryptsetup (Ubuntu Noble)
     Importance: Undecided
     Assignee: Chengen Du (chengendu)
         Status: In Progress


** Tags: patch
-- 
Refine proc mounts entries traversal
https://bugs.launchpad.net/bugs/2054390
You received this bug notification because you are a member of Ubuntu Sponsors, which is subscribed to the bug report.



More information about the Ubuntu-sponsors mailing list