mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-18 23:12:59 +02:00
extrahd: Do not try to umount if nothing is mounted
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
@@ -80,6 +80,11 @@ extrahd_umount() {
|
||||
continue
|
||||
fi
|
||||
|
||||
# Do not try to umount if nothing is mounted
|
||||
if ! mountpoint "${mountpoint}" &>/dev/null; then
|
||||
continue
|
||||
fi
|
||||
|
||||
# Umount and try lazy umount if failed
|
||||
if umount --quiet --recursive "${mountpoint}" || \
|
||||
umount --quiet --recursive --lazy "${mountpoint}"; then
|
||||
|
||||
Reference in New Issue
Block a user