File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed
src/slash-bedrock/share/systemd Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ Description=Shutdown Bedrock Linux FUSE filesystems.
77[Service]
88RemainAfterExit =yes
99ExecStart =-/bedrock/libexec/busybox true
10- ExecStop =-/bedrock/libexec/busybox sh -c ' /bedrock/libexec/busybox umount -l /etc /bedrock/strata/*/etc /bedrock/cross /bedrock/strata/*/bedrock/cross'
10+ ExecStop =-/bedrock/libexec/busybox sh /bedrock/share/systemd/stop-fuse-filesystems.sh
1111
1212[Install]
1313WantedBy =multi-user.target
Original file line number Diff line number Diff line change 1+ #! /bedrock/libexec/busybox sh
2+ #
3+ # Some systemd version circa systemd 237 in 2018 was found to have difficulty
4+ # unmounting FUSE filesystems which resulted in shutdown delays. Bedrock
5+ # worked around this with a unit file that assists in unmounting Bedrock's FUSE
6+ # filesytems.
7+ #
8+ # Some systemd version circa systemd 247 in 2020 was found to have improved the
9+ # FUSE filesystem handling, but changed something which resulted in Bedrock's
10+ # FUSE assistance causing a shutdown delay.
11+ #
12+ # Thus, we only want to assist unmounting for pre-247 systemd versions.
13+
14+ if command -v systemctl > /dev/null 2>&1 && [ " $( systemctl --version | awk ' {print$2;exit}' ) " -lt 247 ]; then
15+ umount -l /etc /bedrock/strata/* /etc /bedrock/cross /bedrock/strata/* /bedrock/cross
16+ fi
You can’t perform that action at this time.
0 commit comments