diff --git a/lib/bkctld-inc b/lib/bkctld-inc index 049e5cf..58cc990 100755 --- a/lib/bkctld-inc +++ b/lib/bkctld-inc @@ -16,7 +16,7 @@ create_inc_btrfs() { btrfs_bin=$(command -v btrfs) if [ -z "${btrfs_bin}" ]; then - error "btrfs not found. Please install brtfs-progs." + error "btrfs not found. Please install btrfs-progs." fi if dry_run; then diff --git a/lib/bkctld-inc-lock b/lib/bkctld-inc-lock index 0888396..e3c704e 100755 --- a/lib/bkctld-inc-lock +++ b/lib/bkctld-inc-lock @@ -14,7 +14,7 @@ lock_target() { target="${1:?}" btrfs_bin=$(command -v btrfs) if [ -z ${btrfs_bin} ]; then - error "btrfs not found. Please install brtfs-progs." + error "btrfs not found. Please install btrfs-progs." fi if is_btrfs "${target}"; then ${btrfs_bin} property set -ts "${target}" ro true diff --git a/lib/bkctld-init b/lib/bkctld-init index 37a9f78..14a1000 100755 --- a/lib/bkctld-init +++ b/lib/bkctld-init @@ -18,12 +18,11 @@ test -d "${jail_path}" && error "Skip jail \`${jail_name}' : it already exists" # Create config and jails directory mkdir --parents "${CONFDIR}" "${JAILDIR}" -btrfs_bin=$(command -v btrfs) -if [ -z ${btrfs_bin} ]; then - error "btrfs not found. Please install brtfs-progs." -fi - if is_btrfs "$(dirname "${JAILDIR}")" || is_btrfs "${JAILDIR}"; then + btrfs_bin=$(command -v btrfs) + if [ -z ${btrfs_bin} ]; then + error "btrfs not found. Please install btrfs-progs." + fi ${btrfs_bin} subvolume create "${jail_path}" else mkdir --parents "${jail_path}" diff --git a/lib/bkctld-remove b/lib/bkctld-remove index fec8015..f3dc6c3 100755 --- a/lib/bkctld-remove +++ b/lib/bkctld-remove @@ -54,7 +54,7 @@ rm -rf "$(jail_config_dir "${jail_name}")" btrfs_bin=$(command -v btrfs) if [ -z ${btrfs_bin} ]; then - error "btrfs not found. Please install brtfs-progs." + error "btrfs not found. Please install btrfs-progs." fi if is_btrfs "${jail_path}"; then diff --git a/lib/bkctld-rm b/lib/bkctld-rm index c5b8dde..28caef8 100755 --- a/lib/bkctld-rm +++ b/lib/bkctld-rm @@ -64,7 +64,7 @@ delete_inc_btrfs() { btrfs_bin=$(command -v btrfs) if [ -z ${btrfs_bin} ]; then - error "btrfs not found. Please install brtfs-progs." + error "btrfs not found. Please install btrfs-progs." fi if dry_run; then