summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDieter Plaetinck <dieter@plaetinck.be>2008-12-15 18:56:26 +0100
committerDieter Plaetinck <dieter@plaetinck.be>2008-12-15 18:56:26 +0100
commit741f627412209bcffe5aff7e1a905ec86cb90ca9 (patch)
treec17cca596a5262d58dbf89845e24bdac99cafd18 /src
parent2005367e695121b8bfd590a6f791dfe3975d3d74 (diff)
fix for lvm VG gets no_fs when editing lv's
Diffstat (limited to 'src')
-rw-r--r--src/core/libs/lib-ui-interactive.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/core/libs/lib-ui-interactive.sh b/src/core/libs/lib-ui-interactive.sh
index 9b0bca8..8c00bb1 100644
--- a/src/core/libs/lib-ui-interactive.sh
+++ b/src/core/libs/lib-ui-interactive.sh
@@ -474,15 +474,16 @@ interactive_filesystems() {
[ "$label" = "$EDIT_VG" ] && found_lv="$lv"
done
interactive_filesystem $part $part_type $part_label "$found_lv"
- fs=
+ newfs=
for lv in `sed 's/|/ /g' <<< $fs`
do
label=$(cut -d ';' -f 6 <<< $lv)
add=$lv
[ "$label" = "$EDIT_VG" ] && add=$NEW_FILESYSTEM
- [ -z "$fs" ] && fs=$add
- [ -n "$fs" ] && fs="$fs|$add"
+ [ -z "$newfs" ] && newfs=$add
+ [ -n "$newfs" ] && newfs="$newfs|$add"
done
+ fs=newfs
fi
else
interactive_filesystem $part $part_type $part_label $fs