summarylogtreecommitdiffstats
path: root/veracrypt_install
blob: 54229790d1a9f43e02fb6e40556df39c62368b82 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/bash

build() {
    local mod

    add_module dm-crypt
    if [[ $CRYPTO_MODULES ]]; then
        for mod in $CRYPTO_MODULES; do
            add_module "$mod"
        done
    else
        add_all_modules '/crypto/'
    fi

    add_binary "cryptsetup"
    add_binary "dmsetup"
    add_file "/usr/lib/udev/rules.d/10-dm.rules"
    add_file "/usr/lib/udev/rules.d/13-dm-disk.rules"
    add_file "/usr/lib/udev/rules.d/95-dm-notify.rules"
    add_file "/usr/lib/initcpio/udev/11-dm-initramfs.rules" "/usr/lib/udev/rules.d/11-dm-initramfs.rules"

    add_module fuse
    
    add_binary "veracrypt"
    add_binary "fusermount"
    
    # veracrypts directory
    add_dir "/dev/mapper"
    add_dir "/tmp"

    add_runscript
}

help () {
cat<<HELPEOF
  This hook allows for a veracrypt encrypted non root devices.
HELPEOF
}