From 8187c668250c1b358f8800a62ffb98066754f4fb Mon Sep 17 00:00:00 2001 From: Oliver Smith Date: Sun, 5 May 2019 16:54:42 +0200 Subject: [PATCH] Mount /dev/shm in chroots Fix configure crash when building mozjs60 by mounting tmpfs as /dev/shm in chroots. This is an important fix, because of this dependency chain, that is currently broken in armhf and armv7 (see pmaports#244): postmarketos-base -> networkmanager -> polkit -> mozjs60 --- pmb/chroot/mount.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pmb/chroot/mount.py b/pmb/chroot/mount.py index 60779266..5a573200 100644 --- a/pmb/chroot/mount.py +++ b/pmb/chroot/mount.py @@ -83,6 +83,9 @@ def mount_dev_tmpfs(args, suffix="native"): # Create pts, shm folders and device nodes pmb.helpers.run.root(args, ["mkdir", "-p", dev + "/pts", dev + "/shm"]) + pmb.helpers.run.root(args, ["mount", "-t", "tmpfs", + "-o", "nodev,nosuid,noexec", + "tmpfs", dev + "/shm"]) create_device_nodes(args, suffix)