Pascal Jäger
ec5ff8b4bc
grub-btrfs: get back the grub_btrfs_search_directory functionality
...
Signed-off-by: Pascal Jäger <pascal.jaeger@leimstift.de >
2023-03-26 19:46:05 +02:00
Pascal Jäger
1556c345da
grub-btrfs: Do root fs detection with btrfs progs
...
Fix : #266 #255
Signed-off-by: Pascal Jäger <pascal.jaeger@leimstift.de >
2023-03-26 19:44:56 +02:00
Pascal Jäger
8028a4376a
grub-btrfsd: change condition to run script
...
Signed-off-by: Pascal Jäger <pascal.jaeger@leimstift.de >
2023-03-26 18:56:35 +02:00
Pascal Jäger
0745117a76
Makefile: add variable GRUB_UPDATE_EXCLUDE
...
Signed-off-by: Pascal Jäger <pascal.jaeger@leimstift.de >
2023-03-26 18:56:35 +02:00
Kevin Chevreuil - Kaisen
2032502e09
Makefile: add an if statement for RHEL distribs based
2023-03-26 18:56:35 +02:00
Kevin Chevreuil - Kaisen
1d53472569
41_snapshots-btrfs: Create a bkp file. Delete the .new when no snapshots found.
2023-03-26 18:56:35 +02:00
Kevin Chevreuil - Kaisen
8ea8046887
Update the Makefile
2023-03-26 18:56:35 +02:00
Kevin Chevreuil - Kaisen
7586639f48
Auto execute the grub-mkconfig command at the installation
2023-03-26 18:56:35 +02:00
Kevin Chevreuil - Kaisen
5ce2dfa640
Only recreation of the submenu
2023-03-26 18:56:35 +02:00
Kevin Chevreuil - Kaisen
44c9cd16d0
Dynamic GRUB entry
2023-03-26 18:56:35 +02:00
Kevin Chevreuil - Kaisen
934a4a38e6
Force the deletion of the grub-btrfs.cfg file
2023-03-26 18:56:35 +02:00
Pascal J
87f030f6e8
Merge pull request #245 from Antynea/improve-config
...
Add kernel command line for snapshots as config parameter
2023-01-22 20:10:16 +01:00
Pascal J
1d33404c78
Merge branch 'master' into improve-config
2023-01-22 20:07:54 +01:00
Pascal Jäger
89ef805e81
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 <pascal.jaeger@leimstift.de >
2022-12-10 22:20:15 +01:00
Pascal Jäger
e03e87dd64
grub-btrfsd: Use bash as interpreter
...
Fix : #248
Signed-off-by: Pascal Jäger <pascal.jaeger@leimstift.de >
2022-12-07 15:01:10 +01:00
Pascal Jäger
f131c38300
manpages: correct some minor things
...
Signed-off-by: Pascal Jäger <pascal.jaeger@leimstift.de >
2022-12-06 23:10:24 +01:00
Pascal Jäger
934ab213b0
grub-btrfs: add custom kernel parameters option for snapshots
...
Fix #214 , #160
Signed-off-by: Pascal Jäger <pascal.jaeger@leimstift.de >
2022-12-06 22:56:44 +01:00
Pascal Jäger
f0ed56d242
grub-btrfs: Improve variable defaults
...
Fix #244
Signed-off-by: Pascal Jäger <pascal.jaeger@leimstift.de >
2022-12-06 22:55:51 +01:00
Pascal Jäger
29ec43e9a6
grub-btrfsd: Fix non POSIX redirect
...
Squashed commit of the following:
commit d75feb59f4
Author: Pascal J <pascal.jaeger@leimstift.de >
Date: Sun Dec 4 22:07:01 2022 +0100
grub-btrsd: update shebang
commit a64379789c
Author: Pavin Joseph <pavinjosdev@gmail.com >
Date: Sun Dec 4 22:52:31 2022 +0530
Update grub-btrfsd
commit fe42568785
Author: Pavin Joseph <pavinjosdev@gmail.com >
Date: Sun Dec 4 04:07:05 2022 +0530
Update grub-btrfsd
Signed-off-by: Pascal Jäger <pascal.jaeger@leimstift.de >
2022-12-04 22:11:00 +01:00
Kevin Chevreuil - Kaisen
6980771cd2
Don't display warnings when the mount command is used
2022-11-29 14:47:18 +01:00
Pascal Jäger
bc167ffe00
Readme: added instructions for --timeshift-old
...
Signed-off-by: Pascal Jäger <pascal.jaeger@leimstift.de >
2022-11-26 17:59:38 +01:00
Pascal Jäger
b661e4e03f
Merge branch 'fix-snap-dir-check'
2022-11-26 17:46:45 +01:00
Pascal Jäger
f594a56232
Merge branch 'improve-version-generation'
2022-11-26 17:44:06 +01:00
Pascal Jäger
fe48642596
Merge branch 'make-prefix-configurable'
2022-11-26 17:38:15 +01:00
Pascal Jäger
bfad9dcc1d
grub-btrfs: Add possibility to configure where grub-btrfs.cfg is created and searched for
...
Closes #187
Signed-off-by: Pascal Jäger <pascal.jaeger@leimstift.de >
2022-11-26 15:14:00 +01:00
Pascal Jäger
e3d0792a74
Post release version bump
...
Signed-off-by: Pascal Jäger <pascal.jaeger@leimstift.de >
2022-11-26 15:10:28 +01:00
Pascal Jäger
efc4657aab
grub-btrfsd: fixed message about flag dependencies
...
Signed-off-by: Pascal Jäger <pascal.jaeger@leimstift.de >
2022-11-26 15:06:44 +01:00
Pascal Jäger
9e34f53ef8
Readme: discribe new version generation
...
Fix #237
Signed-off-by: Pascal Jäger <pascal.jaeger@leimstift.de >
2022-11-26 15:03:10 +01:00
Pascal Jäger
6f154329c7
grub-btrfsd: fix if...else in daemon
...
add description of feature in manpage
fix non sh compatible commands in daemon
Signed-off-by: Pascal Jäger <pascal.jaeger@leimstift.de >
2022-11-26 10:06:19 +01:00
Pascal Jäger
4942989d7f
grub-btrfsd: add flag or old timeshift
...
Signed-off-by: Pascal Jäger <pascal.jaeger@leimstift.de >
2022-11-25 16:58:07 +01:00
Pascal Jäger
91c4aac82c
grub-btrfsd: make dir check of snapshots dir a warning
...
Bug #234
Signed-off-by: Pascal Jäger <pascal.jaeger@leimstift.de >
2022-11-25 08:52:49 +01:00
Pascal Jäger
1d760ad730
Post release version bump
...
Signed-off-by: Pascal Jäger <pascal.jaeger@leimstift.de >
2022-11-23 16:11:45 +01:00
Pascal Jäger
02c3fbb23a
Version 4.12
...
Signed-off-by: Pascal Jäger <pascal.jaeger@leimstift.de >
4.12
2022-11-23 15:58:11 +01:00
Pascal Jäger
13b6df8e9a
grub-btrfsd: Add flag for colorless output
...
Signed-off-by: Pascal Jäger <pascal.jaeger@leimstift.de >
2022-11-23 15:57:52 +01:00
Pascal Jäger
2186d831cd
Readme, Manpages: Improve structure
...
Signed-off-by: Pascal Jäger <pascal.jaeger@leimstift.de >
2022-11-23 15:57:10 +01:00
Pascal Jäger
c9620d5d18
grub-btrfs: Change syntax error message
...
I noticed that this is confusing in #230 , user would search for errors in
the grub-btrfs.cfg file although the old grub-btrfs.cfg file is never
overwritten with grub-btrfs.new
Signed-off-by: Pascal Jäger <pascal.jaeger@leimstift.de >
2022-11-21 22:59:22 +01:00
Pascal Jäger
33810a9274
grub-btrfs: print version of the script with --version
...
Close #225
Signed-off-by: Pascal Jäger <pascal.jaeger@leimstift.de >
2022-11-21 22:59:22 +01:00
Pascal J
1969132073
Update README.md
2022-11-20 23:13:51 +01:00
Pascal Jäger
ead3849613
Readme: make instructions on how to run the script clearer
...
Signed-off-by: Pascal Jäger <pascal.jaeger@leimstift.de >
2022-11-20 22:27:38 +01:00
Pascal Jäger
75f7d85261
grub-btrfs: Add warning when there is no entry in grub.cfg
...
Fix #219
Signed-off-by: Pascal Jäger <pascal.jaeger@leimstift.de >
2022-11-20 22:15:48 +01:00
Pascal Jäger
d406ce795c
grub-btrfsd: error when inotifywait is not found
...
Fix #227
Signed-off-by: Pascal Jäger <pascal.jaeger@leimstift.de >
2022-11-20 21:34:40 +01:00
Pascal Jäger
b2b5307fe4
grub-btrfs: sanitize title menu entries
...
Closes #198
Signed-off-by: Pascal Jäger <pascal.jaeger@leimstift.de >
2022-11-20 21:19:45 +01:00
Pascal Jaeger
57687ac0ab
general: Update README, better instructions
...
for Fedora
Fix : #221
Signed-off-by: Pascal Jaeger <pascal.jaeger@leimstift.de >
2022-10-21 08:59:23 +02:00
Pascal J
a6e9caf6f4
Merge pull request #218 from Schievel1/update-daemon
...
Merge openRC and systemd daemon
2022-10-21 08:32:30 +02:00
Pascal J
36cee77bd8
Merge branch 'master' into update-daemon
2022-10-21 08:32:02 +02:00
Pascal Jäger
de68795d70
grub-btrfsd: better support commandline timeshift
...
When a snapshot is created with `timeshift --create` an the commandline,
sometimes the daemon is not fast enough between the
first (/run/timeshift) inotifywait and the second (an the actual
snapshot directory) inotifywait. Even without any `sleep` between them.
So now the grub (sub)menu is always created once in its own process when the daemon sees a
timeshift startup.
Signed-off-by: Pascal Jäger <pascal.jaeger@leimstift.de >
2022-10-21 08:27:51 +02:00
Pascal Jäger
4c63b65e9e
grub-btrfsd: Error message when grub(-btrfs) fails
...
Signed-off-by: Pascal Jäger <pascal.jaeger@leimstift.de >
2022-10-21 08:26:17 +02:00
Pascal J
bc09bbda65
Merge pull request #223 from S-trace/fix_silent_failure
...
Fix silent update-grub failure if root FS is not supported by GRUB2
2022-10-21 08:02:14 +02:00
Soul Trace
19f62ee6e6
Fix silent update-grub failure if root FS is not supported by GRUB2
...
If root FS is on volume not supported by GRUB2 - `update-grub` silently fails because `snapshots-btrfs` GRUB hook
silently fails at `root_fs=$(${grub_probe} --target="fs" /)` due to `set -e` at the beginning of `snapshots-btrfs`.
Failure of commands in test clause in Bash does not trigger set -v error and can be handled in script to
exit gracefully - implement this.
Fixes https://github.com/Antynea/grub-btrfs/issues/222
2022-10-18 17:52:25 +03:00
Pascal Jäger
4580c0fa2c
grub-btrfsd: better instructions for daemon config
...
Signed-off-by: Pascal Jäger <pascal.jaeger@leimstift.de >
2022-09-05 20:20:47 +02:00