本帖最后由 ShqBql 于 2024-10-29 20:45 编辑
用的https://github.com/bin456789/reinstall 如下写法不对吗?
- bash reinstall.sh windows
- –image-name ‘Windows 10 Enterprise LTSC 2021’
- –iso ‘https://drive.massgrave.dev/zh-cn_windows_10_enterprise_ltsc_2021_x64_dvd_033b7312.iso’
复制代码
以下为输出,貌似正常没报错啊。
- root@vm:~# bash reinstall.sh windows
- –image-name ‘Windows 10 Enterprise LTSC 2021’
- –iso ‘https://drive.massgrave.dev/zh-cn_windows_10_enterprise_ltsc_2021_x64_dvd_033b7312.iso’
- Password [123@@@]:
- Retype password [123@@@]:
- http://dash.cloudflare.com/cdn-cgi/trace
- % Total % Received % Xferd Average Speed Time Time Time Current
- Dload Upload Total Spent Left Speed
- 100 202 0 202 0 0 197 0 –:–:– 0:00:01 –:–:– 197
- ***** SET FINALOS WINDOWS *****
- ***** TEST URL *****
- https://drive.massgrave.dev/zh-cn_windows_10_enterprise_ltsc_2021_x64_dvd_033b7312.iso
- % Total % Received % Xferd Average Speed Time Time Time Current
- Dload Upload Total Spent Left Speed
- 100 1024k 100 1024k 0 0 509k 0 0:00:02 0:00:02 –:–:– 509k
- File type: iso
- ***** SET NEXTOS ALPINE 3.20 *****
- kvm
- VM: true
- ***** DOWNLOAD VMLNUZ AND INITRD *****
- http://mirror.nju.edu.cn/alpine/v3.20/releases/x86_64/netboot/vmlinuz-virt
- % Total % Received % Xferd Average Speed Time Time Time Current
- Dload Upload Total Spent Left Speed
- 100 10.3M 100 10.3M 0 0 41.2M 0 –:–:– –:–:– –:–:– 41.2M
- http://mirror.nju.edu.cn/alpine/v3.20/releases/x86_64/netboot/initramfs-virt
- % Total % Received % Xferd Average Speed Time Time Time Current
- Dload Upload Total Spent Left Speed
- 100 8640k 100 8640k 0 0 43.0M 0 –:–:– –:–:– –:–:– 43.0M
- ***** MOD ALPINE INITRD *****
- 52864 blocks
- https://www.ghproxy.cc/https://raw.githubusercontent.com/bin456789/reinstall/main/trans.sh
- % Total % Received % Xferd Average Speed Time Time Time Current
- Dload Upload Total Spent Left Speed
- 100 157k 0 157k 0 0 59947 0 –:–:– 0:00:02 –:–:– 59947
- https://www.ghproxy.cc/https://raw.githubusercontent.com/bin456789/reinstall/main/alpine-network.sh
- % Total % Received % Xferd Average Speed Time Time Time Current
- Dload Upload Total Spent Left Speed
- 100 11317 0 11317 0 0 17121 0 –:–:– –:–:– –:–:– 17095
- ***** NETWORK INFO *****
- IPv4 MAC: fa:16:3a:78:39:ce
- IPv4 Address: 10.0.0.162/24
- IPv4 Gateway: 10.0.0.1
- —
- IPv6 MAC:
- IPv6 Address:
- IPv6 Gateway:
-
- 27M .
- 20M .
- ***** MAIN DISK: VDA *****
- cdf8af29
- Generating grub configuration file …
- Found linux image: /boot/vmlinuz-5.10.0-26-amd64
- Found initrd image: /boot/initrd.img-5.10.0-26-amd64
- Warning: os-prober will be executed to detect other bootable partitions.
- Its output will be used to detect bootable binaries on them and create new boot entries.
- done
- ***** GRUB *****
- /boot/grub/custom.cfg
- set timeout_style=menu
- set timeout=5
- menuentry "reinstall (windows)" –unrestricted {
- insmod lvm
- insmod all_video
- search –no-floppy –file –set=root /reinstall-vmlinuz
- linux /reinstall-vmlinuz alpine_repo=http://mirror.nju.edu.cn/alpine/v3.20/main modloop=http://mirror.nju.edu.cn/alpine/v3.20/releases/x86_64/netboot/modloop-virt console=ttyS0,115200n8 console=tty0 finalos_distro=windows finalos_image_name=’windows 10 enterprise ltsc 2021′ finalos_iso=’https://drive.massgrave.dev/zh-cn_windows_10_enterprise_ltsc_2021_x64_dvd_033b7312.iso’ extra_confhome=’https://www.ghproxy.cc/https://raw.githubusercontent.com/bin456789/reinstall/main’ extra_main_disk=cdf9af29
- initrd /reinstall-initrd
- }
- ***** INFO *****
- windows
- Username: administrator
- Password: 123@@@
- Reboot to start the installation.
复制代码
|