umount-fix
This commit is contained in:
parent
3351fcbe9e
commit
f0b86bd502
1 changed files with 3 additions and 1 deletions
|
@ -54,7 +54,9 @@ function secureumount() {
|
||||||
# custom-mounts
|
# custom-mounts
|
||||||
for wort in ${mountsnaps}
|
for wort in ${mountsnaps}
|
||||||
do
|
do
|
||||||
|
if cat /proc/mounts | grep ${mountpoint}${wort} > /dev/null; then
|
||||||
umount ${mountpoint}${wort}
|
umount ${mountpoint}${wort}
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
umount ${mountpoint}
|
umount ${mountpoint}
|
||||||
umount /mnt/btrfs-root
|
umount /mnt/btrfs-root
|
||||||
|
|
Loading…
Reference in a new issue