3
. /lib/partman/definitions.sh
5
for dev in $DEVICES/*; do
6
[ -d "$dev" ] || continue
10
while { read_line num id size type fs path name; [ "$id" ]; }; do
11
[ "$fs" != free ] || continue
12
partitions="$partitions $id,$num"
16
for part in $partitions; do
19
[ -f $id/method -a ! -f $id/format \
20
-a -f $id/acting_filesystem ] || continue
21
filesystem=$(cat $id/acting_filesystem)
24
log "Check the file system in $dev/$id"
25
template=partman-basicfilesystems/progress_checking
27
db_metaget partman/filesystem_short/"$filesystem" description || RET=''
28
[ "$RET" ] || RET="$filesystem"
29
db_subst $template TYPE "$RET"
30
db_subst $template PARTITION "$num"
31
db_subst $template DEVICE $(humandev $(cat device))
32
name_progress_bar $template
33
open_dialog CHECK_FILE_SYSTEM $id
36
if [ "$status" != good ]; then
37
db_fset partman-basicfilesystems/check_failed seen false
38
db_subst partman-basicfilesystems/check_failed TYPE "$filesystem"
39
db_subst partman-basicfilesystems/check_failed PARTITION "$num"
40
db_subst partman-basicfilesystems/check_failed DEVICE $(humandev $(cat device))
41
db_set partman-basicfilesystems/check_failed 'true'
42
db_input critical partman-basicfilesystems/check_failed || true
44
db_get partman-basicfilesystems/check_failed
45
if [ "$RET" = 'true' ]; then