kylinv4、v10、openkylin启动菜单
一、grub4dos_BIOS/UEFI启动kylin
#kylin_v4整体启动,必须连续存放
title /linux1/kylin/Kylin_v4_x64.iso-partnew[not_recommend]
find --ignore-floppies --ignore-cd --set-root /linux1/kylin/Kylin_v4_x64.iso
map /linux1/kylin/Kylin_v4_x64.iso (hd32) ;; map --hook
root | set dn= ;; set dn=%dn:~3,2% ;; if "%dn:~1,1%"=="," set dn=%dn:~0,1%
parttype (hd%dn%,3) ;; set rt=%@RetVal% ;; echo %rt%
if %rt%==0 partnew (hd%dn%,3) 0x00 /linux1/kylin/Kylin_v4_x64.iso
kernel (hd32)/casper/vmlinuz boot=casper fsck.mode=skip locale=zh_CN quiet splash audit=0 security= live
initrd (hd32)/casper/initrd.lz
#kylin_v10整体启动,必须连续存放
title /linux2/kylin/Kylin-Desktop-V10-SP1-General-Release-2303-X86_64.iso-partnew[not_recommend]
find --ignore-floppies --ignore-cd --set-root /linux2/kylin/Kylin-Desktop-V10-SP1-General-Release-2303-X86_64.iso
map /linux2/kylin/Kylin-Desktop-V10-SP1-General-Release-2303-X86_64.iso (hd32) ;; map --hook
root | set dn= ;; set dn=%dn:~3,2% ;; if "%dn:~1,1%"=="," set dn=%dn:~0,1%
parttype (hd%dn%,3) ;; set rt=%@RetVal% ;; echo %rt%
if %rt%==0 partnew (hd%dn%,3) 0x00 /linux2/kylin/Kylin-Desktop-V10-SP1-General-Release-2303-X86_64.iso
kernel (hd32)/casper/vmlinuz boot=casper locale=zh_CN audit=0 security= live --
initrd (hd32)/casper/initrd.lz
#openkylin整体启动,必须连续存放
title /linux2/openkylin/openkylin-0.9.5-x86_64.iso-partnew[not_recommend]
find --ignore-floppies --ignore-cd --set-root /linux2/openkylin/openkylin-0.9.5-x86_64.iso
map /linux2/openkylin/openkylin-0.9.5-x86_64.iso (hd32) ;; map --hook
root | set dn= ;; set dn=%dn:~3,2% ;; if "%dn:~1,1%"=="," set dn=%dn:~0,1%
parttype (hd%dn%,3) ;; set rt=%@RetVal% ;; echo %rt%
if %rt%==0 partnew (hd%dn%,3) 0x00 /linux2/openkylin/openkylin-0.9.5-x86_64.iso
kernel (hd32)/casper/vmlinuz boot=casper fsck.mode=skip locale=zh_CN quiet splash audit=0 security= live
initrd (hd32)/casper/initrd.lz
#kylin_v4解开启动,放在FAT32分区,不支持NTFS/EXFAT分区。
title /linux1/kylin/Kylin_v4_x64/casper/vmlinuz
find --ignore-floppies --ignore-cd --set-root /linux1/kylin/Kylin_v4_x64/casper/vmlinuz ;; uuid () ;; echo %?_UUID%
kernel /linux1/kylin/Kylin_v4_x64/casper/vmlinuz live-media=/dev/disk/by-uuid/%?_UUID% live-media-path=/linux1/kylin/Kylin_v4_x64/casper boot=casper locale=zh_CN quiet splash audit=0 security= live
initrd /linux1/kylin/Kylin_v4_x64/casper/initrd.lz
#kylinv10解开启动,放在FAT32分区,不支持NTFS/EXFAT分区。
title /linux1/kylin/kylin10/casper/vmlinuz
find --ignore-floppies --ignore-cd --set-root /linux1/kylin/kylin10/casper/vmlinuz ;; uuid () ;; echo %?_UUID%
kernel /linux1/kylin/kylin10/casper/vmlinuz live-media=/dev/disk/by-uuid/%?_UUID% live-media-path=/linux1/kylin/kylin10/casper boot=casper locale=zh_CN quiet splash audit=0 security= live
initrd /linux1/kylin/kylin10/casper/initrd.lz
#openkylin解开启动,放在FAT32分区,不支持NTFS/EXFAT分区。
title /linux1/kylin/openkylin-0.9.5-x86_64/casper/vmlinuz
find --ignore-floppies --ignore-cd --set-root /linux1/kylin/openkylin-0.9.5-x86_64/casper/vmlinuz
kernel /linux1/kylin/openkylin-0.9.5-x86_64/casper/vmlinuz ignore_uuid live-media-path=/linux1/kylin/openkylin-0.9.5-x86_64/casper boot=casper locale=zh_CN quiet splash audit=0 security= live
initrd /linux1/kylin/openkylin-0.9.5-x86_64/casper/initrd.lz
二、grub2_BIOS/UEFI启动kylin
#kylin_v4整体启动,必须连续存放
menuentry "/linux1/kylin/Kylin_v4_x64.iso-partnew[not_recommend]" "/linux1/kylin/Kylin_v4_x64.iso" {
set gfxpayload=keep
search --no-floppy --set --file $2;regexp --set=x '(.*),' "$root";loopback loop $2
partnew -t 0x00 -f $2 ($x) 4
linux (loop)/casper/vmlinuz boot=casper fsck.mode=skip locale=zh_CN quiet splash audit=0 security= live
initrd (loop)/casper/initrd.lz
}
#kylin_v10整体启动,必须连续存放
menuentry "/linux2/kylin/Kylin-Desktop-V10-SP1-General-Release-2303-X86_64.iso-partnew[not_recommend]" "/linux2/kylin/Kylin-Desktop-V10-SP1-General-Release-2303-X86_64.iso" {
set gfxpayload=keep
search --no-floppy --set --file $2;regexp --set=x '(.*),' "$root";loopback loop $2
partnew -t 0x00 -f $2 ($x) 4
linux (loop)/casper/vmlinuz boot=casper locale=zh_CN audit=0 security= live --
initrd (loop)/casper/initrd.lz
}
#openkylin整体启动,必须连续存放
menuentry "/linux2/openkylin/openkylin-0.9.5-x86_64.iso-partnew[not_recommend]" "/linux2/openkylin/openkylin-0.9.5-x86_64.iso" {
set gfxpayload=keep
search --no-floppy --set --file $2;regexp --set=x '(.*),' "$root";loopback loop $2
partnew -t 0x00 -f $2 ($x) 4
linux (loop)/casper/vmlinuz boot=casper fsck.mode=skip locale=zh_CN quiet splash audit=0 security= live
initrd (loop)/casper/initrd.lz
}
#kylin_v4解开启动,放在FAT32分区,不支持NTFS/EXFAT分区。
menuentry "/linux1/kylin/Kylin_v4_x64/casper/vmlinuz" "/linux1/kylin/Kylin_v4_x64/casper/vmlinuz" {
search --no-floppy --set --file $2
linux $2 ignore_uuid live-media-path=/linux1/kylin/Kylin_v4_x64/casper boot=casper locale=zh_CN quiet splash audit=0 security= live
initrd /linux1/kylin/Kylin_v4_x64/casper/initrd.lz
}
#kylin_v10解开启动,放在FAT32分区,不支持NTFS/EXFAT分区。
menuentry "/linux1/kylin/kylin10/casper/vmlinuz" "/linux1/kylin/kylin10/casper/vmlinuz" {
search --no-floppy --set --file $2
linux $2 ignore_uuid live-media-path=/linux1/kylin/kylin10/casper boot=casper locale=zh_CN quiet splash audit=0 security= live
initrd /linux1/kylin/kylin10/casper/initrd.lz
}
#openkylin解开启动,放在FAT32分区,不支持NTFS/EXFAT分区。
menuentry "/linux1/kylin/openkylin-0.9.5-x86_64/casper/vmlinuz" "/linux1/kylin/openkylin-0.9.5-x86_64/casper/vmlinuz" {
search --no-floppy --set --file $2
linux $2 ignore_uuid live-media-path=/linux1/kylin/openkylin-0.9.5-x86_64/casper boot=casper locale=zh_CN quiet splash audit=0 security= live
initrd /linux1/kylin/openkylin-0.9.5-x86_64/casper/initrd.lz
}
标签:linux1,set,kylin,--,v10,kylinv4,openkylin,casper From: https://www.cnblogs.com/liuzhaoyzz/p/17433109.html