mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-12-24 23:19:39 -05:00
51068abc27
consistent naming for test values using 'want' instead of 'expect/ed' |
||
---|---|---|
.. | ||
cryptmapper | ||
kms | ||
test | ||
README.md |
constellation-mount-utils
Dependencies
This package uses the C library libcryptsetup
for device mapping.
To install the required dependencies on Ubuntu run:
sudo apt install libcryptsetup-dev
Testing
A small test programm is available in test/main.go
.
To build the programm run:
go build -o test/crypt ./test/
Create a new crypt device for /dev/sdX
and map it to /dev/mapper/volume01
:
sudo test/crypt -source /dev/sdX -target volume01 -v 4
You can now interact with the mapped volume as if it was an unformatted device:
sudo mkfs.ext4 /dev/mapper/volume01
sudo mount /dev/mapper/volume01 /mnt/volume01
Close the mapped volume:
sudo umount /mnt/volume01
sudo test/crypt -c -target volume01 -v 4