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 a "setup option/warning" to download rootfs image #2

Open
pintaf opened this issue Dec 19, 2020 · 7 comments
Open

Add a "setup option/warning" to download rootfs image #2

pintaf opened this issue Dec 19, 2020 · 7 comments
Labels
enhancement New feature or request

Comments

@pintaf
Copy link
Member

pintaf commented Dec 19, 2020

In order to reduce system image size, it would be nice if the rootfs image could be downloaded after boot.

Hence an option must be added to do this in the settings, and a next step would be to choose it's rootfs flavor. Debian, Ubuntu...
After downloading, it should also be extracted thx to mcprepare or similar

@pintaf pintaf added the enhancement New feature or request label Dec 19, 2020
@utzcoz
Copy link
Member

utzcoz commented May 30, 2021

@pintaf @pdsouza I think this feature can be started.

@pdsouza
Copy link
Member

pdsouza commented Jun 2, 2021

@utzcoz Yes, we need this feature to build for our older devices with smaller system partitions. The Nexus 5 for example will not build right now even with the minimal desktop image because Android 9 takes up too much space on /system.

@utzcoz
Copy link
Member

utzcoz commented Jun 2, 2021

Okay, let's kick off it. I will think potential solutions, and post it here for discussion if got one. If you have solution, we can discuss it firstly.

@pdsouza
Copy link
Member

pdsouza commented Jun 2, 2021

For hosting the rootfs image, we can make use of GitHub Releases like how maru-0.6 had releases hosted. As part of the automated builds, I make sure to upload just the desktop rootfs image along with the device images, for example the arm64 image for our v0.6.8 is maru-geb4a1b8-debian-stretch-arm64-rootfs-e990e414.tar.gz and is listed here: https://github.com/maruos/builds/releases/tag/v0.6.8.

So the download logic of the app can just check for the version matching the current build version and architecture and download the right image by just checking the filename of the release assets for that build version.

After that we just need to move it to /data/maru/containers and unpack it correctly using mcprepare. Is this possible with system-privileged apps?

@pintaf
Copy link
Member Author

pintaf commented Jun 2, 2021 via email

@pdsouza
Copy link
Member

pdsouza commented Jun 2, 2021

Sorry guys, I would love to participate in this, but I see no time do to so before at least 2 months. Though times at work...

No worries @pintaf, work always tends to get in the way when you least expect it! But looking forward to having you helping out with Maru again when you are able to - I think it will be fun for you to be involved in the 0.7 release after all the early work you did for it!

@pintaf
Copy link
Member Author

pintaf commented Jun 2, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants