Skip to content

Commit

Permalink
feat: mount hugetlbfs
Browse files Browse the repository at this point in the history
This adds a hugetlbfs. Some applications may depend on it.

Signed-off-by: Andrew Rynhard <andrew@rynhard.io>
  • Loading branch information
andrewrynhard committed Feb 1, 2021
1 parent e4e6da3 commit b441915
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 @@ -26,6 +26,7 @@ func PseudoSubMountPoints() (mountpoints *Points, err error) {
pseudo := NewMountPoints()
pseudo.Set("devshm", NewMountPoint("tmpfs", "/dev/shm", "tmpfs", unix.MS_NOSUID|unix.MS_NOEXEC|unix.MS_NODEV|unix.MS_RELATIME, ""))
pseudo.Set("devpts", NewMountPoint("devpts", "/dev/pts", "devpts", unix.MS_NOSUID|unix.MS_NOEXEC, "ptmxmode=000,mode=620,gid=5"))
pseudo.Set("hugetlb", NewMountPoint("none", "/dev/hugepages", "hugetlbfs", 0, ""))
pseudo.Set("securityfs", NewMountPoint("securityfs", "/sys/kernel/security", "securityfs", unix.MS_NOSUID|unix.MS_NOEXEC|unix.MS_NODEV|unix.MS_RELATIME, ""))

return pseudo, nil
Expand Down

0 comments on commit b441915

Please sign in to comment.