Linux: hide the "/efi" mount point in the file-browser

This commit is contained in:
Campbell Barton
2025-04-12 02:09:19 +00:00
parent 219e6aa6d6
commit 272414c096

View File

@@ -591,7 +591,11 @@ void fsmenu_read_system(FSMenu *fsmenu, int read_bookmarks)
# define STRPREFIX_DIR_DELIMIT(a, b) (strncmp_dir_delimit((a), (b), strlen(b)) == 0)
while ((mnt = getmntent(fp))) {
if (STRPREFIX_DIR_DELIMIT(mnt->mnt_dir, "/boot")) {
if (STRPREFIX_DIR_DELIMIT(mnt->mnt_dir, "/boot") ||
/* According to: https://wiki.archlinux.org/title/EFI_system_partition (2025),
* this is a common path to mount the EFI partition. */
STRPREFIX_DIR_DELIMIT(mnt->mnt_dir, "/efi"))
{
/* Hide share not usable to the user. */
continue;
}