Accepting request 559129 from filesystems
OBS-URL: https://build.opensuse.org/request/show/559129 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/btrfsmaintenance?expand=0&rev=13
This commit is contained in:
commit
b62c26800a
24
btrfsmaintenance-switch-to-timer.patch
Normal file
24
btrfsmaintenance-switch-to-timer.patch
Normal file
@ -0,0 +1,24 @@
|
||||
--- btrfsmaintenance-refresh-cron.sh
|
||||
+++ btrfsmaintenance-refresh-cron.sh 2017/12/17 11:12:22
|
||||
@@ -91,6 +91,10 @@
|
||||
|
||||
case "$BTRFS_TIMER_IMPLEMENTATION" in
|
||||
systemd-timer)
|
||||
+ # Deinstall cron jobs, don't run it twice.
|
||||
+ for SCRIPT in btrfs-scrub btrfs-defrag btrfs-balance btrfs-trim; do
|
||||
+ refresh_cron uninstall ${SCRIPT}.sh
|
||||
+ done
|
||||
refresh_timer "$BTRFS_SCRUB_PERIOD" btrfs-scrub
|
||||
refresh_timer "$BTRFS_DEFRAG_PERIOD" btrfs-defrag
|
||||
refresh_timer "$BTRFS_BALANCE_PERIOD" btrfs-balance
|
||||
--- btrfsmaintenance-refresh.service
|
||||
+++ btrfsmaintenance-refresh.service 2017/12/17 11:04:07
|
||||
@@ -3,7 +3,7 @@
|
||||
After=local-fs.target
|
||||
|
||||
[Service]
|
||||
-ExecStart=/usr/share/btrfsmaintenance/btrfsmaintenance-refresh-cron.sh
|
||||
+ExecStart=/usr/share/btrfsmaintenance/btrfsmaintenance-refresh-cron.sh systemd-timer
|
||||
Type=oneshot
|
||||
|
||||
[Install]
|
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Sun Dec 17 12:18:45 CET 2017 - kukuk@suse.de
|
||||
|
||||
- Switch default of btrfsmaintenance-refresh.service to systemd-timer,
|
||||
too (btrfsmaintenance-switch-to-timer.patch) [bsc#1073204]
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Dec 6 15:55:53 CET 2017 - kukuk@suse.de
|
||||
|
||||
|
@ -23,7 +23,7 @@
|
||||
|
||||
Name: btrfsmaintenance
|
||||
Version: 0.3.1
|
||||
Release: 10.2
|
||||
Release: 0
|
||||
Summary: Scripts for btrfs periodic maintenance tasks
|
||||
License: GPL-2.0
|
||||
Group: System/Base
|
||||
@ -32,6 +32,7 @@ Source0: %{name}-%{version}.tar.bz2
|
||||
# PATCH-FIX-OPENSUSE btrfsmaintenance-0.3.1-fix-rpm-db-path.patch -- Fix RPM database path for Tumbleweed
|
||||
Patch0: btrfsmaintenance-0.3.1-fix-rpm-db-path.patch
|
||||
Patch1: pull-request-36.patch
|
||||
Patch2: btrfsmaintenance-switch-to-timer.patch
|
||||
Requires: zypp-plugin-python
|
||||
Requires: libzypp(plugin:commit)
|
||||
#Recommends: cron
|
||||
@ -54,6 +55,7 @@ on selected mountpoints or directories.
|
||||
%patch0
|
||||
%endif
|
||||
%patch1 -p1
|
||||
%patch2 -p0
|
||||
|
||||
%build
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user