File: choices

package info (click to toggle)
partman-target 96
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,144 kB
  • ctags: 13
  • sloc: sh: 489; makefile: 16
file content (26 lines) | stat: -rwxr-xr-x 551 bytes parent folder | download | duplicates (8)
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
#!/bin/sh

. /lib/partman/lib/base.sh

dev=$1
id=$2
cd $dev

if [ -f $id/method ]; then
	method=$(cat $id/method)
else
	method=dont_use
fi

if [ -f $id/filesystem ] && \
   ([ "$method" = keep ] || [ "$method" = format ]); then
	fs=$(cat $id/filesystem)
	db_metaget partman/filesystem_long/$fs description || RET=''
	description="${RET:-$fs}"
else
	db_metaget partman/method_long/$method description || RET=''
	description="${RET:-$method}"
fi

db_metaget partman-target/text/method description
printf "method\t%s\${!TAB}%s\n" "${RET}" "$description"