Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filesystem is sometimes mounted incorrectly and fails to boot #919

Open
NeroReflex opened this issue Apr 2, 2024 · 0 comments
Open

Filesystem is sometimes mounted incorrectly and fails to boot #919

NeroReflex opened this issue Apr 2, 2024 · 0 comments

Comments

@NeroReflex
Copy link
Contributor

NeroReflex commented Apr 2, 2024

Starting from 6.8 kernel we begun observing that the boot may fail to enter game mode because lots of services failed to start.

I investigated and every failed service failed because either /etc or /var was read-only.

If one reads /etc/fstab it will be clear that those are intended to be mounted as RW, but this is not what happens.

Instead btrfs share mount flags across everything from the same filesystem, in /etc/fstab / is re-mounted (after starting systemd) as RO and such mount is started in parallel with others 3 mounts (that are RW).

The first successful mount determines if /frzr_root and /var and /etc will be RO or RW.

Chances are 3/4 to mount the filesystem correctly and 1/4 of mounting the whole filesystem as RO.

Relevant btrfs documentation is here first blue box in that page reads "Most mount options apply to the whole filesystem and only options in the first mounted subvolume will take effect".

NeroReflex added a commit to NeroReflex/chimeraos that referenced this issue Apr 3, 2024
Use systemd on initrd instead of busybox to solve two bugs:
- when two chimeraos are installed booting a device might result in mounting the rootfs of the other device
- Issue ChimeraOS#919 ChimeraOS#919

/efi will be automounted by systemd: remove the fstab entry.

If the default subvolume of / is changed boot will fail: fix this by mentioning subvolumes by theirs ID (fixed since installation)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant