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 disk image manipulation scripts #953

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

rtertiaer
Copy link
Contributor

What does this change intend to accomplish?

I've been gently refining these little disk image utilities for nearly a year now, and it feels time to make them a part of the actual repository here. These scripts allow one to quickly find an amplipi and flash to it; mount an image to a test dir; run applications within the image's chroot using binfmt-support & qemu-user-static, and unmount the same directory structure.

Checklist

  • Have you tested your changes and ensured they work?

apt install binfmt-support qemu-user-static
fi

chroot root /bin/bash
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a case could be made here to set up bindmounts or instances of namespaced filesystems (/sys, /proc, /dev, etc), but there's a nonzero likelihood that a setup like this could damage the user's system; thus, with the loss of some functionality, we explicitly do not do this.

@rtertiaer rtertiaer marked this pull request as ready for review September 27, 2024 18:41
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

Successfully merging this pull request may close these issues.

1 participant