Skip to content

Commit 25ebfaf

Browse files
author
Guy
committed
Updated README with sysvinit
1 parent e8ba990 commit 25ebfaf

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

‎README.md‎

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,31 @@ After that, the daemon should be restarted with:
274274
sudo rc-service grub-btrfsd restart
275275
```
276276

277+
- - -
278+
#### grub-btrfsd Sysvinit instructions
279+
The sysvinit grub-btrfsd script is designed for Debian and
280+
Debian-based distributions using sysvinit (Devuan, MX Linux, etc). It depends on Linux
281+
Standards Base (LSB) init functions which are located at
282+
`/lib/lsb/init-functions` on Debian and Debian-derivatives. These functions may be located in a
283+
different directory in other distributions using sysvinit, and the
284+
functions contained therein may differ from those called in the script.
285+
286+
To start the daemon run:
287+
```bash
288+
sudo service grub-btrfsd start
289+
```
290+
291+
To activate it during system startup, run:
292+
```bash
293+
sudo update-rc.d grub-btrfsd defaults
294+
```
295+
296+
##### 💼 Snapshots not in `/.snapshots` for Sysvinit
297+
By default the daemon is watching the directory `/.snapshots`. If the daemon should watch a different directory, it can be edited by passing different arguments to it.
298+
Arguments are passed to grub-btrfsd via `DAEMON_ARGS` and `SNAPSHOTS`
299+
variables in the script `/etc/init.d/grub-btrfsd`.
300+
The variable `SNAPSHOTS` defines the path the daemon will monitor for snapshots.
301+
277302
##### 🔒 Snapshots on LUKS encrypted devices
278303
By default, grub-btrfs generates entries that does not load modules for dealing with encrypted devices.
279304
Enable the `GRUB_BTRFS_ENABLE_CRYPTODISK` variable in `/etc/default/grub-btrfs/config` to load said modules and then execute the steps to mount encrypted root after selecting the snapshot.

0 commit comments

Comments
 (0)