File: do_option

package info (click to toggle)
partman-crypto 121
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 2,800 kB
  • sloc: sh: 1,692; ansic: 132; makefile: 20
file content (17 lines) | stat: -rwxr-xr-x 311 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

. /lib/partman/lib/crypto-base.sh

type=$1
dev=$2
id=$3
part=$dev/$id

mkdir -p $part
rm -f $part/use_filesystem
rm -f $part/format

# Set defaults (this also downloads additional components)
crypto_prepare_method $part dm-crypt || exit 1
echo dm-crypt > $part/crypto_type
echo crypto > $part/method