From d02d58b67ab37b8a1ae02705dda724eaf15252f5 Mon Sep 17 00:00:00 2001 From: cxykevin Date: Wed, 14 Feb 2024 12:34:19 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=85=85linux=E6=94=AF=E6=8C=81?= =?UTF-8?q?=EF=BC=88=E6=9C=AA=E6=B5=8B=E8=AF=95=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- installer/install.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/installer/install.py b/installer/install.py index aefe782..65c1362 100644 --- a/installer/install.py +++ b/installer/install.py @@ -22,6 +22,8 @@ def find_disk(): ventoy_drives = [] if platform.system() == 'Linux': mount_point = "/mnt/prinjector_mount_point" + print( + "Warning: Linux support is developing.Please umount {mount_point}") if not os.path.exists(mount_point): os.mkdir(mount_point) elif len(os.listdir(mount_point)): @@ -32,7 +34,8 @@ def find_disk(): j: int = 1 this_disk = f"/dev/sd{chr(i)}{str(j)}" while os.path.exists(this_disk): - os.system(f"mount /dev/sd{chr(i)}{str(j)} {mount_point}") + os.system( + f"mount /dev/sd{chr(i)}{str(j)} {mount_point} --mkdir") if os.path.exists(mount_point+"/ventoy/ventoy.json"): return mount_point j += 1 @@ -46,7 +49,7 @@ def find_disk(): k: int = 1 while os.path.exists(f"/dev/nvme{str(i)}n{str(j)}p{str(k)}"): os.system( - f"mount /dev/nvme{str(i)}n{str(j)}p{str(k)} {mount_point}") + f"mount /dev/nvme{str(i)}n{str(j)}p{str(k)} {mount_point} --mkdir") if os.path.exists(mount_point+"/ventoy/ventoy.json"): return mount_point k += 1