Replacing Rust-based stat with GNU stat in the following 2 scripts
solves the problem.  SSH connects instantly regardless of the number and
availability of automounts.

sudo chmod +x /etc/update-motd.d/*

sudo sed -i 's|lastrun=$(stat -c %Y "$stamp")|lastrun=$(/usr/bin/gnustat
-c %Y "$stamp")|' /usr/lib/ubuntu-release-upgrader/release-upgrade-motd

sudo sed -i 's|stampt=$(stat -c %Y $stamp)|stampt=$(/usr/bin/gnustat -c
%Y $stamp)|' /usr/lib/update-notifier/update-motd-fsck-at-reboot

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2130843

Title:
  SSH sessions blocked on unavailable automounts by default in Ubuntu
  25.10

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/base-files/+bug/2130843/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to