]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
mount-setup: don't need to mount /sys/fs/pstore if there is no ENABLE_PSTORE
authorjcg <jiangchuangang@huawei.com>
Fri, 9 Dec 2022 12:45:39 +0000 (20:45 +0800)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 10 Dec 2022 03:02:25 +0000 (12:02 +0900)
src/shared/mount-setup.c

index 975c027f47c9c067626b52806a8edf522db77021..6882b62c40472948c17b17be6720806f1aa15236 100644 (file)
@@ -102,8 +102,10 @@ static const MountPoint mount_table[] = {
           cg_is_legacy_wanted, MNT_IN_CONTAINER     },
         { "cgroup",      "/sys/fs/cgroup/systemd",    "cgroup",     "none,name=systemd",                       MS_NOSUID|MS_NOEXEC|MS_NODEV,
           cg_is_legacy_wanted, MNT_FATAL|MNT_IN_CONTAINER },
+#if ENABLE_PSTORE
         { "pstore",      "/sys/fs/pstore",            "pstore",     NULL,                                      MS_NOSUID|MS_NOEXEC|MS_NODEV,
           NULL,          MNT_NONE                   },
+#endif
 #if ENABLE_EFI
         { "efivarfs",    "/sys/firmware/efi/efivars", "efivarfs",   NULL,                                      MS_NOSUID|MS_NOEXEC|MS_NODEV,
           is_efi_boot,   MNT_NONE                   },