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 ] || continue
20
[ -f $id/acting_filesystem ] || continue
21
filesystem=$(cat $id/acting_filesystem)
24
[ -f "$id/mountpoint" ] || continue
25
mountpoint="$(cat "$id/mountpoint")"
26
# Check for FAT file systems mounted in places where POSIX
27
# filesystem semantics are usually expected, and make the
30
/|/boot|/home|/opt|/srv|/tmp|/usr|/usr/local|/var)
31
>"$id/visual_mountpoint"
32
db_subst partman-basicfilesystems/posix_filesystem_required FILESYSTEM "$filesystem"
33
db_subst partman-basicfilesystems/posix_filesystem_required MOUNTPOINT "$mountpoint"
34
db_metaget partman/filesystem_short/ext2 description || RET=
35
[ "$RET" ] || RET=ext2
36
db_subst partman-basicfilesystems/posix_filesystem_required EXT2 "$RET"
37
db_input critical partman-basicfilesystems/posix_filesystem_required || true