%%{
init: {
'theme': 'base',
'themeVariables': {
'primaryColor': '#3ed72b',
'primaryTextColor': '#000',
'primaryBorderColor': '#000',
'lineColor': '#fff',
'secondaryColor': '#e6f01b',
'tertiaryColor': '#fff'
}
}
}%%
flowchart LR
id1[/virtual Disk/]
id3[/ ctryptsetup/]
id2[LUKS
format
encrypt
passphrase]
id9[/format ext4/]
id10[/open /]
id5[/mount/]
id6[/detach /]
id7[/close /]
id1-->id3
id3-->id2
id2-->id10
id10-->id9
id10-->id5
id5-->id6
id5-->id7
overview
- install cryptsetup
- creating virtual disk with dd
- format and encrypt virtaul disk with cryptsetup
- opening encrypted virtual disk with cryptsetup
- format virtual disk with ext4 mkfs
- create mountpoint with mkdir
- mount LUKS opened disk to mointpoint
- detach mount
- close LUKS