mount-setup: exclude /run/nextroot/ from relabelling

Just like /run/initramfs/ the data in /run/nextroot/ should be a
self-contained OS tree, and not require labelling, hence don't.
This commit is contained in:
Lennart Poettering
2023-06-02 18:43:10 +02:00
parent f717d7a40a
commit d585065624
+3 -2
View File
@@ -376,8 +376,9 @@ static int relabel_cb(
return RECURSE_DIR_CONTINUE;
case RECURSE_DIR_ENTER:
/* /run/initramfs is static data and big, no need to dynamically relabel its contents at boot... */
if (path_equal(path, "/run/initramfs"))
/* /run/initramfs/ + /run/nextroot/ are static data and big, no need to dynamically relabel
* its contents at boot... */
if (PATH_STARTSWITH_SET(path, "/run/initramfs", "/run/nextroot"))
return RECURSE_DIR_SKIP_ENTRY;
_fallthrough_;