gunixmounts: Include configured localstatedir+runstatedir in system FS list

In case they differ from the defaults, we probably want to ignore them
when listing filesystems which are interesting to the user.

Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
This commit is contained in:
Philip Withnall 2022-12-02 21:45:44 +00:00
parent b7b9f89417
commit 7b9dcb70c4

View File

@ -266,10 +266,12 @@ g_unix_is_mount_path_system_internal (const char *mount_path)
"/var",
"/var/crash",
"/var/local",
GLIB_LOCALSTATEDIR,
"/var/log",
"/var/log/audit", /* https://bugzilla.redhat.com/show_bug.cgi?id=333041 */
"/var/mail",
"/var/run",
GLIB_RUNSTATEDIR,
"/var/tmp", /* https://bugzilla.redhat.com/show_bug.cgi?id=335241 */
"/proc",
"/sbin",