[RESEND PATCH v4 1/2] Add grub_util_readlink()

2020-01-17 Thread Javier Martinez Canillas
From: Peter Jones Currently grub-editenv and related tools are not able to follow symbolic links when finding their config file. For example the grub-editenv create command will wrongly overwrite a symlink in /boot/grub2/grubenv with a new regular file, instead of creating a file in the path the

[PATCH v4 1/2] Add grub_util_readlink()

2020-01-17 Thread Javier Martinez Canillas
From: Peter Jones Currently grub-editenv and related tools are not able to follow symbolic links when finding their config file. For example the grub-editenv create command will wrongly overwrite a symlink in /boot/grub2/grubenv with a new regular file, instead of creating a file in the path the