mount SD read-only and use overlay ramfs #70
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "fsagbuya/nix-servo:sd_readonly"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
Boot log:
Runtime:
Closes #69
If I understand correctly you currently have to replace the entire SD image to use that option. Doesn't sound very easy.
Would be easier to manually remount the SD card RW and modify some file to activate the option.
Upon testing, it seems manually remounting as RW in runtime is not possible in an
overlayfs
setup. Runningmount -o remount,rw /
fails because the root is mounted as an overlay type, combining a read-only SD card mount at/mnt.ro
with a RAM-based overlay at/mnt.overlay
. This actually makes sense for our goal of preventing SD card corruption, since all writes go to RAM while keeping the SD card safe.Let me know if you had a different approach in mind.
There's always the option of having a third partition with configuration. Or just use the FAT boot partition for that.
Checkout
From your project repository, check out a new branch and test the changes.