3
. /lib/partman/definitions.sh
5
for dev in $DEVICES/*; do
6
[ -d $dev ] || continue
9
while { read_line num id size type fs path name; [ "$id" ]; }; do
10
[ $fs != free ] || continue
11
[ -f "$id/method" ] || continue
12
[ -f "$id/acting_filesystem" ] || continue
13
method=$(cat $id/method)
14
filesystem=$(cat $id/acting_filesystem)
15
if [ "$method" = swap ]; then
16
echo "$path" none swap sw 0 0
20
[ -f "$id/mountpoint" ] || continue
21
mountpoint=$(cat $id/mountpoint)
22
if [ -f "$id/mountoptions" ]; then
23
options=$(cat $id/mountoptions | sed 's/ //g')
27
if [ -z "$options" ]; then
30
if [ "$mountpoint" = / ]; then
31
options="${options},errors=remount-ro"
36
echo "$path" "$mountpoint" ext2 $options 0 $pass
39
[ -f "$id/mountpoint" ] || continue
40
mountpoint=$(cat $id/mountpoint)
42
if [ -f "$id/fatmountoptions" ]; then
43
options=$(cat $id/fatmountoptions | sed 's/ //g')
45
if [ -z "$options" ]; then
48
echo "$path" "$mountpoint" vfat $options 0 0