summaryrefslogtreecommitdiffstats
path: root/hosts/codethink-sled15-arm64/etc
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2017-01-21 14:19:53 +0100
committerHolger Levsen <holger@layer-acht.org>2017-01-21 14:19:53 +0100
commitbec4a0079eeef2cd47cc1a915bfb7f157b50d756 (patch)
tree68fae116a4f241cd63812e2d037c6008fbbc16ad /hosts/codethink-sled15-arm64/etc
parent15cb9ff2280e874728f2213081ea5cd8902530d9 (diff)
downloadjenkins.debian.net-bec4a0079eeef2cd47cc1a915bfb7f157b50d756.tar.xz
reproducible Debian: add code to fixup /(dev|run)/shm on boot, see #851427
Signed-off-by: Holger Levsen <holger@layer-acht.org>
Diffstat (limited to 'hosts/codethink-sled15-arm64/etc')
-rwxr-xr-xhosts/codethink-sled15-arm64/etc/rc.local10
1 files changed, 10 insertions, 0 deletions
diff --git a/hosts/codethink-sled15-arm64/etc/rc.local b/hosts/codethink-sled15-arm64/etc/rc.local
index 8fb854c5..7a3ac282 100755
--- a/hosts/codethink-sled15-arm64/etc/rc.local
+++ b/hosts/codethink-sled15-arm64/etc/rc.local
@@ -37,6 +37,11 @@ put_schroots_on_tmpfs() {
mkdir -p union/overlay union/underlay
}
+fixup_shm() {
+ # this is always harmless
+ chmod 1777 /dev/shm
+}
+
#
# init, notify about reboots
#
@@ -69,6 +74,11 @@ case $(hostname) in
esac
#
+# fixup /(dev|run)/shm if needed
+#
+fixup_shm
+
+#
# put schroots on tmpfs for non debian hosts
#
case $(hostname) in