After a “Broken Pipe” during a routine packages update, I thought everything was OK, because the installation finished with no errors (exit code 0).
Since those updates require you to restart the machine, I did exactly that, but I had a surprise: The system rebooted once more into my laptop firmware.
So, I rebooted once more and when presented to the EndeavourOS boot menu I chose the “Fallback” option - which boots into a previous working kernel.
On there everything was OK - I also ensured that /boot
partition had free space, which sometimes can be a reason why dracut fails on the initramfs
step.
Then I forced the kernel upgrade through reinstalling the linux kernel package using pacman, which would trigger the dracut hook that failed previously:
$ sudo pacman -S linux
This time it finished with no “Broken Pipe” message.
Then I rebooted into the default kernel and everything was back to normal. Problem solved.
Depending on your specific situation, you might also try:
sudo mkinitcpio -P (for other arch-based distros that use mkinitcpio instead of dracut)
journalctl -u pacman
To avoid similar issues in the future:
/boot
has adequate free space before major updates (at least 100-200MB recommended)