Skip to content

Commit

Permalink
fix: mount tracefs filesystem
Browse files Browse the repository at this point in the history
Fixes siderolabs/pkgs#963

Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
(cherry picked from commit da7f276)
  • Loading branch information
smira committed May 29, 2024
1 parent 1b3ac2c commit 92ec41c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/pkg/mount/pseudo.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 92ec41c

Please sign in to comment.