diff options
author | Dieter Plaetinck <dieter@plaetinck.be> | 2008-12-09 21:29:43 +0100 |
---|---|---|
committer | Dieter Plaetinck <dieter@plaetinck.be> | 2008-12-09 21:29:43 +0100 |
commit | 937756f712590dd78dfed54f372d99dcd6f33fcb (patch) | |
tree | 27ca8d8e64ad0af8928cea867bc4815104f5c97b | |
parent | c027d5562d0183ad692000a576122852de1a0f76 (diff) |
menu is more consise now
-rw-r--r-- | src/core/libs/lib-ui-interactive.sh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/core/libs/lib-ui-interactive.sh b/src/core/libs/lib-ui-interactive.sh index 1be32bd..509441e 100644 --- a/src/core/libs/lib-ui-interactive.sh +++ b/src/core/libs/lib-ui-interactive.sh @@ -398,8 +398,11 @@ interactive_filesystems() { menu_list= while read part type label fs do - infostring="type:$type,label:$label,fs:$fs" - [ -b "$part" ] && get_blockdevice_size ${part/+/} && infostring="size:${BLOCKDEVICE_SIZE}MB,$infostring" # add size in MB for existing blockdevices (eg not for mapper devices that are not yet created yet) + # leave out unneeded info from fs string + fs_display${fs//;yes/} + fs_display${fs//;target/} + infostring=" $type $label $fs_display" + [ -b "$part" ] && get_blockdevice_size ${part/+/} && infostring="${BLOCKDEVICE_SIZE}MB $infostring" # add size in MB for existing blockdevices (eg not for mapper devices that are not yet created yet) menu_list="$menu_list $part $infostring" #don't add extra spaces, dialog doesn't like that. done < $TMP_BLOCKDEVICES |