From f0b86bd50244e6480d6ba9afe40824a5a84e2d58 Mon Sep 17 00:00:00 2001 From: simono41 Date: Thu, 10 May 2018 03:57:29 +0200 Subject: [PATCH] umount-fix --- arch-install | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch-install b/arch-install index 452e971..d205abe 100755 --- a/arch-install +++ b/arch-install @@ -54,7 +54,9 @@ function secureumount() { # custom-mounts for wort in ${mountsnaps} do - umount ${mountpoint}${wort} + if cat /proc/mounts | grep ${mountpoint}${wort} > /dev/null; then + umount ${mountpoint}${wort} + fi done umount ${mountpoint} umount /mnt/btrfs-root