From 3fcbc8fd7556ed2bbeaa72b3784917f232fa5413 Mon Sep 17 00:00:00 2001 From: bin456789 Date: Wed, 1 Jan 2025 17:38:33 +0800 Subject: [PATCH] =?UTF-8?q?core:=20=E9=98=BB=E6=AD=A2=E5=9C=A8=20Live=20OS?= =?UTF-8?q?=20=E4=B8=8B=E8=BF=90=E8=A1=8C=20reinstall.sh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- reinstall.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/reinstall.sh b/reinstall.sh index 161b058..722fcb4 100644 --- a/reinstall.sh +++ b/reinstall.sh @@ -3375,6 +3375,10 @@ remove_useless_initrd_files() { } # 脚本入口 +if mount | grep -q 'tmpfs on / type tmpfs'; then + error_and_exit "Can't run this script in Live OS." +fi + if is_in_windows; then # win系统盘 c=$(echo $SYSTEMDRIVE | cut -c1)