Package: initscripts
Version: 2.93-6
Severity: important
Tags: patch

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?

Thanks,
Samuel

-- System Information:
Debian Release: buster/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable-debug'), (500, 
'testing-debug'), (500, 'stable-debug'), (500, 'proposed-updates-debug'), (500, 
'proposed-updates'), (500, 'oldoldstable'), (500, 'buildd-unstable'), (500, 
'unstable'), (500, 'stable'), (500, 'oldstable'), (1, 'experimental-debug'), 
(1, 'buildd-experimental'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.20.0 (SMP w/8 CPU cores)
Kernel taint flags: TAINT_OOT_MODULE
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), 
LANGUAGE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages initscripts depends on:
ii  coreutils       8.30-1
ii  debianutils     4.8.6.1
ii  lsb-base        10.2018112800
ii  mount           2.33.1-0.1
ii  sysv-rc         2.93-6
ii  sysvinit-utils  2.93-6

Versions of packages initscripts recommends:
ii  e2fsprogs  1.44.5-1
ii  psmisc     23.2-1

initscripts suggests no packages.

-- Configuration Files:
/etc/default/rcS changed [not included]

-- no debconf information

-- 
Samuel
 > et sinon, quand on s'interesse a un media que l'on ne maitrise pas,
 > on essaye de le comprendre d'abord.
 (Suivi par l'intégralité du message initial de 45 lignes.)
 -+-BM in : GNU - La maîtrise est un long apprentissage petit scarabé -+-
---
 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,16 @@ 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)
+               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

Reply via email to