Skip to content

Commit

Permalink
Fix typos: replaced health-checker.state occurances with `health-ch…
Browse files Browse the repository at this point in the history
…eck.state` (#23)
  • Loading branch information
C0ffeeCode authored and Vogtinator committed Sep 25, 2024
1 parent 22d997c commit 955c27c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ responsible to check a special service or condition. For this, the plugin is
called with the option *check*. If this fails, the plugin will exit with the
return value `1`, else `0`.
If everyting was fine, the script will create a
`/var/lib/misc/health-checker.state` file with the number of the current,
`/var/lib/misc/health-check.state` file with the number of the current,
working btrfs subvolume with the root filesystem.
If a plugin reports an error condition, the `health-checker` script will take
following actions:
Expand Down
6 changes: 3 additions & 3 deletions grub/05_health_check
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ if [ -z "\${chosen}" -a -z "\${boot_once}" ]; then
btrfs-mount-subvol (\${root}) /var /@/var
btrfs-mount-subvol (\${root}) /var/lib/misc /@/var/lib/misc
if [ -e /var/lib/misc/health-checker.state ]; then
source /var/lib/misc/health-checker.state
if [ -e /var/lib/misc/health-check.state ]; then
source /var/lib/misc/health-check.state
if [ -n \${LAST_WORKING_SNAPSHOT} ]; then
LAST_WORKING_SNAPSHOTS=\${LAST_WORKING_SNAPSHOT}
fi
Expand All @@ -29,7 +29,7 @@ if [ -z "\${chosen}" -a -z "\${boot_once}" ]; then
# health-checker versions):
# Due to boo#1048088 btrfs-list-subvols currently doesn't give a list of
# subvolumes, so it's not possible to map
# /var/lib/misc/health-checker.state to a snapshot directory; use
# /var/lib/misc/health-check.state to a snapshot directory; use
# transactional-update state file as a workaround.
if [ -z \${LAST_WORKING_SNAPSHOTS} -a -e /var/lib/misc/transactional-update.state ]; then
source /var/lib/misc/transactional-update.state
Expand Down

0 comments on commit 955c27c

Please sign in to comment.