Skip to content

Commit 89ef805

Browse files
committed
grub-btrfsd: do no append with += to optional args
This does not work anymore, but it should be similar to the systemd service file anyway, where things are just written in one line. Signed-off-by: Pascal Jäger <[email protected]>
1 parent e03e87d commit 89ef805

File tree

3 files changed

+9
-15
lines changed

3 files changed

+9
-15
lines changed

README.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -287,18 +287,15 @@ snapshots="/.snapshots" # Snapper in the root directory
287287
#snapshots="/run/timeshift/backup/timeshift-btrfs/snapshots" # Timeshift < v22.06
288288

289289
## Optional arguments to run with the daemon
290+
# Append options to this like this:
291+
# optional_args="--syslog --timeshift-auto --verbose"
290292
# Possible options are:
291293
# -t, --timeshift-auto Automatically detect Timeshifts snapshot directory for timeshift >= 22.06
292-
# -o, --timeshift-old Activate for timeshift versions <22.06
294+
# -o, --timeshift-old Look for snapshots in directory of Timeshift <v22.06 (requires --timeshift-auto)
293295
# -l, --log-file Specify a logfile to write to
294296
# -v, --verbose Let the log of the daemon be more verbose
295297
# -s, --syslog Write to syslog
296-
# Uncomment the line to activate the option
297-
optional_args+="--syslog " # write to syslog by default
298-
#optional_args+="--timeshift-auto "
299-
#optional_args+="--timeshift-old "
300-
#optional_args+="--log-file /var/log/grub-btrfsd.log "
301-
#optional_args+="--verbose "
298+
optional_args="--syslog"
302299
```
303300

304301
After that, the daemon should be restarted with

config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bash
22

3-
GRUB_BTRFS_VERSION=4.12-master-2022-12-07T14:01:10+00:00
3+
GRUB_BTRFS_VERSION=4.12-master-2022-12-10T21:20:15+00:00
44

55
# Disable grub-btrfs.
66
# Default: "false"

grub-btrfsd.confd

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,12 @@ snapshots="/.snapshots" # Snapper in the root directory
66
#snapshots="/run/timeshift/backup/timeshift-btrfs/snapshots" # Timeshift < v22.06
77

88
## Optional arguments to run with the daemon
9+
# Append options to this like this:
10+
# optional_args="--syslog --timeshift-auto --verbose"
911
# Possible options are:
1012
# -t, --timeshift-auto Automatically detect Timeshifts snapshot directory for timeshift >= 22.06
11-
# -o, --timeshift-old Activate for timeshift versions <22.06
13+
# -o, --timeshift-old Look for snapshots in directory of Timeshift <v22.06 (requires --timeshift-auto)
1214
# -l, --log-file Specify a logfile to write to
1315
# -v, --verbose Let the log of the daemon be more verbose
1416
# -s, --syslog Write to syslog
15-
# Uncomment the line to activate the option
16-
optional_args+="--syslog " # write to syslog by default
17-
#optional_args+="--timeshift-auto "
18-
#optional_args+="--timeshift-old "
19-
#optional_args+="--log-file /var/log/grub-btrfsd.log "
20-
#optional_args+="--verbose "
17+
optional_args="--syslog"

0 commit comments

Comments
 (0)