陈晓猫

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: :: 管理 ::

希望openkylin和银河麒麟支持直接硬盘启动liveCD安装

debian和ubuntu一直都支持直接用grub2/grub4dos从硬盘引导linux.iso整体启动,引导参数findisoiso-scan/filename,这么多年了,银河麒麟的init一直不能直接从硬盘引导安装,希望改进!
#grub2:
menuentry "/linux2/debian/debian-live-11.7.0-amd64-xfce+nonfree.iso" "/linux2/debian/debian-live-11.7.0-amd64-xfce+nonfree.iso" {
set gfxpayload=keep
search --no-floppy --set --file $2
loopback loop $2
linux (loop)/live/vmlinuz-5.10.0-22-amd64 boot=live findiso=/linux2/debian/debian-live-11.7.0-amd64-xfce+nonfree.iso components locales=zh_CN.UTF-8 locale=zh_CN.UTF-8 timezone=Asia/Shanghai localtime=Asia/Shanghai
initrd (loop)/live/initrd.img-5.10.0-22-amd64
}


#grub2:
menuentry "/linux/ubuntu/ubuntu-20.10-desktop-amd64.iso" "/linux/ubuntu/ubuntu-20.10-desktop-amd64.iso" {
set gfxpayload=keep
search --no-floppy --set --file $2
loopback loop $2
linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=/linux/ubuntu/ubuntu-20.10-desktop-amd64.iso noprompt noeject
initrd (loop)/casper/initrd
}

 
#grub4dos:
title /linux1/debian/debian-live-11.2.0-i386-xfce.iso

find --ignore-floppies --ignore-cd --set-root /linux1/debian/debian-live-11.2.0-i386-xfce.iso
map /linux1/debian/debian-live-11.2.0-i386-xfce.iso (hd32)
map --hook
kernel (hd32)/live/vmlinuz-5.10.0-10-686 boot=live findiso=/linux1/debian/debian-live-11.2.0-i386-xfce.iso components locales=zh_CN.UTF-8 locale=zh_CN.UTF-8 timezone=Asia/Shanghai localtime=Asia/Shanghai
initrd (hd32)/live/initrd.img-5.10.0-10-686

 

#grub4dos:

title /linux/ubuntu/ubuntu-20.10-desktop-amd64.iso
find --ignore-floppies --ignore-cd --set-root /linux/ubuntu/ubuntu-20.10-desktop-amd64.iso
map /linux/ubuntu/ubuntu-20.10-desktop-amd64.iso (hd32)
map --hook
kernel (hd32)/casper/vmlinuz boot=casper iso-scan/filename=/linux/ubuntu/ubuntu-20.10-desktop-amd64.iso noprompt noeject
initrd (hd32)/casper/initrd

 

 

posted on 2023-06-17 22:30  陈晓猫  阅读(381)  评论(0编辑  收藏  举报