Reproduction case: on a 512MB machine (e.g. Raspberry Pi Zero 2W or
3A+), flash Ubuntu resolute server, boot and run through updates.

Ensure /tmp is a tmpfs (if it's not, e.g. because I've fixed LP:
#2157975), then edit "sudo systemctl edit tmpfs.mount" and comment my
ConditionMemory= line, then reboot.

During generation, dracut will attempt to generate the initramfs in /tmp
(which is now a tmpfs in RAM). It will generally manage to write the
actual initramfs, but during zstd compression it will run out of RAM and
silently (and successfully!) produce a truncated initramfs. Check /boot
after running "sudo dracut..." and you should find /boot/initrd.img is
far less than ~60MB (more like ~1MB) yet dracut has reported no errors
and exited cleanly.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2157789

Title:
  Dracut silently produces truncated initramfs with constrained RAM

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dracut/+bug/2157789/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to