1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
| # cp -r /mnt/images/pxeboot/* /var/lib/tftpboot/ # cp /mnt/EFI/BOOT/grubaa64.efi /var/lib/tftpboot/ # cp /mnt/EFI/BOOT/grub.cfg /var/lib/tftpboot/ # ls /var/lib/tftpboot/ grubaa64.efi grub.cfg initrd.img TRANS.TBL vmlinuz # vim /var/lib/tftpboot/grub.cfg set default="1"
function load_video { if [ x$feature_all_video_module = xy ]; then insmod all_video else insmod efi_gop insmod efi_uga insmod ieee1275_fb insmod vbe insmod vga insmod video_bochs insmod video_cirrus fi }
load_video set gfxpayload=keep insmod gzio insmod part_gpt insmod ext2
set timeout=60 BIOS启动 ... ... ... ... label linux menu label ^Install Red Hat Enterprise Linux 8.0 kernel vmlinuz append initrd=initrd.img inst.stage2=ftp: ... ... ... ... UEFI启动 ### BEGIN /etc/grub.d/10_linux ### menuentry 'Install openEuler 20.03 LTS SP2' --class red --class gnu-linux --class gnu --class os { set root=(tftp,10.10.10.53) linux /vmlinuz ro inst.geoloc=0 console=ttyAMA0 console=tty0 rd.iscsi.waitnet=0 inst.ks=http://10.10.10.53/ks/openEuler-ks.cfg initrd /initrd.img }
# Linux和initrd查看镜像包中文件,错误会导致找不到命令
|