mirror of
https://gitee.com/liushuncheng-lsc/lfs-livecd.git
synced 2025-01-24 00:22:11 +08:00
74d76ff10f
Signed-off-by: liushuncheng <2930054131@qq.com>
52 lines
1.7 KiB
Plaintext
52 lines
1.7 KiB
Plaintext
搞完你的livecd的目录之后,
|
|
唠叨唠叨isolinux/isolinux.cfg,
|
|
和EFI/BOOT/grub.cfg
|
|
|
|
你们已经会编译lfs了,所以大家也应该知道这两个文件是配置引导的文件,告诉引导程序怎么引导内核
|
|
示例:
|
|
|
|
|
|
isolinux.cfg
|
|
=========================================================================
|
|
default vesamenu.c32
|
|
MENU BACKGROUND syslinux_splash.jpg
|
|
MENU TITLE lfs-livecd
|
|
LABEL lfs
|
|
MENU LABEL boot lfs 12.1
|
|
kernel /images/pxeboot/vmlinuz
|
|
initrd /images/pxeboot/initrd.img
|
|
append root=live:CDLABEL=LFS rd.live.image vga=788
|
|
==========================================================================
|
|
|
|
|
|
grub.cfg
|
|
==========================================================================================================================
|
|
set default="1"
|
|
|
|
function load_video {
|
|
insmod all_video
|
|
}
|
|
|
|
load_video
|
|
set gfxpayload=keep
|
|
insmod gzio
|
|
insmod part_gpt
|
|
insmod ext2
|
|
insmod chain
|
|
|
|
set timeout=60
|
|
### END /etc/grub.d/00_header ###
|
|
|
|
search --no-floppy --set=root -l 'lfs'
|
|
|
|
### BEGIN /etc/grub.d/10_linux ###
|
|
menuentry 'Start lfs 12.1 with safe graphics' --class lfs --class gnu-linux --class gnu --class os {
|
|
linux /images/pxeboot/vmlinuz root=live:CDLABEL=LFS rd.live.image vga=788 nomodeset
|
|
initrd /images/pxeboot/initrd.img
|
|
}
|
|
menuentry 'start lfs 12.1' --class lfs --class gnu-linux --class gnu --class os {
|
|
linux /images/pxeboot/vmlinuz root=live:CDLABEL=LFS rd.live.image splash vga=788
|
|
initrd /images/pxeboot/initrd.img
|
|
}
|
|
|
|
========================================================================================================================= |