bug-grub
[Top][All Lists]
Advanced

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

[bug #45853] Fix iPXE support


From: Vít Ondruch
Subject: [bug #45853] Fix iPXE support
Date: Wed, 16 Sep 2015 14:07:02 +0000
User-agent: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:40.0) Gecko/20100101 Firefox/40.0

Follow-up Comment #6, bug #45853 (project grub):

I am trying this on my Lenovo T440s with (only) EFI boot enabled. The default
system in use is Fedora 22 x86_64. Bellow are the steps I am doing:

# rpm -q grub2
grub2-2.02-0.16.fc22.x86_64

# cd /boot/

# ls -la
celkem 183496
dr-xr-xr-x.  6 root root     3072 16. zář 15.47 .
dr-xr-xr-x. 19 root root     4096 25. kvě 13.30 ..
-rw-r--r--.  1 root root   156190 11. srp 01.44 config-4.1.5-200.fc22.x86_64
-rw-r--r--.  1 root root   156190 17. srp 22.00 config-4.1.6-200.fc22.x86_64
-rw-r--r--.  1 root root   156135  4. zář 19.55
config-4.1.6-201.fc22.x86_64
drwx------.  4 root root    16384  1. led  1970 efi
-rw-r--r--.  1 root root   184380 21. říj  2014 elf-memtest86+-5.01
drwxr-xr-x.  2 root root     3072 25. kvě 12.55 extlinux
drwxr-xr-x.  3 root root     1024 25. kvě 12.58 grub2
-rw-------.  1 root root 38811975  8. dub  2014
initramfs-0-rescue-a546af57a103442d9d8b1b0dcb3afb97.img
-rw-r--r--.  1 root root 20840847 24. srp 09.25
initramfs-4.1.5-200.fc22.x86_64.img
-rw-r--r--.  1 root root 20845377  4. zář 13.52
initramfs-4.1.6-200.fc22.x86_64.img
-rw-r--r--.  1 root root 20846355 16. zář 15.34
initramfs-4.1.6-201.fc22.x86_64.img
-rw-r--r--.  1 root root   565060 25. kvě 13.03 initrd-plymouth.img
drwx------.  2 root root    12288  8. dub  2014 lost+found
-rw-r--r--.  1 root root   182704 21. říj  2014 memtest86+-5.01
-rwxr-xr-x.  1 root root  6565688 24. dub 20.24 rawhide
-rw-r--r--.  1 root root 46202432 27. dub 11.39 rawhide.img
-rw-------.  1 root root  3090588 11. srp 01.44
System.map-4.1.5-200.fc22.x86_64
-rw-------.  1 root root  3090588 17. srp 22.00
System.map-4.1.6-200.fc22.x86_64
-rw-------.  1 root root  3088509  4. zář 19.55
System.map-4.1.6-201.fc22.x86_64
-rwxr-xr-x.  1 root root  5139320  8. dub  2014
vmlinuz-0-rescue-a546af57a103442d9d8b1b0dcb3afb97
-rwxr-xr-x.  1 root root  5967320 11. srp 01.44 vmlinuz-4.1.5-200.fc22.x86_64
-rw-r--r--.  1 root root      166 11. srp 01.44
.vmlinuz-4.1.5-200.fc22.x86_64.hmac
-rwxr-xr-x.  1 root root  5967320 17. srp 22.00 vmlinuz-4.1.6-200.fc22.x86_64
-rw-r--r--.  1 root root      166 17. srp 22.00
.vmlinuz-4.1.6-200.fc22.x86_64.hmac
-rwxr-xr-x.  1 root root  5961752  4. zář 19.55
vmlinuz-4.1.6-201.fc22.x86_64
-rw-r--r--.  1 root root      166  4. zář 19.55
.vmlinuz-4.1.6-201.fc22.x86_64.hmac

# curl -O http://dl.fedoraproject.org/pub/alt/bfo/bfo.lkrn
  % Total    % Received % Xferd  Average Speed   Time    Time     Time 
Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  295k  100  295k    0     0   136k      0  0:00:02  0:00:02 --:--:-- 
136k

# ls -la
celkem 183793
dr-xr-xr-x.  6 root root     3072 16. zář 15.47 .
dr-xr-xr-x. 19 root root     4096 25. kvě 13.30 ..
-rw-r--r--.  1 root root   302675 16. zář 15.47 bfo.lkrn
-rw-r--r--.  1 root root   156190 11. srp 01.44 config-4.1.5-200.fc22.x86_64
-rw-r--r--.  1 root root   156190 17. srp 22.00 config-4.1.6-200.fc22.x86_64
-rw-r--r--.  1 root root   156135  4. zář 19.55
config-4.1.6-201.fc22.x86_64
drwx------.  4 root root    16384  1. led  1970 efi
-rw-r--r--.  1 root root   184380 21. říj  2014 elf-memtest86+-5.01
drwxr-xr-x.  2 root root     3072 25. kvě 12.55 extlinux
drwxr-xr-x.  3 root root     1024 25. kvě 12.58 grub2
-rw-------.  1 root root 38811975  8. dub  2014
initramfs-0-rescue-a546af57a103442d9d8b1b0dcb3afb97.img
-rw-r--r--.  1 root root 20840847 24. srp 09.25
initramfs-4.1.5-200.fc22.x86_64.img
-rw-r--r--.  1 root root 20845377  4. zář 13.52
initramfs-4.1.6-200.fc22.x86_64.img
-rw-r--r--.  1 root root 20846355 16. zář 15.34
initramfs-4.1.6-201.fc22.x86_64.img
-rw-r--r--.  1 root root   565060 25. kvě 13.03 initrd-plymouth.img
drwx------.  2 root root    12288  8. dub  2014 lost+found
-rw-r--r--.  1 root root   182704 21. říj  2014 memtest86+-5.01
-rwxr-xr-x.  1 root root  6565688 24. dub 20.24 rawhide
-rw-r--r--.  1 root root 46202432 27. dub 11.39 rawhide.img
-rw-------.  1 root root  3090588 11. srp 01.44
System.map-4.1.5-200.fc22.x86_64
-rw-------.  1 root root  3090588 17. srp 22.00
System.map-4.1.6-200.fc22.x86_64
-rw-------.  1 root root  3088509  4. zář 19.55
System.map-4.1.6-201.fc22.x86_64
-rwxr-xr-x.  1 root root  5139320  8. dub  2014
vmlinuz-0-rescue-a546af57a103442d9d8b1b0dcb3afb97
-rwxr-xr-x.  1 root root  5967320 11. srp 01.44 vmlinuz-4.1.5-200.fc22.x86_64
-rw-r--r--.  1 root root      166 11. srp 01.44
.vmlinuz-4.1.5-200.fc22.x86_64.hmac
-rwxr-xr-x.  1 root root  5967320 17. srp 22.00 vmlinuz-4.1.6-200.fc22.x86_64
-rw-r--r--.  1 root root      166 17. srp 22.00
.vmlinuz-4.1.6-200.fc22.x86_64.hmac
-rwxr-xr-x.  1 root root  5961752  4. zář 19.55
vmlinuz-4.1.6-201.fc22.x86_64
-rw-r--r--.  1 root root      166  4. zář 19.55
.vmlinuz-4.1.6-201.fc22.x86_64.hmac

# chmod a+x bfo.lkrn

# cat efi/EFI/fedora/grub.cfg
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub2-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  load_env
fi
if [ "${next_entry}" ] ; then
   set default="${next_entry}"
   set next_entry=
   save_env next_entry
   set boot_once=true
else
   set default="${saved_entry}"
fi

if [ x"${feature_menuentry_id}" = xy ]; then
  menuentry_id_option="--id"
else
  menuentry_id_option=""
fi

export menuentry_id_option

if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}

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
}

terminal_output console
set timeout=5
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Fedora (4.1.6-201.fc22.x86_64) 22 (Twenty Two)' --class fedora
--class gnu-linux --class gnu --class os $menuentry_id_option
'gnulinux-3.11.10-301.fc20.x86_64-advanced-a92a5965-5854-4fe3-b187-035fcdc9a425'
{
    load_video
    set gfxpayload=keep
    insmod gzio
    insmod part_gpt
    insmod ext2
    set root='hd0,gpt2'
    if [ x$feature_platform_search_hint = xy ]; then
      search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2
--hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 
7ce53d1d-66d2-4193-9c60-04da20b15168
    else
      search --no-floppy --fs-uuid --set=root
7ce53d1d-66d2-4193-9c60-04da20b15168
    fi
    linuxefi /vmlinuz-4.1.6-201.fc22.x86_64 root=/dev/mapper/vg_fedora-root ro
rd.lvm.lv=vg_fedora/swap vconsole.font=latarcyrheb-sun16
rd.lvm.lv=vg_fedora/root  rhgb quiet LANG=cs_CZ.UTF-8
    initrdefi /initramfs-4.1.6-201.fc22.x86_64.img
}
menuentry 'Fedora (4.1.6-200.fc22.x86_64) 22 (Twenty Two)' --class fedora
--class gnu-linux --class gnu --class os $menuentry_id_option
'gnulinux-3.11.10-301.fc20.x86_64-advanced-a92a5965-5854-4fe3-b187-035fcdc9a425'
{
    load_video
    set gfxpayload=keep
    insmod gzio
    insmod part_gpt
    insmod ext2
    set root='hd0,gpt2'
    if [ x$feature_platform_search_hint = xy ]; then
      search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2
--hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 
7ce53d1d-66d2-4193-9c60-04da20b15168
    else
      search --no-floppy --fs-uuid --set=root
7ce53d1d-66d2-4193-9c60-04da20b15168
    fi
    linuxefi /vmlinuz-4.1.6-200.fc22.x86_64 root=/dev/mapper/vg_fedora-root ro
rd.lvm.lv=vg_fedora/swap vconsole.font=latarcyrheb-sun16
rd.lvm.lv=vg_fedora/root  rhgb quiet LANG=cs_CZ.UTF-8
    initrdefi /initramfs-4.1.6-200.fc22.x86_64.img
}
menuentry 'Fedora (4.1.5-200.fc22.x86_64) 22 (Twenty Two)' --class fedora
--class gnu-linux --class gnu --class os $menuentry_id_option
'gnulinux-3.11.10-301.fc20.x86_64-advanced-a92a5965-5854-4fe3-b187-035fcdc9a425'
{
    load_video
    set gfxpayload=keep
    insmod gzio
    insmod part_gpt
    insmod ext2
    set root='hd0,gpt2'
    if [ x$feature_platform_search_hint = xy ]; then
      search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2
--hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 
7ce53d1d-66d2-4193-9c60-04da20b15168
    else
      search --no-floppy --fs-uuid --set=root
7ce53d1d-66d2-4193-9c60-04da20b15168
    fi
    linuxefi /vmlinuz-4.1.5-200.fc22.x86_64 root=/dev/mapper/vg_fedora-root ro
rd.lvm.lv=vg_fedora/swap vconsole.font=latarcyrheb-sun16
rd.lvm.lv=vg_fedora/root  rhgb quiet LANG=cs_CZ.UTF-8
    initrdefi /initramfs-4.1.5-200.fc22.x86_64.img
}
menuentry 'Boot Rawhide Installation' --class gnu-linux --class gnu --class os
{
    load_video
    set gfxpayload=keep
    insmod gzio
    insmod part_gpt
    insmod ext2
    set root='hd0,gpt2'
    if [ x$feature_platform_search_hint = xy ]; then
      search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2
--hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 
7ce53d1d-66d2-4193-9c60-04da20b15168
    else
      search --no-floppy --fs-uuid --set=root
7ce53d1d-66d2-4193-9c60-04da20b15168
    fi
    linuxefi /rawhide
repo=http://download.fedoraproject.org/pub/fedora/linux/development/rawhide/x86_64/os/
        initrdefi /rawhide.img
}
menuentry 'Boot BFO' --class gnu-linux --class gnu --class os {
    load_video
    set gfxpayload=keep
    insmod gzio
    insmod part_gpt
    insmod ext2
    set root='hd0,gpt2'
    if [ x$feature_platform_search_hint = xy ]; then
      search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2
--hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 
7ce53d1d-66d2-4193-9c60-04da20b15168
    else
      search --no-floppy --fs-uuid --set=root
7ce53d1d-66d2-4193-9c60-04da20b15168
    fi
    linuxefi /bfo.lkrn
}
menuentry 'ISO' --class gnu-linux --class gnu --class os {
    load_video
    set gfxpayload=keep
    insmod gzio
    insmod part_gpt
    insmod ext2
    set root='hd0,gpt2'
    if [ x$feature_platform_search_hint = xy ]; then
      search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2
--hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 
7ce53d1d-66d2-4193-9c60-04da20b15168
    else
      search --no-floppy --fs-uuid --set=root
7ce53d1d-66d2-4193-9c60-04da20b15168
    fi
        loopback iso /boot/ipxe.iso
    linuxefi (iso)/bfo.lrkn
}
menuentry 'Fedora, with Linux 0-rescue-a546af57a103442d9d8b1b0dcb3afb97'
--class fedora --class gnu-linux --class gnu --class os $menuentry_id_option
'gnulinux-0-rescue-a546af57a103442d9d8b1b0dcb3afb97-advanced-a92a5965-5854-4fe3-b187-035fcdc9a425'
{
    load_video
    insmod gzio
    insmod part_gpt
    insmod ext2
    set root='hd0,gpt2'
    if [ x$feature_platform_search_hint = xy ]; then
      search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2
--hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 
7ce53d1d-66d2-4193-9c60-04da20b15168
    else
      search --no-floppy --fs-uuid --set=root
7ce53d1d-66d2-4193-9c60-04da20b15168
    fi
    linuxefi /vmlinuz-0-rescue-a546af57a103442d9d8b1b0dcb3afb97
root=/dev/mapper/vg_fedora-root ro rd.lvm.lv=vg_fedora/swap
vconsole.font=latarcyrheb-sun16 rd.lvm.lv=vg_fedora/root  rhgb quiet
    initrdefi /initramfs-0-rescue-a546af57a103442d9d8b1b0dcb3afb97.img
}

### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###

### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/20_ppc_terminfo ###
### END /etc/grub.d/20_ppc_terminfo ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  ${config_directory}/custom.cfg ]; then
  source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###


Please see also attached images (and forgive my shaky hands :/)

(file #34899, file #34900, file #34901)
    _______________________________________________________

Additional Item Attachment:

File name: IMG_20150916_155018.jpg        Size:152 KB
File name: IMG_20150916_155225.jpg        Size:116 KB
File name: IMG_20150916_155203.jpg        Size:125 KB


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?45853>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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