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/bbx15-armhf-rb/etc/rc.local | 10 ++++++++++ hosts/bpi0-armhf-rb/etc/rc.local | 10 ++++++++++ hosts/cb3a-armhf-rb/etc/rc.local | 10 ++++++++++ hosts/cbxi4a-armhf-rb/etc/rc.local | 10 ++++++++++ hosts/cbxi4b-armhf-rb/etc/rc.local | 10 ++++++++++ hosts/cbxi4pro0-armhf-rb/etc/rc.local | 10 ++++++++++ hosts/codethink-sled10-arm64/etc/rc.local | 10 ++++++++++ hosts/codethink-sled11-arm64/etc/rc.local | 10 ++++++++++ hosts/codethink-sled12-arm64/etc/rc.local | 10 ++++++++++ hosts/codethink-sled13-arm64/etc/rc.local | 10 ++++++++++ hosts/codethink-sled14-arm64/etc/rc.local | 10 ++++++++++ hosts/codethink-sled15-arm64/etc/rc.local | 10 ++++++++++ hosts/codethink-sled16-arm64/etc/rc.local | 10 ++++++++++ hosts/codethink-sled9-arm64/etc/rc.local | 10 ++++++++++ hosts/ff2a-armhf-rb/etc/rc.local | 10 ++++++++++ hosts/ff2b-armhf-rb/etc/rc.local | 10 ++++++++++ hosts/ff4a-armhf-rb/etc/rc.local | 10 ++++++++++ hosts/hb0-armhf-rb/etc/rc.local | 10 ++++++++++ hosts/jenkins-test-vm/etc/rc.local | 10 ++++++++++ hosts/jenkins/etc/rc.local | 10 ++++++++++ hosts/jtk1a-armhf-rb/etc/rc.local | 10 ++++++++++ hosts/odu3a-armhf-rb/etc/rc.local | 10 ++++++++++ hosts/odxu4-armhf-rb/etc/rc.local | 10 ++++++++++ hosts/odxu4b-armhf-rb/etc/rc.local | 10 ++++++++++ hosts/odxu4c-armhf-rb/etc/rc.local | 10 ++++++++++ hosts/opi2a-armhf-rb/etc/rc.local | 10 ++++++++++ hosts/opi2b-armhf-rb/etc/rc.local | 10 ++++++++++ hosts/opi2c-armhf-rb/etc/rc.local | 10 ++++++++++ hosts/profitbricks-build1-amd64/etc/rc.local | 10 ++++++++++ hosts/profitbricks-build10-amd64/etc/rc.local | 10 ++++++++++ hosts/profitbricks-build11-amd64/etc/rc.local | 10 ++++++++++ hosts/profitbricks-build12-i386/etc/rc.local | 10 ++++++++++ hosts/profitbricks-build15-amd64/etc/rc.local | 10 ++++++++++ hosts/profitbricks-build16-i386/etc/rc.local | 10 ++++++++++ hosts/profitbricks-build2-i386/etc/rc.local | 10 ++++++++++ hosts/profitbricks-build3-amd64/etc/rc.local | 10 ++++++++++ hosts/profitbricks-build4-amd64/etc/rc.local | 10 ++++++++++ hosts/profitbricks-build5-amd64/etc/rc.local | 10 ++++++++++ hosts/profitbricks-build6-i386/etc/rc.local | 10 ++++++++++ hosts/profitbricks-build7-amd64/etc/rc.local | 10 ++++++++++ hosts/profitbricks-build9-amd64/etc/rc.local | 10 ++++++++++ hosts/rpi2b-armhf-rb/etc/rc.local | 10 ++++++++++ hosts/rpi2c-armhf-rb/etc/rc.local | 10 ++++++++++ hosts/wbd0-armhf-rb/etc/rc.local | 10 ++++++++++ hosts/wbq0-armhf-rb/etc/rc.local | 10 ++++++++++ 45 files changed, 450 insertions(+) (limited to 'hosts') diff --git a/hosts/bbx15-armhf-rb/etc/rc.local b/hosts/bbx15-armhf-rb/etc/rc.local index 8fb854c5..7a3ac282 100755 --- a/hosts/bbx15-armhf-rb/etc/rc.local +++ b/hosts/bbx15-armhf-rb/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 # diff --git a/hosts/bpi0-armhf-rb/etc/rc.local b/hosts/bpi0-armhf-rb/etc/rc.local index 8fb854c5..7a3ac282 100755 --- a/hosts/bpi0-armhf-rb/etc/rc.local +++ b/hosts/bpi0-armhf-rb/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 # diff --git a/hosts/cb3a-armhf-rb/etc/rc.local b/hosts/cb3a-armhf-rb/etc/rc.local index 8fb854c5..7a3ac282 100755 --- a/hosts/cb3a-armhf-rb/etc/rc.local +++ b/hosts/cb3a-armhf-rb/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 # diff --git a/hosts/cbxi4a-armhf-rb/etc/rc.local b/hosts/cbxi4a-armhf-rb/etc/rc.local index 8fb854c5..7a3ac282 100755 --- a/hosts/cbxi4a-armhf-rb/etc/rc.local +++ b/hosts/cbxi4a-armhf-rb/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 # diff --git a/hosts/cbxi4b-armhf-rb/etc/rc.local b/hosts/cbxi4b-armhf-rb/etc/rc.local index 8fb854c5..7a3ac282 100755 --- a/hosts/cbxi4b-armhf-rb/etc/rc.local +++ b/hosts/cbxi4b-armhf-rb/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 # diff --git a/hosts/cbxi4pro0-armhf-rb/etc/rc.local b/hosts/cbxi4pro0-armhf-rb/etc/rc.local index 8fb854c5..7a3ac282 100755 --- a/hosts/cbxi4pro0-armhf-rb/etc/rc.local +++ b/hosts/cbxi4pro0-armhf-rb/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 # diff --git a/hosts/codethink-sled10-arm64/etc/rc.local b/hosts/codethink-sled10-arm64/etc/rc.local index 8fb854c5..7a3ac282 100755 --- a/hosts/codethink-sled10-arm64/etc/rc.local +++ b/hosts/codethink-sled10-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 # @@ -68,6 +73,11 @@ case $(hostname) in *) ;; esac +# +# fixup /(dev|run)/shm if needed +# +fixup_shm + # # put schroots on tmpfs for non debian hosts # diff --git a/hosts/codethink-sled11-arm64/etc/rc.local b/hosts/codethink-sled11-arm64/etc/rc.local index 8fb854c5..7a3ac282 100755 --- a/hosts/codethink-sled11-arm64/etc/rc.local +++ b/hosts/codethink-sled11-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 # @@ -68,6 +73,11 @@ case $(hostname) in *) ;; esac +# +# fixup /(dev|run)/shm if needed +# +fixup_shm + # # put schroots on tmpfs for non debian hosts # diff --git a/hosts/codethink-sled12-arm64/etc/rc.local b/hosts/codethink-sled12-arm64/etc/rc.local index 8fb854c5..7a3ac282 100755 --- a/hosts/codethink-sled12-arm64/etc/rc.local +++ b/hosts/codethink-sled12-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 # @@ -68,6 +73,11 @@ case $(hostname) in *) ;; esac +# +# fixup /(dev|run)/shm if needed +# +fixup_shm + # # put schroots on tmpfs for non debian hosts # diff --git a/hosts/codethink-sled13-arm64/etc/rc.local b/hosts/codethink-sled13-arm64/etc/rc.local index 8fb854c5..7a3ac282 100755 --- a/hosts/codethink-sled13-arm64/etc/rc.local +++ b/hosts/codethink-sled13-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 # @@ -68,6 +73,11 @@ case $(hostname) in *) ;; esac +# +# fixup /(dev|run)/shm if needed +# +fixup_shm + # # put schroots on tmpfs for non debian hosts # diff --git a/hosts/codethink-sled14-arm64/etc/rc.local b/hosts/codethink-sled14-arm64/etc/rc.local index 8fb854c5..7a3ac282 100755 --- a/hosts/codethink-sled14-arm64/etc/rc.local +++ b/hosts/codethink-sled14-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 # @@ -68,6 +73,11 @@ case $(hostname) in *) ;; esac +# +# fixup /(dev|run)/shm if needed +# +fixup_shm + # # put schroots on tmpfs for non debian hosts # 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 # @@ -68,6 +73,11 @@ case $(hostname) in *) ;; esac +# +# fixup /(dev|run)/shm if needed +# +fixup_shm + # # put schroots on tmpfs for non debian hosts # diff --git a/hosts/codethink-sled16-arm64/etc/rc.local b/hosts/codethink-sled16-arm64/etc/rc.local index 8fb854c5..7a3ac282 100755 --- a/hosts/codethink-sled16-arm64/etc/rc.local +++ b/hosts/codethink-sled16-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 # @@ -68,6 +73,11 @@ case $(hostname) in *) ;; esac +# +# fixup /(dev|run)/shm if needed +# +fixup_shm + # # put schroots on tmpfs for non debian hosts # diff --git a/hosts/codethink-sled9-arm64/etc/rc.local b/hosts/codethink-sled9-arm64/etc/rc.local index 8fb854c5..7a3ac282 100755 --- a/hosts/codethink-sled9-arm64/etc/rc.local +++ b/hosts/codethink-sled9-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 # @@ -68,6 +73,11 @@ case $(hostname) in *) ;; esac +# +# fixup /(dev|run)/shm if needed +# +fixup_shm + # # put schroots on tmpfs for non debian hosts # diff --git a/hosts/ff2a-armhf-rb/etc/rc.local b/hosts/ff2a-armhf-rb/etc/rc.local index 8fb854c5..7a3ac282 100755 --- a/hosts/ff2a-armhf-rb/etc/rc.local +++ b/hosts/ff2a-armhf-rb/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 # diff --git a/hosts/ff2b-armhf-rb/etc/rc.local b/hosts/ff2b-armhf-rb/etc/rc.local index 8fb854c5..7a3ac282 100755 --- a/hosts/ff2b-armhf-rb/etc/rc.local +++ b/hosts/ff2b-armhf-rb/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 # diff --git a/hosts/ff4a-armhf-rb/etc/rc.local b/hosts/ff4a-armhf-rb/etc/rc.local index 8fb854c5..7a3ac282 100755 --- a/hosts/ff4a-armhf-rb/etc/rc.local +++ b/hosts/ff4a-armhf-rb/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 # diff --git a/hosts/hb0-armhf-rb/etc/rc.local b/hosts/hb0-armhf-rb/etc/rc.local index 8fb854c5..7a3ac282 100755 --- a/hosts/hb0-armhf-rb/etc/rc.local +++ b/hosts/hb0-armhf-rb/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 # diff --git a/hosts/jenkins-test-vm/etc/rc.local b/hosts/jenkins-test-vm/etc/rc.local index 8fb854c5..7a3ac282 100755 --- a/hosts/jenkins-test-vm/etc/rc.local +++ b/hosts/jenkins-test-vm/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 # diff --git a/hosts/jenkins/etc/rc.local b/hosts/jenkins/etc/rc.local index 8fb854c5..7a3ac282 100755 --- a/hosts/jenkins/etc/rc.local +++ b/hosts/jenkins/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 # diff --git a/hosts/jtk1a-armhf-rb/etc/rc.local b/hosts/jtk1a-armhf-rb/etc/rc.local index 8fb854c5..7a3ac282 100755 --- a/hosts/jtk1a-armhf-rb/etc/rc.local +++ b/hosts/jtk1a-armhf-rb/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 # diff --git a/hosts/odu3a-armhf-rb/etc/rc.local b/hosts/odu3a-armhf-rb/etc/rc.local index 8fb854c5..7a3ac282 100755 --- a/hosts/odu3a-armhf-rb/etc/rc.local +++ b/hosts/odu3a-armhf-rb/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 # diff --git a/hosts/odxu4-armhf-rb/etc/rc.local b/hosts/odxu4-armhf-rb/etc/rc.local index 8fb854c5..7a3ac282 100755 --- a/hosts/odxu4-armhf-rb/etc/rc.local +++ b/hosts/odxu4-armhf-rb/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 # diff --git a/hosts/odxu4b-armhf-rb/etc/rc.local b/hosts/odxu4b-armhf-rb/etc/rc.local index 8fb854c5..7a3ac282 100755 --- a/hosts/odxu4b-armhf-rb/etc/rc.local +++ b/hosts/odxu4b-armhf-rb/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 # diff --git a/hosts/odxu4c-armhf-rb/etc/rc.local b/hosts/odxu4c-armhf-rb/etc/rc.local index 8fb854c5..7a3ac282 100755 --- a/hosts/odxu4c-armhf-rb/etc/rc.local +++ b/hosts/odxu4c-armhf-rb/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 # diff --git a/hosts/opi2a-armhf-rb/etc/rc.local b/hosts/opi2a-armhf-rb/etc/rc.local index 8fb854c5..7a3ac282 100755 --- a/hosts/opi2a-armhf-rb/etc/rc.local +++ b/hosts/opi2a-armhf-rb/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 # diff --git a/hosts/opi2b-armhf-rb/etc/rc.local b/hosts/opi2b-armhf-rb/etc/rc.local index 8fb854c5..7a3ac282 100755 --- a/hosts/opi2b-armhf-rb/etc/rc.local +++ b/hosts/opi2b-armhf-rb/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 # diff --git a/hosts/opi2c-armhf-rb/etc/rc.local b/hosts/opi2c-armhf-rb/etc/rc.local index 8fb854c5..7a3ac282 100755 --- a/hosts/opi2c-armhf-rb/etc/rc.local +++ b/hosts/opi2c-armhf-rb/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 # diff --git a/hosts/profitbricks-build1-amd64/etc/rc.local b/hosts/profitbricks-build1-amd64/etc/rc.local index 8fb854c5..7a3ac282 100755 --- a/hosts/profitbricks-build1-amd64/etc/rc.local +++ b/hosts/profitbricks-build1-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 # diff --git a/hosts/profitbricks-build10-amd64/etc/rc.local b/hosts/profitbricks-build10-amd64/etc/rc.local index 8fb854c5..7a3ac282 100755 --- a/hosts/profitbricks-build10-amd64/etc/rc.local +++ b/hosts/profitbricks-build10-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 # diff --git a/hosts/profitbricks-build11-amd64/etc/rc.local b/hosts/profitbricks-build11-amd64/etc/rc.local index 8fb854c5..7a3ac282 100755 --- a/hosts/profitbricks-build11-amd64/etc/rc.local +++ b/hosts/profitbricks-build11-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 # diff --git a/hosts/profitbricks-build12-i386/etc/rc.local b/hosts/profitbricks-build12-i386/etc/rc.local index 8fb854c5..7a3ac282 100755 --- a/hosts/profitbricks-build12-i386/etc/rc.local +++ b/hosts/profitbricks-build12-i386/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 # 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 # diff --git a/hosts/profitbricks-build16-i386/etc/rc.local b/hosts/profitbricks-build16-i386/etc/rc.local index 8fb854c5..7a3ac282 100755 --- a/hosts/profitbricks-build16-i386/etc/rc.local +++ b/hosts/profitbricks-build16-i386/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 # diff --git a/hosts/profitbricks-build2-i386/etc/rc.local b/hosts/profitbricks-build2-i386/etc/rc.local index 8fb854c5..7a3ac282 100755 --- a/hosts/profitbricks-build2-i386/etc/rc.local +++ b/hosts/profitbricks-build2-i386/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 # diff --git a/hosts/profitbricks-build3-amd64/etc/rc.local b/hosts/profitbricks-build3-amd64/etc/rc.local index 8fb854c5..7a3ac282 100755 --- a/hosts/profitbricks-build3-amd64/etc/rc.local +++ b/hosts/profitbricks-build3-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 # diff --git a/hosts/profitbricks-build4-amd64/etc/rc.local b/hosts/profitbricks-build4-amd64/etc/rc.local index 8fb854c5..7a3ac282 100755 --- a/hosts/profitbricks-build4-amd64/etc/rc.local +++ b/hosts/profitbricks-build4-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 # diff --git a/hosts/profitbricks-build5-amd64/etc/rc.local b/hosts/profitbricks-build5-amd64/etc/rc.local index 8fb854c5..7a3ac282 100755 --- a/hosts/profitbricks-build5-amd64/etc/rc.local +++ b/hosts/profitbricks-build5-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 # diff --git a/hosts/profitbricks-build6-i386/etc/rc.local b/hosts/profitbricks-build6-i386/etc/rc.local index 8fb854c5..7a3ac282 100755 --- a/hosts/profitbricks-build6-i386/etc/rc.local +++ b/hosts/profitbricks-build6-i386/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 # diff --git a/hosts/profitbricks-build7-amd64/etc/rc.local b/hosts/profitbricks-build7-amd64/etc/rc.local index 8fb854c5..7a3ac282 100755 --- a/hosts/profitbricks-build7-amd64/etc/rc.local +++ b/hosts/profitbricks-build7-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 # diff --git a/hosts/profitbricks-build9-amd64/etc/rc.local b/hosts/profitbricks-build9-amd64/etc/rc.local index 8fb854c5..7a3ac282 100755 --- a/hosts/profitbricks-build9-amd64/etc/rc.local +++ b/hosts/profitbricks-build9-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 # diff --git a/hosts/rpi2b-armhf-rb/etc/rc.local b/hosts/rpi2b-armhf-rb/etc/rc.local index 8fb854c5..7a3ac282 100755 --- a/hosts/rpi2b-armhf-rb/etc/rc.local +++ b/hosts/rpi2b-armhf-rb/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 # diff --git a/hosts/rpi2c-armhf-rb/etc/rc.local b/hosts/rpi2c-armhf-rb/etc/rc.local index 8fb854c5..7a3ac282 100755 --- a/hosts/rpi2c-armhf-rb/etc/rc.local +++ b/hosts/rpi2c-armhf-rb/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 # diff --git a/hosts/wbd0-armhf-rb/etc/rc.local b/hosts/wbd0-armhf-rb/etc/rc.local index 8fb854c5..7a3ac282 100755 --- a/hosts/wbd0-armhf-rb/etc/rc.local +++ b/hosts/wbd0-armhf-rb/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 # diff --git a/hosts/wbq0-armhf-rb/etc/rc.local b/hosts/wbq0-armhf-rb/etc/rc.local index 8fb854c5..7a3ac282 100755 --- a/hosts/wbq0-armhf-rb/etc/rc.local +++ b/hosts/wbq0-armhf-rb/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