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

DietPi-Software | Netdata: Fix critical bug that lead to netdata uninstall removing parts of the whole root directory, destroying the system #2338

Merged
merged 18 commits into from
Dec 10, 2018

Conversation

MichaIng
Copy link
Owner

@MichaIng MichaIng commented Dec 9, 2018

Status: Ready

  • Pre-patch
  • Changelog
  • RC up

Testing

  • Update from v6.19.6
 DietPi-Pre-patch
─────────────────────────────────────────────────────
[ INFO ] Applying critical pre-patches

[ INFO ] Pre-patch 4 | Fix a critical issue, where uninstalling netdata would break the whole system

[ INFO ] DietPi-Update will now exit. No reboot is required, no further update steps are done.
 - To apply the new version string to your terminal session, please manually run:
        source /DietPi/dietpi/func/dietpi-globals

Terminated
  • Update from v6.19.5
 DietPi-Pre-patch
─────────────────────────────────────────────────────
[ INFO ] Applying critical pre-patches

[ INFO ] Pre-patch 3 | DietPi-Software: Resolving "systemctl force-reload" error in case of inactive services
[ INFO ] Pre-patch 4 | Fix a critical issue, where uninstalling netdata would break the whole system

[ INFO ] DietPi-Update will now exit. No reboot is required, no further update steps are done.
 - To apply the new version string to your terminal session, please manually run:
        source /DietPi/dietpi/func/dietpi-globals

Terminated
root@VM-Stretch:~# grep 'userdel.*netdata' /DietPi/dietpi/dietpi-software
                        userdel netdata
  • Update from v6.19.4: Leads to full patch

Reference: https://github.com/Fourdee/DietPi/issues/2336

+ DietPi-Software | Netdata: Fix critical bug that lead to netdata uninstall removing parts of the whole root directory, destroying the system
+ DietPi-Patch | DietPi-Software: Patch netdata uninstall from breaking system
+ CHANGELOG | Netdata uninstall fix
@MichaIng MichaIng requested a review from Fourdee December 9, 2018 19:06
+ RC up
+ DietPi-Pre-Patch | Minor visual+wording and starting dietpi-services after last pre-patch has applied
@MichaIng
Copy link
Owner Author

MichaIng commented Dec 9, 2018

Fix docker on RPi as well, if we already push an update? https://github.com/Fourdee/DietPi/issues/2282

Copy link
Collaborator

@Fourdee Fourdee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@MichaIng

Thanks, looks good my end, feel free to merge if local testing is passed 👍

@MichaIng
Copy link
Owner Author

MichaIng commented Dec 10, 2018

@MichaIng
I'm currently testing Docker fix. Should actually work, since it did for other packages (see link to forum), but if I understood correctly it did not work for user with docker.
€: Was due to leading 5: in version string 🙄.

+ DietPi-Pre-Patch | Prevent faulty "docker-ce" upgrade and downgrade, if required. NB: This is for non-RPi currently to allow testing, will be for RPi only, after testing passed
+ DietPi-Pre-Patch | Prevent dietpi-software patch to be applied multiple times
+ DietPi-Pre-Patch | Syntax: Correctly escape single quotes within single quotes
+ DietPi-Pre-Patch | Syntax: Single quotes and newlines within "sed"
+ DietPi-Pre-Patch | Reorder output, apply conditions and fix
+ DietPi-Software | Docker: Workaround faulty "docker-ce" version in repo
+ DietPi-Pre-Patch | Syntax
+ CHANGELOG | Docker version fix for RPi
+ CHANGELOG | Date up
+ DietPi-Patch | Docker on RPi: Prevent faulty "docker-ce" APT upgrade and downgrade to last working version, if required
@MichaIng
Copy link
Owner Author

MichaIng commented Dec 10, 2018

Okay, pre-patch, usual patch works fine now.

Have to work for 2 hours, will do final testing afterwards. And switch change to RPi + Raspbian package (currently applies on Debian, for testing purpose, but on Raspbian everything else is identical).

Release definitely today.


🈯️ Final test of all install/update paths passed. Will switch to raspbian and merge.

+ DietPi-Software | Docker: Remove additional package and repo from new install method
+ DietPi-Software | Docker: Switch fix to "raspbian" for final release
+ DietPi-Patch | Docker: Switch fix to "raspbian" for final release
+ DietPi-Software | Docker: Switch fix to RPi for final release
+ DietPi-Pre-Patch | Docker: Switch fix to RPi and "raspbian" for final release
@MichaIng MichaIng merged commit 06c1220 into master Dec 10, 2018
@MichaIng MichaIng deleted the netdata_fix branch December 10, 2018 21:00
@MichaIng
Copy link
Owner Author

MichaIng commented Dec 10, 2018

MichaIng added a commit that referenced this pull request Dec 10, 2018
+ DietPi-Software | Docker: Port PR #2338 to dev
MichaIng added a commit that referenced this pull request Dec 10, 2018
DietPi-Patch | Port PR #2338 to dev
MichaIng added a commit that referenced this pull request Dec 10, 2018
+ DietPi-Pre-Patch | Port PR #2338 minor visual changes
@Fourdee
Copy link
Collaborator

Fourdee commented Dec 11, 2018

@MichaIng

Legend, thank you 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants