-
Notifications
You must be signed in to change notification settings - Fork 562
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
install: lazy unmount() in writeFilesystemContent() if needed (#12939)
* install: lazy unmount() in writeFilesystemContent() if needed The existing code in writeFilesystemContent() will error when the filesystem cannot be unmounted. However in practise this is problematic as the live-system can keep the mount point busy: https://bugs.launchpad.net/snapd/+bug/2025402 As a pragmatic solution this commit unmounts the filesystem with the `--lazy` option if a normal unmount does not work. This is what live-editor is doing: mwhudson/livefs-editor#26 Alternatively we could do a bunch of retries and wait for the process that keep the filesystem busy to go away. * install: log unmount errors (thanks to Alfonso!) * install: also lazy unmount in MountVolumes() * install: fix silly typo * install: improve logging on install failure
- Loading branch information
Showing
3 changed files
with
96 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters