From da7f2764092b883bcdf5daf81b8f6f7ef997ac0a Mon Sep 17 00:00:00 2001 From: Andrey Smirnov Date: Tue, 28 May 2024 13:54:42 +0400 Subject: [PATCH] fix: mount `tracefs` filesystem Fixes https://github.com/siderolabs/pkgs/issues/963 Signed-off-by: Andrey Smirnov --- internal/pkg/mount/pseudo.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/pkg/mount/pseudo.go b/internal/pkg/mount/pseudo.go index 23da458b9b..d89f642b8d 100644 --- a/internal/pkg/mount/pseudo.go +++ b/internal/pkg/mount/pseudo.go @@ -32,6 +32,7 @@ func PseudoSubMountPoints() (mountpoints *Points, err error) { pseudo.Set("devpts", NewMountPoint("devpts", "/dev/pts", "devpts", unix.MS_NOSUID|unix.MS_NOEXEC, "ptmxmode=000,mode=620,gid=5")) pseudo.Set("hugetlb", NewMountPoint("hugetlbfs", "/dev/hugepages", "hugetlbfs", unix.MS_NOSUID|unix.MS_NODEV, "")) pseudo.Set("securityfs", NewMountPoint("securityfs", "/sys/kernel/security", "securityfs", unix.MS_NOSUID|unix.MS_NOEXEC|unix.MS_NODEV|unix.MS_RELATIME, "")) + pseudo.Set("tracefs", NewMountPoint("securityfs", "/sys/kernel/tracing", "tracefs", unix.MS_NOSUID|unix.MS_NOEXEC|unix.MS_NODEV, "")) if _, err := os.Stat(constants.EFIVarsMountPoint); err == nil { // mount EFI vars if they exist