mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
libsysprof-analyze: ignore /sysroot devices
I highly doubt this is foolproof, but this makes Silverblue more likely to resolve the proper fstab entry when translating to paths we can access from the host system.
This commit is contained in:
@ -178,9 +178,16 @@ sysprof_mount_namespace_find_device (SysprofMountNamespace *self,
|
||||
if (subvolume != NULL)
|
||||
{
|
||||
const char *device_subvolume = sysprof_mount_device_get_subvolume (device);
|
||||
const char *mount_point = sysprof_mount_device_get_mount_point (device);
|
||||
|
||||
if (g_strcmp0 (subvolume, device_subvolume) != 0)
|
||||
continue;
|
||||
|
||||
/* Just ignore /sysroot, as it seems to be a convention on systems like
|
||||
* Silverblue or GNOME OS.
|
||||
*/
|
||||
if (g_strcmp0 (mount_point, "/sysroot") == 0)
|
||||
continue;
|
||||
}
|
||||
|
||||
return device;
|
||||
|
||||
Reference in New Issue
Block a user