Skip to content

Commit ae19ea5

Browse files
author
andres.suarez
committed
feat: validating the disk in a state
1 parent 29cc824 commit ae19ea5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ansible/files/admin_api_scripts/mount-volume.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ fi
3636

3737
mkdir -p "$MOUNT_POINT"
3838

39+
e2fsck -pf "$DEVICE"
40+
3941
if ! mountpoint -q "$MOUNT_POINT"; then
4042
echo "Mounting $DEVICE to $MOUNT_POINT"
4143
mount -t "$FSTYPE" -o "$MOUNT_OPTS" "$DEVICE" "$MOUNT_POINT"

0 commit comments

Comments
 (0)