Sometimes umount can returns error, just ignore it.

This commit is contained in:
Timothy Redaelli 2015-06-27 01:00:57 +02:00
parent 89b96e213b
commit 57da052692

View file

@ -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/"
}