aboutsummaryrefslogtreecommitdiff
path: root/sbin/bectl
diff options
context:
space:
mode:
authorKyle Evans <kevans@FreeBSD.org>2021-01-16 05:58:12 +0000
committerKyle Evans <kevans@FreeBSD.org>2021-01-16 06:07:50 +0000
commitde661c9f8652f6a51a6ca83d404d9170404990f8 (patch)
tree866aa11c2bf711dc095fc4e146c397efa0e57ddc /sbin/bectl
parent79a5c790bdf08cb925693add4699f3e785c12bc6 (diff)
downloadsrc-de661c9f8652f6a51a6ca83d404d9170404990f8.tar.gz
src-de661c9f8652f6a51a6ca83d404d9170404990f8.zip
bectl: tests: use -R <mount> instead of specifying altroot
-R is currently shorthand for cachefile=none, altroot=<mount>. This is functionally the same, but perhaps more resilient to future changes that could be necessary that may be added when -R is specified. MFC after: 1 week
Diffstat (limited to 'sbin/bectl')
-rwxr-xr-xsbin/bectl/tests/bectl_test.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/bectl/tests/bectl_test.sh b/sbin/bectl/tests/bectl_test.sh
index 5e4a585b485a..36c92235b6d8 100755
--- a/sbin/bectl/tests/bectl_test.sh
+++ b/sbin/bectl/tests/bectl_test.sh
@@ -51,7 +51,7 @@ bectl_create_setup()
kldload -n -q zfs || atf_skip "ZFS module not loaded on the current system"
atf_check mkdir -p ${mnt}
atf_check truncate -s 1G ${disk}
- atf_check zpool create -o altroot=${mnt} ${zpool} ${disk}
+ atf_check zpool create -R ${mnt} ${zpool} ${disk}
atf_check zfs create -o mountpoint=none ${zpool}/ROOT
atf_check zfs create -o mountpoint=/ -o canmount=noauto \
${zpool}/ROOT/default