Skip to content

Commit c23c121

Browse files
Cyanoxygenchenx97
authored andcommitted
grub-install: add /efi to the candidate of the ESP mountpoints
1 parent 59e7ba1 commit c23c121

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

util/grub-install.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1075,6 +1075,15 @@ main (int argc, char *argv[])
10751075
free (d);
10761076
d = grub_util_path_concat (2, bootdir, "EFI");
10771077
}
1078+
/*
1079+
AOSC: We mount the EFI System Partition to /efi by default,
1080+
if DeployKit is used to install the system.
1081+
*/
1082+
if (!grub_util_is_directory (d))
1083+
{
1084+
free (d);
1085+
d = grub_util_path_concat (3, "/", rootdir, "efi");
1086+
}
10781087
/*
10791088
The EFI System Partition may have been given directly using
10801089
--root-directory.

0 commit comments

Comments
 (0)