overlayroot does not work with Linux 6.5
Bug #2042034 reported by
Uri Herrera
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-initramfs-tools (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
I use the package overlayroot on a custom ISO to provide an immutable root directory upon installation. I use the package from Ubuntu, overlayroot version 0.47ubuntu1. However, I've had a problem with overlayroot.
Recently, overlayroot stopped working when I started using any version of the Linux kernel newer than 6.4.15.
Once the installed system boots, the boot process halts with multiple messages reading: Read-only filesystem. This indicates that there's a problem with the overlay.
However, the initramfs script in init-bottom that the package adds creates the directories for the overlay and modifies the fstab file successfully.
So, I'm not sure what is causing this problem.
To post a comment you must log in.
Today, I found that one of the things that the initramfs script does is to add and check for a kernel parameter, specifically that "ro" is present; this check is used various times throughout the script. However, it turns out that the overlay didn't seem to work anymore due to the presence of this parameter, as removing it "fixed" the issue, and the installed system successfully boots to the desktop.
I've tested that the overlay works by creating a file on the root without using overlayroot-chroot and rebooting; the file was not present, but the overlay works regardless of the presence of the parameter.