Comment 0 for bug 2054390

Revision history for this message
Chengen Du (chengendu) wrote :

[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 "sh /usr/share/initramfs-tools/hooks/cryptroot" command
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.