-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
systemd: only unmount FUSE for systemd pre-247
- Loading branch information
Showing
2 changed files
with
17 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bedrock/libexec/busybox sh | ||
# | ||
# Some systemd version circa systemd 237 in 2018 was found to have difficulty | ||
# unmounting FUSE filesystems which resulted in shutdown delays. Bedrock | ||
# worked around this with a unit file that assists in unmounting Bedrock's FUSE | ||
# filesytems. | ||
# | ||
# Some systemd version circa systemd 247 in 2020 was found to have improved the | ||
# FUSE filesystem handling, but changed something which resulted in Bedrock's | ||
# FUSE assistance causing a shutdown delay. | ||
# | ||
# Thus, we only want to assist unmounting for pre-247 systemd versions. | ||
|
||
if command -v systemctl >/dev/null 2>&1 && [ "$(systemctl --version | awk '{print$2;exit}')" -lt 247 ]; then | ||
umount -l /etc /bedrock/strata/*/etc /bedrock/cross /bedrock/strata/*/bedrock/cross | ||
fi |