diff options
author | Dieter Plaetinck <dieter@plaetinck.be> | 2008-12-05 21:33:51 +0100 |
---|---|---|
committer | Dieter Plaetinck <dieter@plaetinck.be> | 2008-12-05 21:33:51 +0100 |
commit | c6207bad456bac6a9f20556a6c68926a03909b8d (patch) | |
tree | a70a6c6317c511aca7f8ce8e7883edc19c72abf6 | |
parent | 60bd5f1c459f3f1be6201b13ea5094c4ff1c81db (diff) |
fix for LV selecter
-rw-r--r-- | src/core/libs/lib-ui-interactive.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/core/libs/lib-ui-interactive.sh b/src/core/libs/lib-ui-interactive.sh index 9cb4489..c6f2e8d 100644 --- a/src/core/libs/lib-ui-interactive.sh +++ b/src/core/libs/lib-ui-interactive.sh @@ -437,11 +437,16 @@ interactive_filesystems() { then for lv in `sed '/|/ /' <<< $fs` do - list="$list $lv" #TODO: this is probably incorrect + label=$(cut -d ';' -f 4 <<< $lv) + mountpoint=$(cut -d ';' -f 2 <<< $lv) + list="$list $label $mountpoint" done + else + list="XXX no-LV's-defined-yet-make-a-new-one" fi list="$list empty NEW" ask_option empty "Edit/create new LV's on this VG:" $list + [ "$ANSWER_OPTION" = XXX ] && ANSWER_OPTION=empty interactive_filesystem $ANSWER_OPTION #TODO: for now we just append, that's obviously wrong [ $? -eq 0 ] && fs="$fs|$NEW_FILESYSTEM" |