From 2bd63ac7ea8eb68983f20e854bfbe8f4c4f9bb67 Mon Sep 17 00:00:00 2001 From: bin456789 Date: Sun, 9 Feb 2025 00:10:14 +0800 Subject: [PATCH] =?UTF-8?q?core:=20=E4=BF=AE=E5=A4=8D=E6=9C=89=E6=97=B6=20?= =?UTF-8?q?rm=20=E6=8A=A5=E9=94=99=20Directory=20not=20empty?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- trans.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/trans.sh b/trans.sh index e13b802..d886c1f 100644 --- a/trans.sh +++ b/trans.sh @@ -205,7 +205,8 @@ update_part() { # 因此要先停止 mdev 服务 # 还要删除 /dev/$xda*? ensure_service_stopped mdev - rm -rf /dev/disk/* + # 即使停止了 mdev,有时也会报 Directory not empty,因此添加 retry + retry 5 rm -rf /dev/disk/* # 没挂载 modloop 时会提示 # modprobe: can't change directory to '/lib/modules': No such file or directory