]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
fstab-util: consider /run/nextroot/ among extrinsic mounts
authorLennart Poettering <lennart@poettering.net>
Fri, 2 Jun 2023 15:51:37 +0000 (17:51 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 2 Jun 2023 16:43:10 +0000 (18:43 +0200)
This way we'll not add deps for the mount point that unmount it during
shutdown. This is similar as for /run/initramfs/ which we want to
transition into during shutdown.

This way we don't have to add "-o x-initrd.mount" to all bind mounts for
/run/nextroot anymore to make it survive the reboot, it will be implied.

src/shared/fstab-util.c

index d22cff2d82367353047b5e56bcfdc0644a1d159d..b0e274afccabfa43fdda8030495e27763d2a3642 100644 (file)
@@ -47,6 +47,7 @@ bool fstab_is_extrinsic(const char *mount, const char *opts) {
 
         if (PATH_STARTSWITH_SET(mount,
                                 "/run/initramfs",    /* This should stay around from before we boot until after we shutdown */
+                                "/run/nextroot",     /* Similar (though might be updated from the host) */
                                 "/proc",             /* All of this is API VFS */
                                 "/sys",              /* … dito … */
                                 "/dev"))             /* … dito … */