Sometimes umount can returns error, just ignore it.
This commit is contained in:
parent
89b96e213b
commit
57da052692
1 changed files with 1 additions and 1 deletions
2
vps2arch
2
vps2arch
|
@ -103,7 +103,7 @@ restore_root_pass() {
|
||||||
|
|
||||||
cleanup() {
|
cleanup() {
|
||||||
mv "/root.$cpu_type/etc/fstab" "/etc/fstab"
|
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/"
|
rm -rf "/root.$cpu_type/"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue