Dmitry Bogatov, le sam. 23 févr. 2019 20:07:42 +0000, a ecrit: > [2019-02-21 21:33] Samuel Thibault <sthiba...@debian.org> > > Hello, > > > > Please do not enable tmpfs-based shm by default on the Hurd yet, the > > tmpfs implementation is not ready for that yet and triggers runtime > > issues. > > > > The attached patch makes the default per-kernel, could you apply it? > > Well, yes; but I'd like not to keep it indefinitely. Please add comment > with apporiate number of hurd bug.
Here it is. Samuel
--- debian/src/initscripts/lib/init/tmpfs.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) --- a/debian/src/initscripts/lib/init/tmpfs.sh +++ b/debian/src/initscripts/lib/init/tmpfs.sh @@ -85,8 +85,17 @@ need_overflow_tmp () # values here. RAMLOCK=yes +KERNEL="$(uname -s)" # These might be overridden by /etc/default/rcS -if [ -z "$RAMSHM" ]; then RAMSHM=yes; fi +case "$KERNEL" in + GNU) + # tmpfs can not be used for shm yet, see #923078 + if [ -z "$RAMSHM" ]; then RAMSHM=no; fi + ;; + *) + if [ -z "$RAMSHM" ]; then RAMSHM=yes; fi + ;; +esac if [ -z "$RAMTMP" ]; then RAMTMP=no; fi TMPFS_SIZE=20%VM