reinstall
reinstall copied to clipboard
物理机重装,重启后无重装选项
原系统:Debian12 要安装的系统:Almalinux 9 遇到的问题: 在物理机用脚本重装,重启后无重装的启动项。
Installing package 'curl'...
Hit:1 http://mirrors.ustc.edu.cn/debian bookworm InRelease
Hit:2 http://mirrors.ustc.edu.cn/debian bookworm-updates InRelease
Hit:3 http://security.debian.org/debian-security bookworm-security InRelease
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
libcurl4
The following NEW packages will be installed:
curl libcurl4
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 707 kB of archives.
After this operation, 1361 kB of additional disk space will be used.
Get:1 http://mirrors.ustc.edu.cn/debian bookworm/main amd64 libcurl4 amd64 7.88.1-10+deb12u12 [391 kB]
Get:2 http://mirrors.ustc.edu.cn/debian bookworm/main amd64 curl amd64 7.88.1-10+deb12u12 [315 kB]
Fetched 707 kB in 0s (2393 kB/s)
Selecting previously unselected package libcurl4:amd64.
(Reading database ... 33673 files and directories currently installed.)
Preparing to unpack .../libcurl4_7.88.1-10+deb12u12_amd64.deb ...
Unpacking libcurl4:amd64 (7.88.1-10+deb12u12) ...
Selecting previously unselected package curl.
Preparing to unpack .../curl_7.88.1-10+deb12u12_amd64.deb ...
Unpacking curl (7.88.1-10+deb12u12) ...
Setting up libcurl4:amd64 (7.88.1-10+deb12u12) ...
Setting up curl (7.88.1-10+deb12u12) ...
Processing triggers for man-db (2.11.2-2) ...
Processing triggers for libc-bin (2.36-9+deb12u10) ...
http://www.qualcomm.cn/cdn-cgi/trace
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 190 0 190 0 0 3060 0 --:--:-- --:--:-- --:--:-- 3114
Location: CN
***** SET FINALOS ALMALINUX 10 *****
***** TEST URL *****
https://mirror.nju.edu.cn/almalinux/10/cloud/x86_64/images/AlmaLinux-10-GenericCloud-latest.x86_64.qcow2
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1024k 100 1024k 0 0 2076k 0 --:--:-- --:--:-- --:--:-- 2072k
File type: qemu
***** SET NEXTOS ALPINE 3.22 *****
none
Installing package 'virt-what'...
Reading package lists...
Building dependency tree...
Reading state information...
The following NEW packages will be installed:
virt-what
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 15.0 kB of archives.
After this operation, 50.2 kB of additional disk space will be used.
Get:1 http://mirrors.ustc.edu.cn/debian bookworm/main amd64 virt-what amd64 1.25-1 [15.0 kB]
Fetched 15.0 kB in 0s (136 kB/s)
Selecting previously unselected package virt-what.
(Reading database ... 33686 files and directories currently installed.)
Preparing to unpack .../virt-what_1.25-1_amd64.deb ...
Unpacking virt-what (1.25-1) ...
Setting up virt-what (1.25-1) ...
Processing triggers for man-db (2.11.2-2) ...
VM: false
***** DOWNLOAD VMLNUZ AND INITRD *****
http://mirror.nju.edu.cn/alpine/v3.22/releases/x86_64/netboot/vmlinuz-lts
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 12.5M 100 12.5M 0 0 21.2M 0 --:--:-- --:--:-- --:--:-- 21.2M
http://mirror.nju.edu.cn/alpine/v3.22/releases/x86_64/netboot/initramfs-lts
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 25.6M 100 25.6M 0 0 27.4M 0 --:--:-- --:--:-- --:--:-- 27.4M
***** MOD ALPINE INITRD *****
152498 blocks
https://cnb.cool/bin456789/reinstall/-/git/raw/main/trans.sh
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 230k 0 230k 0 0 1239k 0 --:--:-- --:--:-- --:--:-- 1241k
https://cnb.cool/bin456789/reinstall/-/git/raw/main/initrd-network.sh
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 16290 0 16290 0 0 144k 0 --:--:-- --:--:-- --:--:-- 144k
http://mirror.nju.edu.cn/alpine/v3.22/main/x86_64/
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1286k 0 1286k 0 0 3467k 0 --:--:-- --:--:-- --:--:-- 3477k
http://mirror.nju.edu.cn/alpine/v3.22/main/x86_64/dhcpcd-10.2.3-r0.apk
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 164k 100 164k 0 0 736k 0 --:--:-- --:--:-- --:--:-- 734k
***** NETWORK INFO *****
IPv4 MAC: 0c:42:a1:7e:6b:30
IPv4 Address: 192.168.11.112/24
IPv4 Gateway: 192.168.11.1
---
IPv6 MAC:
IPv6 Address:
IPv6 Gateway:
***** DOWNLOAD GRUB EFI *****
https://mirror.nju.edu.cn/fedora/releases/42/Everything/x86_64/os/EFI/BOOT/grubx64.efi
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 3943k 100 3943k 0 0 7363k 0 --:--:-- --:--:-- --:--:-- 7370k
BootNext: 0005
BootCurrent: 0004
BootOrder: 0004,0000,0001,0002,0003
Boot0000 Embedded NIC 1 Port 1 Partition 1
Boot0001* USB Placeholder
Boot0002* Virtual Floppy
Boot0003* Virtual CD/DVD
Boot0004* debian
Boot0005* reinstall (almalinux 10)
***** MAIN DISK: SDA *****
74078F71-655C-448F-B06A-1C9FE9F2DDD1
***** GRUB *****
/boot/efi/EFI/reinstall/grub.cfg
set timeout_style=menu
set timeout=5
menuentry "reinstall (almalinux 10)" --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.22/main modloop=http://mirror.nju.edu.cn/alpine/v3.22/releases/x86_64/netboot/modloop-lts console=ttyS0,115200n8 console=tty0 finalos_distro=almalinux finalos_img='https://mirror.nju.edu.cn/almalinux/10/cloud/x86_64/images/AlmaLinux-10-GenericCloud-latest.x86_64.qcow2' finalos_img_type=qemu finalos_releasever=10 extra_confhome='https://cnb.cool/bin456789/reinstall/-/git/raw/main' extra_cloud_image=1 extra_main_disk=74078F71-655C-448F-B06A-1C9FE9F2DDD1
initrd /reinstall-initrd
}
***** INFO *****
almalinux 10
Username: root
Reboot to start the installation.
http://www.qualcomm.cn/cdn-cgi/trace
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 191 0 191 0 0 8491 0 --:--:-- --:--:-- --:--:-- 8681
Location: CN
***** SET FINALOS ALMALINUX 9 *****
***** TEST URL *****
https://mirror.nju.edu.cn/almalinux/9/cloud/x86_64/images/AlmaLinux-9-GenericCloud-latest.x86_64.qcow2
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1024k 100 1024k 0 0 1636k 0 --:--:-- --:--:-- --:--:-- 1635k
File type: qemu
***** SET NEXTOS ALPINE 3.22 *****
none
VM: false
***** DOWNLOAD VMLNUZ AND INITRD *****
http://mirror.nju.edu.cn/alpine/v3.22/releases/x86_64/netboot/vmlinuz-lts
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 12.5M 100 12.5M 0 0 21.3M 0 --:--:-- --:--:-- --:--:-- 21.3M
http://mirror.nju.edu.cn/alpine/v3.22/releases/x86_64/netboot/initramfs-lts
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 25.6M 100 25.6M 0 0 30.5M 0 --:--:-- --:--:-- --:--:-- 30.5M
***** MOD ALPINE INITRD *****
152498 blocks
https://cnb.cool/bin456789/reinstall/-/git/raw/main/trans.sh
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 230k 0 230k 0 0 1124k 0 --:--:-- --:--:-- --:--:-- 1121k
https://cnb.cool/bin456789/reinstall/-/git/raw/main/initrd-network.sh
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 16290 0 16290 0 0 118k 0 --:--:-- --:--:-- --:--:-- 119k
http://mirror.nju.edu.cn/alpine/v3.22/main/x86_64/
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1286k 0 1286k 0 0 3276k 0 --:--:-- --:--:-- --:--:-- 3281k
http://mirror.nju.edu.cn/alpine/v3.22/main/x86_64/dhcpcd-10.2.3-r0.apk
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 164k 100 164k 0 0 714k 0 --:--:-- --:--:-- --:--:-- 715k
***** NETWORK INFO *****
IPv4 MAC: 0c:42:a1:7e:6b:30
IPv4 Address: 192.168.11.112/24
IPv4 Gateway: 192.168.11.1
---
IPv6 MAC:
IPv6 Address:
IPv6 Gateway:
***** DOWNLOAD GRUB EFI *****
https://mirror.nju.edu.cn/fedora/releases/42/Everything/x86_64/os/EFI/BOOT/grubx64.efi
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 3943k 100 3943k 0 0 8408k 0 --:--:-- --:--:-- --:--:-- 8425k
BootNext: 0005
BootCurrent: 0004
BootOrder: 0004,0000,0001,0002,0003
Boot0000 Embedded NIC 1 Port 1 Partition 1
Boot0001* USB Placeholder
Boot0002* Virtual Floppy
Boot0003* Virtual CD/DVD
Boot0004* debian
Boot0005* reinstall (almalinux 9)
***** MAIN DISK: SDA *****
74078F71-655C-448F-B06A-1C9FE9F2DDD1
***** GRUB *****
/boot/efi/EFI/reinstall/grub.cfg
set timeout_style=menu
set timeout=5
menuentry "reinstall (almalinux 9)" --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.22/main modloop=http://mirror.nju.edu.cn/alpine/v3.22/releases/x86_64/netboot/modloop-lts console=ttyS0,115200n8 console=tty0 finalos_distro=almalinux finalos_img='https://mirror.nju.edu.cn/almalinux/9/cloud/x86_64/images/AlmaLinux-9-GenericCloud-latest.x86_64.qcow2' finalos_img_type=qemu finalos_releasever=9 extra_confhome='https://cnb.cool/bin456789/reinstall/-/git/raw/main' extra_cloud_image=1 extra_main_disk=74078F71-655C-448F-B06A-1C9FE9F2DDD1
initrd /reinstall-initrd
}
***** INFO *****
almalinux 9
Username: root
Reboot to start the installation.
启动菜单截图:
如果不行,脚本也没办法,物理机不建议用脚本