]> git.hungrycats.org Git - bees/commitdiff
scripts/beesd: no need for `$BEESHOME` to be a subvol
authorZygo Blaxell <bees@furryterror.org>
Mon, 20 Jan 2025 05:24:25 +0000 (00:24 -0500)
committerZygo Blaxell <bees@furryterror.org>
Mon, 20 Jan 2025 05:43:13 +0000 (00:43 -0500)
We _recommend_ that `$BEESHOME` should be a subvol, and we'll create a
subvol if no directory exists; however, there's no reason to reject an
existing plain directory if the user chooses to use one.

Signed-off-by: Zygo Blaxell <bees@furryterror.org>
scripts/beesd.in

index 3d2167753c76576879f95e127f144febb8093543..8afeed4e72db7ec2dbee4687b7add9f21ab42519 100755 (executable)
@@ -121,8 +121,6 @@ mount --make-private -osubvolid=5 /dev/disk/by-uuid/$UUID "$MNT_DIR" || exit 1
 if [ ! -d "$BEESHOME" ]; then
     INFO "Create subvol $BEESHOME for store bees data"
     btrfs sub cre "$BEESHOME"
-else
-    btrfs sub show "$BEESHOME" &> /dev/null || ERRO "$BEESHOME MUST BE A SUBVOL!"
 fi
 
 # Check DB size