windows: 使用 ntfs3

This commit is contained in:
bin456789 2023-07-15 01:47:16 +08:00
parent 7075157217
commit 55742d5187
No known key found for this signature in database
GPG Key ID: EE301B386DE6C11B

View File

@ -279,8 +279,9 @@ disk_2t=$((2 * 1024 * 1024 * 1024 * 1024))
# xda*1 星号用于 nvme0n1p1 的字母 p
if [ "$distro" = windows ]; then
add_community_repo
apk add ntfs-3g ntfs-3g-progs fuse3 virt-what wimlib rsync dos2unix
modprobe fuse
apk add ntfs-3g-progs fuse3 virt-what wimlib rsync dos2unix
# 虽然ntfs3不需要fuse但wimmount需要所以还是要保留
modprobe fuse ntfs3
if is_efi; then
# efi
apk add dosfstools
@ -362,7 +363,10 @@ if is_efi; then
mount /dev/disk/by-label/efi /os/boot/efi
fi
mkdir -p /os/installer
mount /dev/disk/by-label/installer /os/installer
if [ "$distro" = windows ]; then
mount_args="-t ntfs3"
fi
mount $mount_args /dev/disk/by-label/installer /os/installer
# shellcheck disable=SC2154
if [ "$distro" = "windows" ]; then