|
|
@ -37,9 +37,11 @@ init() {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
crypt_prepare_disk() {
|
|
|
|
crypt_prepare_disk() {
|
|
|
|
|
|
|
|
set +e
|
|
|
|
cryptsetup open --type plain -d /dev/urandom $1 wipe_me
|
|
|
|
cryptsetup open --type plain -d /dev/urandom $1 wipe_me
|
|
|
|
dd if=/dev/zero of=/dev/mapper/wipe_me bs=1M status=progress
|
|
|
|
dd if=/dev/zero of=/dev/mapper/wipe_me bs=1M status=progress
|
|
|
|
cryptsetup close wipe_me
|
|
|
|
cryptsetup close wipe_me
|
|
|
|
|
|
|
|
set -e
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
crypt_create_fs() {
|
|
|
|
crypt_create_fs() {
|
|
|
|