mirror of
https://github.com/Antynea/grub-btrfs.git
synced 2026-03-07 06:44:35 +08:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
091ffc0ae9 | ||
|
|
28990c45bb |
11
README.md
11
README.md
@@ -24,8 +24,17 @@ Supports manual snapshots, snapper ...
|
||||
* Automatically generate `grub.cfg` if you use the provided systemd service.
|
||||
##
|
||||
### Installation :
|
||||
#### Arch Linux
|
||||
|
||||
```
|
||||
pacman -S grub-btrfs
|
||||
```
|
||||
|
||||
### Manual
|
||||
|
||||
* Run `make install` or look into Makefile for instructions on where to put each file.
|
||||
* Generate your Grub menu after installation for the changes to take effect. (on Arch linux use `grub-mkconfig -o /boot/grub/grub.cfg`)
|
||||
|
||||
NOTE: Generate your Grub menu after installation for the changes to take effect. (on Arch Linux use `grub-mkconfig -o /boot/grub/grub.cfg`)
|
||||
##
|
||||
### Customization:
|
||||
|
||||
|
||||
@@ -6,6 +6,6 @@ Type=oneshot
|
||||
# Set the possible paths for `grub-mkconfig`
|
||||
Environment="PATH=/sbin:/bin:/usr/sbin:/usr/bin"
|
||||
# Load environment variables from the configuration
|
||||
EnvironmentFile=/etc/grub.d/41_snapshots-btrfs_config
|
||||
EnvironmentFile=/etc/default/grub-btrfs/config
|
||||
# Regenerate just '/boot/grub/grub-btrfs.cfg' if it exists and is not empty, else regenerate the whole grub menu
|
||||
ExecStart=/bin/bash -c 'if [ -s "/boot/${GRUB_BTRFS_DIRNAME:-grub}/grub-btrfs.cfg" ]; then /etc/grub.d/41_snapshots-btrfs; else ${GRUB_BTRFS_MKCONFIG:-/usr/bin/grub-mkconfig} -o /boot/${GRUB_BTRFS_DIRNAME:-grub}/grub.cfg; fi'
|
||||
|
||||
Reference in New Issue
Block a user