overlayroot: nofail is not applied, an unplugged removable disk makes it stuck on boot
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-initramfs-tools (Ubuntu) |
Fix Released
|
Low
|
Paride Legovini | ||
Jammy |
Triaged
|
Low
|
Unassigned |
Bug Description
On a fresh jammy server minimal install I have such fstab entries:
/dev/sda1 / ext4 defaults 0 1
/dev/sdb1 /disk1 ext4 nofail 0 2
If the second disk is attached, it boots as supposed with and without overlayroot=tmpfs in the kernel cmdline. In case the disk is unplugged and the kernel cmdline contains overlayroot=tmpfs (without extra :recurse=0), the boot stumbles on such message:
You are in emergency mode. After logging in, type "journalctl -xb" to ..
Press Enter for maintenance
(or press Control-D to continue):
So I press Enter and inspect fstab generated by overlayroot:
> grep disk1 /etc/fstab
/dev/sdb1 /media/
/media/
Evidently, nofail is not applied to the overlay mount, which makes it non optional.
When trying to replicate, it is important to NOT use FAT formatted sdb1 since overlayroot does bypass FAT.
description: | updated |
Changed in cloud-initramfs-tools (Ubuntu): | |
assignee: | nobody → Paride Legovini (paride) |
Thanks for reporting this issue, Adam!
Have you checked the system logs when the issue occurs? Could you provide them here?
Moreover, would you be able to provide steps for a minimal reproducer from within a VM with a fresh Ubuntu install?
Thank you!