Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hang on login caused by 'df' #359

Open
gcorrall opened this issue Jun 4, 2024 · 0 comments
Open

Hang on login caused by 'df' #359

gcorrall opened this issue Jun 4, 2024 · 0 comments

Comments

@gcorrall
Copy link

gcorrall commented Jun 4, 2024

In debian/patches/04_language_handling.patch, a 'df' is run, to check if lightdm is running in a 'live session':

if (system ("df | grep -q ^/cow") != 0)
    session_set_env (session, "LANGUAGE", language);

(from this commit: 'Only set LANGUAGE if not in a live session'; 3b11df7).

This can cause lightdm to hang when the 'df' hangs - such as when an NFS mount becomes unresponsive. I have encountered this on a machine where remote SSH users had mounted an NFS share, which later became stuck, and I was unable to login via lightdm.

Perhaps some other way of checking for the mount could be used ( grep -q "^/cow / " /proc/mounts ? ), or a timeout could be added to the 'df':

timeout 5 df | grep -q ^/cow

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant