File: choices

package info (click to toggle)
partman-partitioning 48
  • links: PTS
  • area: main
  • in suites: etch-m68k
  • size: 880 kB
  • ctags: 21
  • sloc: sh: 782; makefile: 42
file content (37 lines) | stat: -rwxr-xr-x 598 bytes parent folder | download | duplicates (2)
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
27
28
29
30
31
32
33
34
35
36
37
#!/bin/sh

. /lib/partman/definitions.sh

dev=$1
id=$2
cd $dev

if [ -f $id/detected_filesystem ]; then
	fs=$(cat $id/detected_filesystem)
	case "$fs" in
	    linux-swap|ext2|ext3|fat16|fat32)
		true
		;;
	    ntfs)
		if ! search-path ntfsresize; then
			exit 0
		fi
		;;
	    *)
		exit 0
		;;
	esac
else
	exit 0
fi

open_dialog PARTITION_INFO $id
read_line x1 id size x4 x5 x6 x7 x8
close_dialog

hsize=$(longint2human $size)

db_subst partman-partitioning/text/resize SIZE "$hsize"
db_metaget partman-partitioning/text/resize description
RET=$(stralign -25 "$RET")
printf "resize\t%s\n" "${RET}"