mount_beads.sh: verify mount succeeded via mtab

This commit is contained in:
Levi Neely 2026-03-16 14:54:59 +01:00
parent d5b30ed38e
commit 5a81faa5f9
1 changed files with 7 additions and 0 deletions

View File

@ -23,4 +23,11 @@ fi
MOUNT=$(uuidgen | cut -d- -f1)
echo "mount $CWD $MOUNT" | 9p write anvillm/beads/ctl
# Verify mount succeeded
if ! 9p read anvillm/beads/mtab 2>/dev/null | grep -q "^$MOUNT "; then
echo "error: mount failed for $CWD" >&2
exit 1
fi
echo "$MOUNT"