]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
udev-extraconf: Add collect flag to mount
authorColin McAllister <colinmca242@gmail.com>
Fri, 6 Sep 2024 15:21:56 +0000 (10:21 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 10 Sep 2024 12:04:43 +0000 (13:04 +0100)
commitf0cda74d73eb8c14cd6f695f514108f1e94984a6
treeb22c3af76267da2fb5e0094716bb8df4b56818a9
parentb8c1f999038b7cd6fc2e80ed215541c8a4d9e19f
udev-extraconf: Add collect flag to mount

Adds extra "--collect" flag to the mount command within
automount_systemd. This is intended to fix an observed deadlock after
rapidly inserting and removing external media. This is because if the
mount command fails, the transient mount will enter a failed state. The
next time the media is inserted, automount_systemd bails because the
first consition finds that the file path for the failed transient mount
still exists. This leaves the external media unmounted and cannot be
mounted until the mount is fixed via systemctl or the device is
rebooted.

Adding "--collect" ensures that the transient mount is cleaned up after
entering a failed state, which ensures that the media can still be
mounted when it's re-inserted.

Signed-off-by: Colin McAllister <colinmca242@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/udev/udev-extraconf/mount.sh