From bec4a0079eeef2cd47cc1a915bfb7f157b50d756 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Sat, 21 Jan 2017 14:19:53 +0100 Subject: reproducible Debian: add code to fixup /(dev|run)/shm on boot, see #851427 Signed-off-by: Holger Levsen --- hosts/profitbricks-build15-amd64/etc/rc.local | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'hosts/profitbricks-build15-amd64/etc') diff --git a/hosts/profitbricks-build15-amd64/etc/rc.local b/hosts/profitbricks-build15-amd64/etc/rc.local index 8fb854c5..7a3ac282 100755 --- a/hosts/profitbricks-build15-amd64/etc/rc.local +++ b/hosts/profitbricks-build15-amd64/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 # @@ -68,6 +73,11 @@ case $(hostname) in *) ;; esac +# +# fixup /(dev|run)/shm if needed +# +fixup_shm + # # put schroots on tmpfs for non debian hosts # -- cgit v1.2.3-70-g09d2