kdave / btrfsmaintenance

Scripts for btrfs maintenance tasks like periodic scrub, balance, trim or defrag on selected mountpoints or directories.
GNU General Public License v2.0
900 stars 79 forks source link

Symlink update script not working in Ubuntu #26

Closed juchong closed 6 years ago

juchong commented 7 years ago

The shell script would skip over both cases because the if statement was looking for a file. Adding the configuration file fixed the issue. Tested in Ubuntu 14.04

sten0 commented 6 years ago

Btrfsmaintenance has been packaged for Debian and is currently waiting for ftp-masters to push it to the archive. After the next release I plan to upload to unstable, where Ubuntu will automatically sync it for their next release. Ubuntu often syncs packages from experimental, so if someone makes it a priority then the current version could be in either this spring's or next fall's official release. Having more people test the package will help it to transition more quickly to Debian stable :-)

https://ftp-master.debian.org/new/btrfsmaintenance_0.3.1-1~exp1.html

kdave commented 6 years ago

Is this fix still need on debian/ubuntu? It changes the path from /etc/sysconfig/btrfsmaintenance to /etc/sysconfig/btrfsmaintenance/sysconfig.btrfsmaintenance, which would not work on openSUSE (and maybe others).

kdave commented 6 years ago

We can add detection for both config file paths, but I'd need to verify that by debian/ubuntu people.

kdave commented 6 years ago

Closing. Feel free to open a new issue if there are any further prolbems on Ubuntu.