#!/bin/bash

## Copyright (C) 2023 - 2025 ENCRYPTED SUPPORT LLC <adrelanos@whonix.org>
## See the file COPYING for copying conditions.

set -x
set -e
set -o errtrace
set -o pipefail
set -o nounset

sudo mkdir --parents /mnt/disk

sudo chown --recursive user:user /mnt/disk

sudo cryptsetup luksOpen /dev/xvdi disk

sudo mount /dev/mapper/disk /mnt/disk

test -w /mnt/disk/testfile
