summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2011-08-18 01:46:48 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2011-08-18 01:46:48 +0200
commit71881d10bb5c4f6b70f36712068a248c0dffbd83 (patch)
tree2d9ec7956bfd0b6934b1572901f7820bf1621ea5
parent290f2a74c2e2140aa78016aeeb066d447a801ecd (diff)
create /run/shm and /run/lock, to fix locking until we properly start rcS.d scripts.
-rw-r--r--debian/changelog5
-rwxr-xr-xdebian/local/setup-translators8
2 files changed, 8 insertions, 5 deletions
diff --git a/debian/changelog b/debian/changelog
index 06bb0487..1a412ee7 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,9 @@
hurd (20110519-4) UNRELEASED; urgency=low
- * local/setup-translators: Restore /dev/shm creation.
+ * local/setup-translators:
+ - Restore /dev/shm creation.
+ - create /run/shm and /run/lock, to fix locking until we properly start
+ rcS.d scripts.
* patches/libdiskfs_sync.patch: New patch to fix sync at shutdown.
* local/setup-translators: Set up entropy socket in /var/run instead of
/tmp, as the latter is world-writable.
diff --git a/debian/local/setup-translators b/debian/local/setup-translators
index 6bd2f1d1..57dd676c 100755
--- a/debian/local/setup-translators
+++ b/debian/local/setup-translators
@@ -151,11 +151,11 @@ fi
st kbd 'symlink cons/kbd' kbd
st mouse 'symlink cons/mouse' mouse
+st shm 'symlink /run/shm' shm
-if [ ! -e shm ]; then
- mkdir shm
- chmod 1777 shm
-fi
+# until we properly start /etc/rcS.d
+mkdir -p /run/lock /run/shm
+chmod 1777 /run/lock /run/shm
echo .