From 57da052692fa3176c5aee4dcf15483abd8bd28a1 Mon Sep 17 00:00:00 2001 From: Timothy Redaelli Date: Sat, 27 Jun 2015 01:00:57 +0200 Subject: [PATCH] Sometimes umount can returns error, just ignore it. --- vps2arch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vps2arch b/vps2arch index a905ecd..2b6941c 100755 --- a/vps2arch +++ b/vps2arch @@ -103,7 +103,7 @@ restore_root_pass() { cleanup() { mv "/root.$cpu_type/etc/fstab" "/etc/fstab" - awk "/\/root.$cpu_type/ {print \$2}" /proc/mounts | sort -r | xargs umount -nl + awk "/\/root.$cpu_type/ {print \$2}" /proc/mounts | sort -r | xargs umount -nl || true rm -rf "/root.$cpu_type/" }