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

Add core/host/prepare-custom-image package #15

Merged
merged 2 commits into from
Aug 8, 2024

Conversation

ethanjli
Copy link
Member

@ethanjli ethanjli commented Aug 8, 2024

This PR adds a package which provides a script overlaid into /usr/libexec/prepare-custom-image which can be run in order to reset machine-specific files on the filesystem and modify /boot/cmdline.txt in preparation for cloning the filesystem as an SD card image to be flashed to multiple other SD cards. When the script starts, it unmounts filesystem overlays for /etc and /usr (by stopping the corresponding systemd services); when the script ends, it shuts down the Raspberry Pi.

@ethanjli
Copy link
Member Author

ethanjli commented Aug 8, 2024

I tested the script as part of PlanktoScope/pallet-standard#16 and it appears to work, so I will merge this PR now.

@ethanjli ethanjli marked this pull request as ready for review August 8, 2024 05:05
@ethanjli ethanjli merged commit 2659e5f into edge Aug 8, 2024
@ethanjli ethanjli deleted the feature/custom-image-prep-script branch August 8, 2024 05:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

1 participant