From: jcg Date: Fri, 9 Dec 2022 12:45:39 +0000 (+0800) Subject: mount-setup: don't need to mount /sys/fs/pstore if there is no ENABLE_PSTORE X-Git-Tag: v253-rc1~324 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5e5fce3e918ebba5d0cbf0b64bb97f0eaeae70a3;p=thirdparty%2Fsystemd.git mount-setup: don't need to mount /sys/fs/pstore if there is no ENABLE_PSTORE --- diff --git a/src/shared/mount-setup.c b/src/shared/mount-setup.c index 975c027f47c..6882b62c404 100644 --- a/src/shared/mount-setup.c +++ b/src/shared/mount-setup.c @@ -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 },