mirror of
https://github.com/bin456789/reinstall.git
synced 2025-01-31 19:08:07 +08:00
windows: 使用 ntfs3
This commit is contained in:
parent
7075157217
commit
55742d5187
10
trans.sh
10
trans.sh
@ -279,8 +279,9 @@ disk_2t=$((2 * 1024 * 1024 * 1024 * 1024))
|
|||||||
# xda*1 星号用于 nvme0n1p1 的字母 p
|
# xda*1 星号用于 nvme0n1p1 的字母 p
|
||||||
if [ "$distro" = windows ]; then
|
if [ "$distro" = windows ]; then
|
||||||
add_community_repo
|
add_community_repo
|
||||||
apk add ntfs-3g ntfs-3g-progs fuse3 virt-what wimlib rsync dos2unix
|
apk add ntfs-3g-progs fuse3 virt-what wimlib rsync dos2unix
|
||||||
modprobe fuse
|
# 虽然ntfs3不需要fuse,但wimmount需要,所以还是要保留
|
||||||
|
modprobe fuse ntfs3
|
||||||
if is_efi; then
|
if is_efi; then
|
||||||
# efi
|
# efi
|
||||||
apk add dosfstools
|
apk add dosfstools
|
||||||
@ -362,7 +363,10 @@ if is_efi; then
|
|||||||
mount /dev/disk/by-label/efi /os/boot/efi
|
mount /dev/disk/by-label/efi /os/boot/efi
|
||||||
fi
|
fi
|
||||||
mkdir -p /os/installer
|
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
|
# shellcheck disable=SC2154
|
||||||
if [ "$distro" = "windows" ]; then
|
if [ "$distro" = "windows" ]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user