bin456789 / bin456789/reinstall
机器安装时错误。VNC提示file/reinstall-vmlinuz not found
- Dominant language
- Shell
- Stars
- 13.3k
- Forks
- 2.1k
- Avg merge
- 9h 19m
- Merged PRs (30d)
- 1
Description
原来的系统:Ubuntu-22.04
要安装的系统:ubuntu 24.04
遇到的问题:截图或者登录 SSH 获取日志 /reinstall.log
root@ser387010247550:~# bash reinstall.sh ubuntu-24.04
***** PROMPT PASSWORD *****
Password [123@@@]:
Retype password [123@@@]:
http://www.qualcomm.cn/cdn-cgi/trace
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 194 0 194 0 0 401 0 --:--:-- --:--:-- --:--:-- 400
Location: US
***** SET FINALOS UBUNTU 24.04 *****
***** TEST URL *****
https://cloud-images.ubuntu.com/releases/noble/release/ubuntu-24.04-server-cloudimg-amd64.img
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1024k 100 1024k 0 0 368k 0 0:00:02 0:00:02 --:--:-- 368k
File type: qemu
***** SET NEXTOS ALPINE 3.22 *****
microsoft
VM: true
***** DOWNLOAD VMLNUZ AND INITRD *****
http://dl-cdn.alpinelinux.org/alpine/v3.22/releases/x86_64/netboot/vmlinuz-virt
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 11.0M 100 11.0M 0 0 1638k 0 0:00:06 0:00:06 --:--:-- 2313k
http://dl-cdn.alpinelinux.org/alpine/v3.22/releases/x86_64/netboot/initramfs-virt
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 8910k 100 8910k 0 0 3428k 0 0:00:02 0:00:02 --:--:-- 3429k
***** MOD ALPINE INITRD *****
54681 blocks
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 230k 100 230k 0 0 209k 0 0:00:01 0:00:01 --:--:-- 209k
https://raw.githubusercontent.com/bin456789/reinstall/main/initrd-network.sh
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 16290 100 16290 0 0 24341 0 --:--:-- --:--:-- --:--:-- 24313
https://dl-cdn.alpinelinux.org/alpine/v3.22/main/x86_64/
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 663k 0 663k 0 0 505k 0 --:--:-- 0:00:01 --:--:-- 506k
https://dl-cdn.alpinelinux.org/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 187k 0 --:--:-- --:--:-- --:--:-- 186k
***** NETWORK INFO *****
IPv4 MAC: 00:50:56:5b:ea:6b
IPv4 Address: 192.168.34.57/16
IPv4 Gateway: 192.168.31.1
---
IPv6 MAC:
IPv6 Address:
IPv6 Gateway:
***** SLIM INITRD *****
29M .
25M .
***** MAIN DISK: SDA *****
53A07232-44C3-4C78-950A-62DFD2D929D4
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.15.0-43-generic
Found initrd image: /boot/initrd.img-5.15.0-43-generic
Warning: os-prober will not be executed to detect other bootable partitions.
Systems on them will not be added to the GRUB boot configuration.
Check GRUB_DISABLE_OS_PROBER documentation entry.
done
***** GRUB *****
/boot/grub/custom.cfg
set timeout_style=menu
set timeout=5
menuentry "reinstall (ubuntu 24.04)" --unrestricted {
insmod lvm
insmod all_video
search --no-floppy --file --set=root /reinstall-vmlinuz
linux /reinstall-vmlinuz alpine_repo=http://dl-cdn.alpinelinux.org/alpine/v3.22/main modloop=http://dl-cdn.alpinelinux.org/alpine/v3.22/releases/x86_64/netboot/modloop-virt console=ttyS0,115200n8 console=tty0 finalos_distro=ubuntu finalos_img='https://cloud-images.ubuntu.com/releases/noble/release/ubuntu-24.04-server-cloudimg-amd64.img' finalos_img_type=qemu finalos_releasever=24.04 extra_confhome='https://raw.githubusercontent.com/bin456789/reinstall/main' extra_cloud_image=1 extra_main_disk=53A07232-44C3-4C78-950A-62DFD2D929D4
initrd /reinstall-initrd
}
***** INFO *****
ubuntu 24.04
Username: root
Password:
Reboot to start the installation.
root@ser387010247550:~# reboot

很奇怪,按照报错信息,他说有其他可启动的分区,但查看VNC的时候发现只有Ubuntu和Reinstall脚本。

Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the /reinstall.log output and the generated /boot/grub/custom.cfg entry after running reinstall.sh ubuntu-24.04. Reproduce the reboot on Ubuntu 22.04 with the shown cloud image and inspect why /reinstall-vmlinuz is not found; done means the reinstall entry boots successfully or the failure is clearly diagnosed.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- linux, shell
- Domain
- operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100