#!/bin/bash # Running these files directly won't be good since we are # unmounting the volume they live on. # This never really get's run, since we normally only # seed these files to other hosts using btrbk-run. set -eE -o pipefail trap 'echo "$0:$LINENO:error: \"$BASH_COMMAND\" returned $?" >&2' ERR [[ $EUID == 0 ]] || exec sudo -E "$BASH_SOURCE" "$@" cd $(dirname $(readlink -f "${BASH_SOURCE}")) echo install mount-latest-subvol check-subvol-stale /usr/local/bin install mount-latest-subvol check-subvol-stale /usr/local/bin