bug-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #61364] (EFI) network problems when netbooting iPXE from netbooted


From: Fabrício Ceolin
Subject: [bug #61364] (EFI) network problems when netbooting iPXE from netbooted GRUB
Date: Sat, 19 Feb 2022 09:31:26 -0500 (EST)

Follow-up Comment #2, bug #61364 (project grub):

I solved  the problem using grub 2.11 directly from
https://git.launchpad.net/grub and building on ubuntu 20.04 the grubnetx64.efi
using the following script:

apt-get update
apt-get build-dep grub2 -y
git clone https://git.launchpad.net/grub
cd grub
git checkout 246d69b7ea619fc1e77dcc5960e37aea45a9808c
./bootstrap                                                                   
                                                                              
                                                                
./configure --with-platform=efi
make
cat >"grub-netboot.cfg" <<EOF
if [ -e \$prefix/$platform/grub.cfg ]; then
    source \$prefix/$platform/grub.cfg
elif [ -e \$prefix/grub.cfg-$deb_arch ]; then
    source \$prefix/grub.cfg-default-$deb_arch
else
    source \$prefix/grub.cfg
fi
EOF
mkfs.msdos -C "memdisk-netboot.fat" 64
mcopy -D overwrite -i "memdisk-netboot.fat" "grub-netboot.cfg" ::grub.cfg
CD_MODULES="all_video boot btrfs cat chain configfile echo efifwsetup efinet
ext2 fat font gettext gfxmenu gfxterm gfxterm_background gzio halt help
hfsplus iso9660 jpeg keystatus loadenv loopback linux ls lsefi lsefimmap
lsefisystab lssal memdisk minicmd normal ntfs part_apple part_msdos part_gpt
password_pbkdf2 png reboot regexp search search_fs_uuid search_fs_file
search_label sleep smbios squash4 test true video xfs zfs zfscrypt zfsinfo"
CD_MODULES="$CD_MODULES cpuid play"
CD_MODULES="$CD_MODULES tpm"
NET_MODULES="$CD_MODULES http tftp"
./grub-mkimage -O x86_64-efi -o grubnetx64.efi -d grub-core -c
grub-netboot.cfg -p /grub $NET_MODULES
# generated 
grubnetx64.efi 


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?61364>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]