mirror of
https://gitee.com/liushuncheng-lsc/lfs-livecd.git
synced 2025-01-23 16:12:12 +08:00
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
|
||
|
}
|
||
|
|
||
|
=========================================================================================================================
|