-
Notifications
You must be signed in to change notification settings - Fork 9
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
Read-only root with data partition #76
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Use squashfs as rootfs - ext4 data partition - TODO OverlayFS for /var Work in progress: - convince systemd to work on a read-only rootfs. - Most likely needs a custom pre-init script for OverlayFS to avoid initramfs
Update genimage 12 to 14 for proper hybrid partition table support. MBR is required for RPi boot partition. GPT is used for everything else. This makes partition handling much nicer whithout the primary partition limit of MBR.
Store user editable wpa_supplicant configuration file in /var/etc/wpa_supplicant and avoid bindmount indirection from /etc/wpa_supplicant.
This service was used in the old access point functionality and might be used again in the future. Instead of disabling it during first boot, remove the install section in the service file.
Instead of disabling it during first boot, remove the install section in the service file.
This allows to reference partitions by UUID
Included evtest to test alternative touchscreens.
martonborzak
approved these changes
Apr 3, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request changes the partition setup and introduces a compressed read-only root file system. A writable data partition holds overlay data to persist configuration settings.
This is mainly a quick fix to get everything working with systemd. Setting up all overlays and bind-mounts with systemd might be introduced later, to allow proper file system checks and auto-expansion of the data partition.
Further changes:
This changes the SWUpdate target handling: instead of using the hard coded partition number, the systems are referenced by A / B slots and their PARTUUID. If the partition layout changes, then only the U-Boot boot script needs to be changed.
Open issues:
Available options:
Known settings not persisted at the moment (in-memory overlay):
There should be an option to wipe the overlay to have a clean update.
This will be handled in another task. Also the file system might change to SquashFS.
This closes #16
This closes #29
Part of #49 for a read-only SD card setup.