Skip to content

Commit 526868e

Browse files
committed
Disk (Linux): don't hard code hidden mount points
1 parent 768238c commit 526868e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/detection/disk/disk_linux.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ static bool isRemovable(FFDisk* currentDisk)
220220

221221
static void detectType(const FFlist* disks, FFDisk* currentDisk, struct mntent* device)
222222
{
223-
if(ffStrbufStartsWithS(&currentDisk->mountpoint, "/boot") || ffStrbufStartsWithS(&currentDisk->mountpoint, "/efi"))
223+
if(hasmntopt(device, "x-gvfs-hide") || hasmntopt(device, "hidden"))
224224
currentDisk->type = FF_DISK_VOLUME_TYPE_HIDDEN_BIT;
225225
else if(isSubvolume(disks, currentDisk))
226226
currentDisk->type = FF_DISK_VOLUME_TYPE_SUBVOLUME_BIT;

0 commit comments

Comments
 (0)