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

feat: increase rootfs tools size from 100MB to 256MB #38

Closed
wants to merge 1 commit into from

Conversation

edubart
Copy link
Contributor

@edubart edubart commented Mar 19, 2024

This fixes #32

Currently the rootfs is too small for playing with VirtIO networking, you can't use apt-get update && apt-get install -y python for example because there is not enough disk space.

I believe we should make easier to let people experiment trying out packages with less friction using the rootfs we provide as example, the increase from 100MB to 256MB is enough to allow people installing and experimenting python and other packages.

For example, after this PR, you can execute the following without errors:

$ cartesi-machine --network --append-init=USER=root -it "apt-get update && apt-get install -y python && python"
...
Python 3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> 

@edubart edubart added the enhancement New feature or request label Mar 19, 2024
@edubart edubart self-assigned this Mar 19, 2024
@edubart edubart linked an issue Mar 19, 2024 that may be closed by this pull request
@edubart edubart requested a review from vfusco March 19, 2024 13:56
@vfusco
Copy link
Contributor

vfusco commented Apr 19, 2024

Another solution was proposed truncating the file and using resize2fs inside of the machine when this is needed.

@vfusco vfusco closed this Apr 19, 2024
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

Successfully merging this pull request may close these issues.

Add more free space to rootfs-tools.ext2
2 participants