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

Support for read-only partitions #84

Open
terra-yuri opened this issue Nov 23, 2024 · 1 comment
Open

Support for read-only partitions #84

terra-yuri opened this issue Nov 23, 2024 · 1 comment

Comments

@terra-yuri
Copy link

Hi,

Will this work seamlessly if the boot/system partitions are read-only (as in, in the input OS image they are set to ro in fstab), or is there any part in the workflow that requires it to be r/w?

Thank you!

@tdewey-rpi
Copy link
Collaborator

I think this will depend on your mounting scheme.

Currently, rpi-sb-provisioner assumes you're using a vfat + ext4 partition layout - which is the standard image pi-gen produces. If you are performing a read-only remount as part of Init, I can't see a problem.

However, if you're using a different filesystem, or are expecting the fstab parsing to handle the initial mount & pivot from the initramfs, then I think you're in for a surprise. The pre-boot authentication image does not mount the rootfs as readonly - though we could explore adding support if the early-boot remount-readonly is unviable.

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

2 participants