Skip to content

Commit

Permalink
Readme: Add a new paragraph in Automatically update grub
Browse files Browse the repository at this point in the history
Readme: Add a new paragraph in `Automatically update grub`
* Add information to be able to update the `grub-btrfs` menu every time the system is restart/shutdown.
  • Loading branch information
Antynea authored Feb 18, 2021
1 parent 2af5791 commit fbd94ac
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ See [config file](https://github.com/Antynea/grub-btrfs/blob/master/config) for

##
### Automatically update grub
If you would like grub-btrfs menu to automatically update when a snapshot is created or deleted:
1- If you would like grub-btrfs menu to automatically update when a snapshot is created or deleted:
* Use `systemctl enable grub-btrfs.path`.
* `grub-btrfs.path` automatically (re)generates `grub-btrfs.cfg` when a modification appears in `/.snapshots` mount point (by default).
* If the `/.snapshots` mount point is already mounted, then use `systemctl start grub-btrfs.path` to start monitoring.
Expand Down Expand Up @@ -87,6 +87,10 @@ use `systemctl list-units -t mount`.
Otherwise, the unit will automatically start monitoring when the mount point will be available.
* You can view your change to `systemctl cat grub-btrfs.path`.
* To revert change use `systemctl revert grub-btrfs.path`.

2 - If you want the grub-btrfs menu to update automatically on system restart/shutdown:
[Look at this comment](https://github.com/Antynea/grub-btrfs/issues/138#issuecomment-766918328)
Currently not included in the package.
##### Warning :
by default, `grub-mkconfig` command is used.
Might be `grub2-mkconfig` on some systems (Fedora ...).
Expand Down

0 comments on commit fbd94ac

Please sign in to comment.