From: Zygo Blaxell Date: Mon, 20 Jan 2025 05:24:25 +0000 (-0500) Subject: scripts/beesd: no need for `$BEESHOME` to be a subvol X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0abf6ebb3d80d062ded6d3d4321ce855085b35d9;p=bees scripts/beesd: no need for `$BEESHOME` to be a subvol 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 --- diff --git a/scripts/beesd.in b/scripts/beesd.in index 3d216775..8afeed4e 100755 --- a/scripts/beesd.in +++ b/scripts/beesd.in @@ -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