[PATCH] grub2: add read_hook to blocklists

2019-05-27 Thread Michael Grzeschik
This is needed to make grubenv be stored in raw disk images. We now can run save_env -f (ata0)1024+2 VARIABLE Signed-off-by: Michael Grzeschik --- grub-core/kern/fs.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/grub-core/kern/fs.c b/grub-core/kern/fs.c index 2b85f4950..d50d519d2

[PATCH] grub2: setup root in grub-setup and grub-install

2019-05-27 Thread Michael Grzeschik
With this feature it is now possible to set the root device in userspace preperation like grub-mkimage. Signed-off-by: Michael Grzeschik --- include/grub/util/install.h | 4 ++-- util/grub-install.c | 4 ++-- util/grub-setup.c | 12 +++- util/setup.c

[PATCH] grub2: add support to search for partuuid

2019-05-27 Thread Michael Grzeschik
With this feature the grub-shell is able to search for partuuid strings. This reduces the complexity to find the correct boot partition on systems with unspecified device connectivity. Signed-off-by: Michael Grzeschik --- grub-core/Makefile.core.def | 5 + grub-core/commands