File: choices

package info (click to toggle)
partman-auto-lvm 103
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,112 kB
  • sloc: sh: 458; makefile: 2
file content (16 lines) | stat: -rwxr-xr-x 392 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

. /lib/partman/lib/base.sh
. /lib/partman/lib/recipes.sh

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

# If LVM support is not available then don't offer auto-lvm
[ -f /var/lib/partman/lvm ] || exit 0

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