Misleading "Steam now requires user namespaces" error when bwrap fails on a stale systemd automount mount

Abierto
#847 3 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
55/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
linux, shell

Línea de trabajo

Empieza en el punto de entrada steam-runtime-check-requirements y reproduce el fallo con bwrap contra el automount obsoleto de systemd descrito en el issue. Rastrea cómo el fallo de bwrap se convierte en el error de user-namespace. Se considera terminado cuando los fallos genuinos de user-namespace siguen notificándose correctamente, mientras que los demás errores de bwrap, incluido el error de mount subyacente, se muestran con una indicación útil relacionada con mount.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Environment

  • Arch Linux rolling, kernel 7.1.8-arch1-3
  • steam 1.0.0.87-1 (native package)
  • KDE Plasma 6.7, Wayland
  • GPU: AMD RX 7900 XT (amdgpu)

Symptom

Launching Steam fails immediately with:

Error: Steam now requires user namespaces to be enabled.
This requirement is the same as for Flatpak...

However, user namespaces are enabled and working on this system:

  • /proc/sys/user/max_user_namespaces = 62287
  • unshare -Ur succeeds as a regular user

Actual root cause

steam-runtime-check-requirements fails because bwrap cannot replicate
a stale systemd automount mount point:
steam-runtime-check-requirements[3859]: W: Child process killed by signal 15: bwrap: Can't bind mount /oldroot/ on /newroot/: Unable to apply mount flags: remount "/newroot/mnt/win-c": No such device

Context: this is a moving SSD installation. /etc/fstab contains an
x-systemd.automount entry for an NTFS partition that exists on another
machine but not on this one. systemd still creates the autofs mount point;
when the backing device is absent the mount is dead, and bwrap aborts while
building its mount table — which the requirements check then misreports as
"user namespaces not enabled".

Removing the automount entry (or cleaning up the stale mount point) makes
Steam start normally, with no other changes.

Suggestion

When bwrap fails for reasons other than a genuine userns problem,
steam-runtime-check-requirements should surface the underlying bwrap
error instead of concluding that user namespaces are disabled. A hint like
"check for stale/FUSE/network mount points in your mount table" would have
saved hours of debugging.

Lenguaje dominante
Shell
Estrellas
1.5k
Forks
98
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de ValveSoftware/steam-runtime

Todos los issues de ValveSoftware/steam-runtime

Issues similares

Más issues de Shell/Bash

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.