mirror of
https://git.proxmox.com/git/grub2
synced 2025-07-09 06:50:55 +00:00
Handle empty dir passed to grub_find_root_device_from_mountinfo; fixes grub-mkrelpath on btrfs subvolumes.
This commit is contained in:
parent
bd1a414714
commit
8c2c4ff2f5
@ -111,6 +111,8 @@ grub_find_root_device_from_mountinfo (const char *dir, char **relroot)
|
||||
size_t len = 0;
|
||||
char *ret = NULL;
|
||||
|
||||
if (! *dir)
|
||||
dir = "/";
|
||||
if (relroot)
|
||||
*relroot = NULL;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user