summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/base-files
diff options
context:
space:
mode:
authorStefan Agner <stefan.agner@toradex.com>2019-11-15 16:09:44 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-11-27 13:25:18 +0000
commit73f6b1f68ddfc616c46277b1d5a623001ca3b0e5 (patch)
tree841409a320f98f230074fd6c17d1ac3bf6e1301d /meta/recipes-core/base-files
parentcf57a45026e4f8f2aea4a61877a56bf84256fca9 (diff)
downloadpoky-73f6b1f68ddfc616c46277b1d5a623001ca3b0e5.tar.gz
base-files: set ptmxmode to 666
Make sure that the (newer) /dev/pts/ptmx is accessible by users. This is useful e.g. when running containers which symlink /dev/ptmx to /dev/pts/ptmx on start. The default mode (000) does not allow to create ptys inside the container. Using 666 when symlinking /dev/ptmx is also recommended by the kernel documentation when /dev/ptmx is symlinked: https://www.kernel.org/doc/Documentation/filesystems/devpts.txt Also buildroot uses ptmxmode=0666. The patch introducing the change explains related use cases why this is necessary a bit more in depth: https://github.com/buildroot/buildroot/commit/8196b299ba12bd6741bf7f4462cad180dab77fb0#diff-2d4604b9e565eb19fa52ce31f282f06c (From OE-Core rev: c999bc5ddd9beb5274f77b885e2ac71205e42266) Signed-off-by: Stefan Agner <stefan.agner@toradex.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/base-files')
-rw-r--r--meta/recipes-core/base-files/base-files/fstab2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-core/base-files/base-files/fstab b/meta/recipes-core/base-files/base-files/fstab
index d79a01602f..70e400f567 100644
--- a/meta/recipes-core/base-files/base-files/fstab
+++ b/meta/recipes-core/base-files/base-files/fstab
@@ -2,7 +2,7 @@
2 2
3/dev/root / auto defaults 1 1 3/dev/root / auto defaults 1 1
4proc /proc proc defaults 0 0 4proc /proc proc defaults 0 0
5devpts /dev/pts devpts mode=0620,gid=5 0 0 5devpts /dev/pts devpts mode=0620,ptmxmode=0666,gid=5 0 0
6tmpfs /run tmpfs mode=0755,nodev,nosuid,strictatime 0 0 6tmpfs /run tmpfs mode=0755,nodev,nosuid,strictatime 0 0
7tmpfs /var/volatile tmpfs defaults 0 0 7tmpfs /var/volatile tmpfs defaults 0 0
8 8