Check mount types from kernel mount table in Alpine jobs

This commit is contained in:
2026-10-25 07:10:37 +01:00
parent aa52baa3e7
commit 61e4d5d728
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -6,8 +6,8 @@ data:
backup.sh: |
#!/bin/sh
set -eu
backup_fs=$(stat -f -c %T /backup)
source_fs=$(stat -f -c %T /source)
backup_fs=$(awk '$2 == "/backup" { print $3; exit }' /proc/mounts)
source_fs=$(awk '$2 == "/source" { print $3; exit }' /proc/mounts)
echo "Backup filesystem: $backup_fs; source filesystem: $source_fs"
test "$backup_fs" = bcachefs
test "$source_fs" = ceph
+1 -1
View File
@@ -20,7 +20,7 @@ data:
backup.sh: |
#!/bin/sh
set -eu
backup_fs=$(stat -f -c %T /backup)
backup_fs=$(awk '$2 == "/backup" { print $3; exit }' /proc/mounts)
echo "Backup filesystem: $backup_fs"
test "$backup_fs" = bcachefs
endpoint=http://rook-ceph-rgw-my-store.rook-ceph.svc:80