This commit is contained in:
Ray Elliott 2026-10-27 12:49:13 +00:00
commit b236b68486
22 changed files with 288 additions and 36 deletions

15
user/wait-for-mount.sh Normal file
View file

@ -0,0 +1,15 @@
#!/bin/sh
set -eu
mountpoint_dir=$1
attempt=0
while ! mountpoint -q "$mountpoint_dir"; do
attempt=$((attempt + 1))
if [ "$attempt" -ge 100 ]; then
echo "Timed out waiting for mount: $mountpoint_dir" >&2
exit 1
fi
sleep 0.1
done