Automated install can silently fail to format the root partition and fill the live tmpfs
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 35/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Stack tecnológico
- linux
- Área
- operating-systems
Línea de trabajo
Start at partitioning.full_disk_format(), called by radio_automated and the manual unpartitioned-disk prompt. Trace the udev wait, mkfs status, and do_mount() handling, then inspect the linked fix. Done means formatting failures are not swallowed and a plain automated install does not copy into the live tmpfs.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Summary
In the guided "Automated Installation" (erase a disk), full_disk_format() formats each new partition without waiting for udev to settle after parted's partition-table rescan and without checking the mkfs return code. mkfs can race a momentarily-removed partition node; because the failure is swallowed, the root mount then fails silently and the file copy lands in the live session's tmpfs, filling it until ENOSPC.
Affected path
GUI "Automated Installation — erase a disk and install" (radio_automated), and the auto-format prompt for an unpartitioned disk in manual partitioning. Both call partitioning.full_disk_format().
Impact
Intermittent. On a plain (non-encrypted) automated install the root filesystem is never created, so do_mount() mounts nothing (its return code is not checked) and rsync copies the system into the live overlay until the disk-full error. Whether it triggers depends on udev timing after each parted mkpart. For LUKS/LVM the root partition is reformatted later by cryptsetup luksFormat / pvcreate, so the silent tmpfs-fill is specific to the plain install; those layouts still benefit for the EFI/boot partitions full_disk_format() creates.
Root cause
After each parted call the loop only waits for the node to appear; it does not wait for udev to finish a rescan that briefly removes and recreates the partition nodes, and it discards the mkfs return code. A format that races a vanished node is silently tolerated, leaving the partition unformatted.
Found while developing #180. Fix in the linked PR.
- Lenguaje dominante
- HTML
- Estrellas
- 63
- Forks
- 64
- 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
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de linuxmint/live-installer
-
UEFI encrypted (LVM-on-LUKS) install is unbootable: drops to an initramfs shellPosiblemente ocupada @ggiesen la tomó hace 114 días. Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 20/100
linuxmint/live-installer#183 ·
-
Encryption passphrase briefly visible in the process table during automated encrypted installPosiblemente ocupada @ggiesen la tomó hace 114 días. Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 65/100
linuxmint/live-installer#182 ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
linuxmint/live-installer#178 · 1 reacción ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
linuxmint/live-installer#177 ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
linuxmint/live-installer#175 ·
Todos los issues de linuxmint/live-installer
Issues similares
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
-
Volume eject does not refuse system, root or /home mountsPosiblemente ocupada @bernardopg la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
spacedriveapp/spacedrive#3159 ·
Los mantenedores suelen responder en 1 día
-
[Bug] MSIX AppData root selection trims caller-supplied directory pathsPosiblemente ocupada @PK-SANGAMESWAR la tomó hoy. Abiertobug triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
morluto/rea#4496 · 2 comentarios ·
Los mantenedores suelen responder en 1 día