mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-02-02 09:47:03 +03:00
core/mount: mount command may fail after adding the corresponding proc mountinfo entry
Hopefully fixes #17617. (cherry picked from commit 2fa0bd7d57863dffda89190a70a83c51bd7d114a)
This commit is contained in:
parent
c3064038b4
commit
28ce943169
@ -1952,6 +1952,15 @@ static int mount_process_proc_self_mountinfo(Manager *m) {
|
||||
mount_enter_dead(mount, MOUNT_SUCCESS);
|
||||
break;
|
||||
|
||||
case MOUNT_MOUNTING_DONE:
|
||||
/* The mount command may add the corresponding proc mountinfo entry and
|
||||
* then remove it because of an internal error. E.g., fuse.sshfs seems
|
||||
* to do that when the connection fails. See #17617. To handle such the
|
||||
* case, let's once set the state back to mounting. Then, the unit can
|
||||
* correctly enter the failed state later in mount_sigchld(). */
|
||||
mount_set_state(mount, MOUNT_MOUNTING);
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user