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
Create 4GB swapfile on external storage #180
Conversation
I've tested this and it's working for me. You can test the entire update process with:
After the next reboot you should have a 4GB swap file at Do you think we should create the new swapfile on the fly after OTA update so users don't need to reboot to get access to swap? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, @lukechilds! Super-sleek. Will test it out now.
Do you think we should create the new swapfile on the fly after OTA update so users don't need to reboot to get access to swap?
Yeah, that sounds like a great idea!
The 4GB swap was created successfully with no problems in my testing! Although it looks like it didn't remove
|
Do you still have the |
Yep, it looks like so:
|
Lol also didn't realize your branch was at v0.2.2. The update process changed my installation from v0.2.3 to v0.2.2. A good stress test regardless haha! |
Oops, like like I forget to fetch upstream before I branched off. Yeah |
@mayankchhabra I've made the suggested amendments. If you re-install based on this and make sure you remove swapfile/bindmount and re-install adn enable dphys-swapfile you should see everything is uninstalled/re-created after update. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested and everything looks great, @lukechilds! Awesome work here. Let's release this tomorrow 🚀
umbrel@umbrel-testnet:~ $ dphys-swapfile
-bash: dphys-swapfile: command not found
umbrel@umbrel-testnet:~ $ free -h
total used free shared buff/cache available
Mem: 7.6Gi 384Mi 6.9Gi 8.0Mi 376Mi 7.1Gi
Swap: 4.0Gi 0B 4.0Gi
Resolves #104
Bind mount
/mnt/data/swap
on external storage to/swap
and create 4GB swapfile at/swap/swapfile
.