[PATCH] Enable pager by default

2019-10-18 Thread Javier Martinez Canillas
From: Peter Jones When user enters into the GRUB shell and tries to use help command, lot of information is scrolled out of screen and the user doesn't have chance to read it. Also, there isn't any information about 'set pager=1' at the end of the help output, to tell the user how scrolling could

[PATCH 2/2] Make editenv chase symlinks including those across devices.

2019-10-18 Thread Javier Martinez Canillas
From: Peter Jones This lets us make /boot/grub2/grubenv a symlink to /boot/efi/EFI/fedora/grubenv even though they're different mount points, which allows /usr/bin/grub2-editenv to be the same across platforms (i.e. UEFI vs BIOS). Signed-off-by: Peter Jones Reviewed-by: Adam Jackson Signed-off

[PATCH 1/2] Add grub_util_readlink()

2019-10-18 Thread Javier Martinez Canillas
From: Peter Jones Add a grub_util_readlink() helper function. Signed-off-by: Peter Jones Reviewed-by: Adam Jackson Signed-off-by: Javier Martinez Canillas --- grub-core/osdep/windows/hostdisk.c| 6 ++ include/grub/osdep/hostfile_aros.h| 6 ++ include/grub/osdep/hostfile_unix

[PATCH 1/2] Add a url parser

2019-10-18 Thread Javier Martinez Canillas
From: Peter Jones This patch adds a url parser that can parse http, https, tftp, and tftps urls, and is easily extensible to handle more types. It's a little ugly in terms of the arguments it takes. Signed-off-by: Peter Jones Signed-off-by: Javier Martinez Canillas --- grub-core/Makefile.co

[PATCH 2/2] efinet and bootp: add support for dhcpv6

2019-10-18 Thread Javier Martinez Canillas
From: Peter Jones Signed-off-by: Peter Jones Signed-off-by: Javier Martinez Canillas --- grub-core/net/bootp.c | 174 + grub-core/net/drivers/efi/efinet.c | 54 +++-- grub-core/net/net.c| 72 grub-core/net/tftp.c

[PATCH] Fix security issue when reading username and password

2019-10-18 Thread Javier Martinez Canillas
From: Hector Marco-Gisbert This patch fixes two integer underflows at: * grub-core/lib/crypto.c * grub-core/normal/auth.c Resolves: CVE-2015-8370 Signed-off-by: Hector Marco-Gisbert Signed-off-by: Ismael Ripoll-Ripoll Signed-off-by: Javier Martinez Canillas --- grub-core/lib/cryp

[PATCH v2 0/3] Search for specific config files using UUID, MAC and IP

2019-10-18 Thread Javier Martinez Canillas
Hello, This is a 2nd version of a series that have been carried in Fedora (and other distros) for a long time. It allows to fetch GRUB configurations that are customized for each machine by using the client UUID, MAC and IP addresses as suffixes for the grub.cfg file. The procedure is similar to

[PATCH v2 1/3] Add %X option to printf functions

2019-10-18 Thread Javier Martinez Canillas
From: Paulo Flabiano Smorigo The printf(3) function has support for the %X format specifier, to output an unsigned hexadecimal integer in uppercase. This can be achived in GRUB using the %x format specifier in grub_printf() and calling grub_toupper(), but it is more convenient if there is suppor

Re: [PATCH 0/3] Search for specific config files using UUID, MAC and IP

2019-10-18 Thread Javier Martinez Canillas
Hello Daniel, On 10/15/19 4:37 PM, Daniel Kiper wrote: > On Sat, Oct 05, 2019 at 12:44:24AM +0200, Javier Martinez Canillas wrote: >> Hello, >> >> This series contains some patches that have been carried in Fedora (and >> other distros) for a long time. It allows to fetch GRUB configurations >> th

[PATCH v2 2/3] Set net__client{id, uuid} variables from DHCP options

2019-10-18 Thread Javier Martinez Canillas
From: Paulo Flabiano Smorigo This patch sets a net__clientid and net__clientuuid GRUB environment variables, using the DHCP client ID and UUID options if these are found. In the same way than net__ variables are set for other options such domain name, boot file, next server, etc. Signed-off-by:

Re: [PATCH v2] Add GRUB_DISABLE_UUID

2019-10-18 Thread Javier Martinez Canillas
Hello Daniel and Nicolas, On 10/4/19 12:57 PM, Javier Martinez Canillas wrote: > Hello Nicolas, > > Thanks a lot for the feedback. > > On 10/3/19 4:29 AM, Nicholas Vinson wrote: > > [snip] > +if [ "x${GRUB_DISABLE_UUID}" = "xtrue" ]; then + if [ "x${GRUB_DISABLE_LINUX_UUID}" !=

[PATCH v2 3/3] Search for specific config files for netboot

2019-10-18 Thread Javier Martinez Canillas
From: Paulo Flabiano Smorigo This patch implements a search for a specific configuration when the config file is on a remoteserver. It uses the following order: 1) DHCP client UUID option. 2) MAC address (in lower case hexadecimal with dash separators); 3) IP (in upper case hexadecimal)

Re: [PATCH 1/3] Set net__client{id, uuid} variables from DHCP options

2019-10-18 Thread Javier Martinez Canillas
Hello Daniel, On 10/15/19 4:19 PM, Daniel Kiper wrote: > On Sat, Oct 05, 2019 at 12:44:25AM +0200, Javier Martinez Canillas wrote: >> From: Paulo Flabiano Smorigo >> >> This patch sets a net__clientid and net__clientuuid >> GRUB environment variables, using the DHCP client ID and UUID options if