grub-btrfsd(8)
π grub-btrfsd(8) β System Manager's Manual, but make it group chat π
okay so bestie, this is the manual page for grub-btrfsd(8) and it's literally an OpenRC daemon situation. Let's get into it β¨
π NAME π
grub-btrfsd β an OpenRC daemon to automatically update the grub menu with grub-btrfs(8) when a new btrfs snapshot is created. π
π SYNOPSIS π
grub-btrfsd [-h, --help] [-c, --no-color] [-l, --log-file LOG_FILE] [-r, --recursive] [-s, --syslog] [-t, --timeshift-auto] [-o, --timeshift-old] [-v, --verbose] SNAPSHOTS_DIRS
π¦ DESCRIPTION π¦
grub-btrfsd is a shell script which is meant to be run as a daemon. No cap.
It watches a directory where btrfs-snapshots are created or deleted via inotifywait, and when something in that directory changes it runs grub-mkconfig (if grub-mkconfig never ran before since grub-btrfs was installed) or /etc/grub.d/41_snapshots-btrfs (when grub-mkconfig ran before with grub-btrfs installed). That's the whole main-character job, periodt. π
β¨ OPTIONS β¨
SNAPSHOTS_DIRSβ This argument specifies the (space separated) paths wheregrub-btrfsdlooks for newly created snapshots and snapshot deletions. It is usually defined by the program used to make snapshots. E.g. for Snapper this would be/.snapshots. It is possible to define more than one directory here, all directories will inherit the same settings (recursive etc.). This argument is not necessary to provide if--timeshift-autois set. π-c,--no-colorβ Disable colors in output.-l,--log-fileβ This argument specifies a file wheregrub-btrfsdshould write log messages.-r,--recursiveβ Watch snapshot directory recursively-s,--syslogβ Write to syslog-t,--timeshift-autoβ This is a flag to activate the auto detection of the path where Timeshift stores snapshots. Newer versions (>=22.06) of Timeshift mount their snapshots to/run/timeshift/$PID/backup/timeshift-btrfs. Where$PIDis the process ID of the currently running Timeshift session. The PID is changing every time Timeshift is opened.grub-btrfsdcan automatically take care of the detection of the correct PID and directory if this flag is set. In this case the argumentSNAPSHOTS_DIRShas no effect. π₯-o,--timeshift-oldβ Look for snapshots in/run/timeshift/backup/timeshift-btrfsinstead of/run/timeshift/$PID/backup/timeshift-btrfs. This is to be used for Timeshift versions<22.06.-v,--verboseβ Let the log of the daemon be more verbose-h,--helpβ Displays a short help message.
βοΈ CONFIGURATION βοΈ
The daemon is usually configured via the file /etc/conf.d/grub-btrfsd on openrc-init systems and sudo systemctl edit --full grub-btrfsd on systemd systems. In this file the arguments (See OPTIONS), that OpenRC passes to the daemon when it is started, can be configured. π οΈ
π NOTES π
A common configuration for Snapper would be to set SNAPSHOTS_DIR to /.snapshots and not to set --timeshift-auto. For Timeshift --timeshift-auto is set to true and SNAPSHOTS_DIR can be left as is. π«Ά
π FILES π
/etc/conf.d/grub-btrfsd/usr/lib/systemd/system/grub-btrfsd.service
π SEE ALSO π
btrfs(8)btrfs-subvolume(8)grub-btrfsd(8)grub-mkconfig(8)inotifywait(1)openrc(8)rc-service(8)timeshift(1)
Β©οΈ COPYRIGHT Β©οΈ
Copyright (c) 2022 Pascal JΓ€ger
okay bye bestie π β this was the System Manager's Manual page for grub-btrfsd(8), and there's no date/version line on this one, just the manual name at the footer vibe. mwah! π
π¦ where this page comes from
- arch rolling: grub-btrfs 4.14-1 Β· GPL-3.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms