From d9e2231a508fb8485bbb1a203e159a18bfc69d2f Mon Sep 17 00:00:00 2001 From: bin456789 Date: Sun, 9 Feb 2025 00:10:14 +0800 Subject: [PATCH] =?UTF-8?q?opensuse:=20=E4=BF=AE=E5=A4=8D=E6=B2=A1?= =?UTF-8?q?=E6=9C=89=E5=88=9B=E5=BB=BA=20swapfile=20=E6=97=B6=20swapoff=20?= =?UTF-8?q?=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- trans.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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