1. 06 Dec, 2017 2 commits
  2. 28 Nov, 2017 1 commit
  3. 24 Nov, 2017 1 commit
  4. 06 Oct, 2017 1 commit
  5. 07 Sep, 2017 5 commits
    • Alexander Graf's avatar
      efi: Free malloc regions on exit · 92bfc33d
      Alexander Graf authored
      When we exit grub, we don't free all the memory that we allocated earlier
      for our heap region. This can cause problems with setups where you try
      to descend the boot order using "exit" entries, such as PXE -> HD boot
      scenarios.
      Signed-off-by: default avatarAlexander Graf <agraf@suse.de>
      Reviewed-by: default avatarDaniel Kiper <daniel.kiper@oracle.com>
      92bfc33d
    • Alexander Graf's avatar
      efi: Move grub_reboot() into kernel · 0ba90a7f
      Alexander Graf authored
      The reboot function calls machine_fini() and then reboots the system.
      Currently it lives in lib/ which means it gets compiled into the
      reboot module which lives on the heap.
      
      In a following patch, I want to free the heap on machine_fini()
      though, so we would free the memory that the code is running in. That
      obviously breaks with smarter UEFI implementations.
      
      So this patch moves it into the core. That way we ensure that all
      code running after machine_fini() in the UEFI case is running from
      memory that got allocated (and gets deallocated) by the UEFI core.
      Signed-off-by: default avatarAlexander Graf <agraf@suse.de>
      Reviewed-by: default avatarDaniel Kiper <daniel.kiper@oracle.com>
      0ba90a7f
    • Konrad Rzeszutek Wilk's avatar
      Use grub-file to figure out whether multiboot2 should be used for Xen.gz · b4d709b6
      Konrad Rzeszutek Wilk authored
      The multiboot2 is much more preferable than multiboot. Especiall
      if booting under EFI where multiboot does not have the functionality
      to pass ImageHandler.
      Signed-off-by: default avatarKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
      Reviewed-by: default avatarDaniel Kiper <daniel.kiper@oracle.com>
      b4d709b6
    • Konrad Rzeszutek Wilk's avatar
      Fix util/grub.d/20_linux_xen.in: Add xen_boot command support for aarch64 · a8e0f1ad
      Konrad Rzeszutek Wilk authored
      Commit d33045ce introduced
      the support for this, but it does not work under x86 (as it stops
      20_linux_xen from running).
      
      The 20_linux_xen is run under a shell and any exits from within it:
      
      (For example on x86):
      + /usr/bin/grub2-file --is-arm64-efi /boot/xen-4.9.0.gz
      [root@tst063 grub]# echo $?
      1
      
      will result in 20_linux_xen exiting without continuing
      and also causing grub2-mkconfig to stop processing.
      
      As in:
      
       [root@tst063 grub]# ./grub-mkconfig | tail
       Generating grub configuration file ...
       Found linux image: /boot/vmlinuz-4.13.0-0.rc5.git1.1.fc27.x86_64
       Found initrd image: /boot/initramfs-4.13.0-0.rc5.git1.1.fc27.x86_64.img
       Found linux image: /boot/vmlinuz-0-rescue-ec082ee24aea41b9b16aca52a6d10cc2
       Found initrd image: /boot/initramfs-0-rescue-ec082ee24aea41b9b16aca52a6d10cc2.img
       		echo	'Loading Linux 0-rescue-ec082ee24aea41b9b16aca52a6d10cc2 ...'
       		linux	/vmlinuz-0-rescue-ec082ee24aea41b9b16aca52a6d10cc2 root=/dev/mapper/fedora_tst063-root ro single
       		echo	'Loading initial ramdisk ...'
       		initrd	/initramfs-0-rescue-ec082ee24aea41b9b16aca52a6d10cc2.img
       	}
       }
      
       ### END /usr/local/etc/grub.d/10_linux ###
      
       ### BEGIN /usr/local/etc/grub.d/20_linux_xen ###
      
       root@tst063 grub]#
      
      And no more.
      
      This patch wraps the invocation of grub-file to be a in subshell
      and to process the return value in a conditional. That fixes
      the issue.
      
      RH-BZ 1486002: grub2-mkconfig does not work if xen.gz is installed.
      
      CC: Fu Wei <fu.wei@linaro.org>
      Signed-off-by: default avatarKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
      Reviewed-by: default avatarDaniel Kiper <daniel.kiper@oracle.com>
      a8e0f1ad
    • Vladimir Serbinenko's avatar
      Fix compilation for x86_64-efi. · 78d2b81b
      Vladimir Serbinenko authored
      78d2b81b
  6. 05 Sep, 2017 1 commit
  7. 30 Aug, 2017 9 commits
  8. 14 Aug, 2017 10 commits
  9. 07 Aug, 2017 10 commits