umount-fix

This commit is contained in:
simono41 2018-05-10 03:57:29 +02:00
parent 3351fcbe9e
commit f0b86bd502

View file

@ -54,7 +54,9 @@ function secureumount() {
# custom-mounts # custom-mounts
for wort in ${mountsnaps} for wort in ${mountsnaps}
do do
umount ${mountpoint}${wort} if cat /proc/mounts | grep ${mountpoint}${wort} > /dev/null; then
umount ${mountpoint}${wort}
fi
done done
umount ${mountpoint} umount ${mountpoint}
umount /mnt/btrfs-root umount /mnt/btrfs-root