diff --git a/trans.sh b/trans.sh index d886c1f..78195d3 100644 --- a/trans.sh +++ b/trans.sh @@ -3030,7 +3030,9 @@ EOF fi restore_resolv_conf $os_dir - swapoff $os_dir/swapfile + + # 删除 swap + swapoff -a rm -f $os_dir/swapfile fi