File: choices

package info (click to toggle)
partman-auto-crypto 33
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 384 kB
  • sloc: sh: 79; makefile: 2
file content (17 lines) | stat: -rwxr-xr-x 431 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/base.sh
. /lib/partman/lib/recipes.sh
. /lib/partman/lib/crypto-base.sh

# If there are no recipies that support LVM then don't offer auto-crypto
recipedir=$(get_recipedir)
if ! grep -q "\$lvmok" $recipedir/*; then
	exit 0
fi

# Also don't offer auto-crypto if there is not enough memory
crypto_check_mem false || exit 0

db_metaget partman-auto-crypto/text/choice description
printf "crypto\t$RET\n"