Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

今天7.16.2升级7.17后,直接无法启动了,见鬼了 #78

Open
xd19861224 opened this issue Jan 19, 2025 · 4 comments
Open

今天7.16.2升级7.17后,直接无法启动了,见鬼了 #78

xd19861224 opened this issue Jan 19, 2025 · 4 comments

Comments

@xd19861224
Copy link

今天7.16.2升级7.17后,直接无法启动了,见鬼了

@xd19861224
Copy link
Author

手动升级出现的问题,望告知原因?也给其他网友一个告诫,谨慎升级

@elseif
Copy link
Owner

elseif commented Jan 19, 2025

改UEFI启动,如果是BIOS启动,需要mount上,重新install一下extlinux,参考脚本
sudo extlinux --install -H 64 -S 32 ./img/boot/BOOT
echo -e "default system\nlabel system\n\tkernel /EFI/BOOT/BOOTX64.EFI\n\tappend load_ramdisk=1 root=/dev/ram0 quiet" > syslinux.cfg
sudo cp syslinux.cfg ./img/boot/BOOT/

@elseif
Copy link
Owner

elseif commented Jan 19, 2025

因为原版的chr镜像是不支持UEFI,boot分区是ext格式的,重新打包的chr镜像把boot分区改成了fat格式,支持了UEFI启动,但是会导致原来BIOS引导的代码无效,因此增加了extlinux引导bios启动,但是更新的时候又会将引导代码格式化为ext分区的引导代码,而boot分区已经是fat格式,所以会导致无法启动。
所以用UEFI启动理论上不会有问题,如果是BIOS引导,则更新后无法启动需要重新install extlinux引导。

@elseif
Copy link
Owner

elseif commented Jan 19, 2025

更新了脚本,生成了legacy-bios版本的chr镜像,引导方式和原始的chr相同,仅支持bios引导。同时生成了支持uefi引导的chr镜像,仅支持uefi引导,不支持bios引导。二选一。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants