mirror of
https://github.com/Antynea/grub-btrfs.git
synced 2026-03-04 13:05:00 +08:00
* Use systemd.path to regenerate grub-btrfs.cfg * Added option GRUB_BTRFS_DIRNAME * Updated README
11 lines
389 B
Desktop File
Executable File
11 lines
389 B
Desktop File
Executable File
[Unit]
|
|
Description=Regenerate grub-btrfs.cfg
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
#Inital setup
|
|
EnvironmentFile=/etc/grub.d/41_snapshots-btrfs_config
|
|
ExecStartPre=-/bin/bash -c '[ ! -f "/boot/${GRUB_BTRFS_DIRNAME:-grub}/grub-btrfs.cfg" ] && grub2-mkconfig -o /boot/${GRUB_BTRFS_DIRNAME:-grub}/grub.cfg'
|
|
#Regenerate grub-btrfs.cfg instead of the whole grub menu
|
|
ExecStart=/etc/grub.d/41_snapshots-btrfs
|