-
Notifications
You must be signed in to change notification settings - Fork 148
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
log2ram for x86? #868
Comments
Yeah, that change would be beneficial. The model two (which is x86) boots off of a SD card or USB flash drive, so this was added as an optimization for that platform. It may be better to leave it installed and just disable log2ram if it's not on an SD card during startup or add an option to enable/disable on the settings page manually. The images are typically made using log2ram while they are on an USB drive, so any detection done during setup_device.sh may not represent the final drive the device is actually using. There's also one other install location in mynode_post_upgrade.sh. |
Ah okay that makes sense.
Yeah that makes sense. For the time being I'll do some work to see why it's failing on Debian 12 and either fix it or create an option to disable starting the service.
Okay. I'm just using the setup_device.sh script on a Debian 12 VM so I'm not sure how that merges with the building the image logic. Any suggestions and how to deal with this?
I see there is a lot of duplicated code in |
I was able to fix the issue with Debian 12, PR is her: #869 I still think it's good to do a few things:
Let me know what you think about the above things, and the questions from my previous comment and I'd be happy to support PRs for all of this. Thanks for the app, MyNode has been super helpful for me, I just switched to it from Umbrel. |
Glad to hear you've been liking it!
OK, I see how you've been using setup_device. That's basically the use case, when running it on a base debian distro, it will add and install and the default apps and software. Your PR change was good.
There is a lot of duplication between the two, but they have different use cases and at this point, that code almost never needs to change. I'd prefer not to change it up at this point. A lot duplicate code that does change was pulled out into a separate script and all future apps use the SDK approach so they go into their own locations without needing to be in either I like the second suggested option the most. The first could be nice, but I worry it could be error-prone. I'm not sure how to consistently detect the type of hardware. |
Describe the bug
This might be a question more than anything. I noticed in the setup_device.sh script here: https://github.com/mynodebtc/mynode/blob/master/setup/setup_device.sh#L457 it installs log2ram if the system is a RPI or x86 device.
When trying to run this on a Debian 12 VM in proxmox log2ram failed to start. I ended up just disabling it all together since I don't really want logs going to ram on this system. I was thinking it might be better to check if the system is an sdcard and if so setup log2ram.
I'd be willing to submit a PR if you think that is a good idea.
Expected behavior
log2ram should only be enabled if the system is using an sd card.
Screenshots
n/a
Desktop (please complete the following information):
n/a
MyNode hardware (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: