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

fix: log2ram can't stop before it's installed #869

Merged
merged 1 commit into from
Aug 8, 2024

Conversation

cwiggs
Copy link
Contributor

@cwiggs cwiggs commented Jul 30, 2024

Description

This PR fixes an issue with setup/setup_device.sh where log2ram service would try to stop before log2ram was installed. I copied the log2ram logic from rootfs/standard/usr/bin/mynode_post_upgrade.sh as it looks like it functions correctly.

This is a fix for log2ram not working, and why I opened #868

Checklist

  • tested successfully on local MyNode, if yes, list the device(s) below
  • mentioned related open issue, if any

List of test device(s)

x86 Debian 12 VM on Proxmox.

This commit fixes an issue with `setup/setup_device.sh` where log2ram
service would try to stop before log2ram was installed.  I copied the
log2ram logic from `rootfs/standard/usr/bin/mynode_post_upgrade.sh` as
it looks like it functions correctly.

In the future I think we should add a feature to disable log2ram since
it is really only needed when you are running on an sdcard or USB, but
that will be for another day.
@cwiggs cwiggs mentioned this pull request Jul 30, 2024
@tehelsper
Copy link
Collaborator

Thanks. Setup_device.sh only should run once when making new images, but this would prevent re-installs from happening if the script failed and had to be re-run.

@tehelsper tehelsper merged commit 6162fe0 into mynodebtc:master Aug 8, 2024
@cwiggs cwiggs deleted the fix/log2ram branch August 8, 2024 14:15
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.

None yet

2 participants