summaryrefslogtreecommitdiff
path: root/src/core/libs/lib-ui-interactive.sh
diff options
context:
space:
mode:
authorDieter Plaetinck <dieter@plaetinck.be>2008-12-05 18:57:11 +0100
committerDieter Plaetinck <dieter@plaetinck.be>2008-12-05 18:57:11 +0100
commit0e218b0e861e54f2bfde428605bcb5b2e7cfc0cf (patch)
treeddbdc0ff0a27f6faf472d3fb49d011f5a248da03 /src/core/libs/lib-ui-interactive.sh
parente22f3102ca185b43ca975ee3f960e949aa0e8185 (diff)
stupid fixes
Diffstat (limited to 'src/core/libs/lib-ui-interactive.sh')
-rw-r--r--src/core/libs/lib-ui-interactive.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/libs/lib-ui-interactive.sh b/src/core/libs/lib-ui-interactive.sh
index 4a77227..255acb4 100644
--- a/src/core/libs/lib-ui-interactive.sh
+++ b/src/core/libs/lib-ui-interactive.sh
@@ -421,7 +421,7 @@ interactive_filesystems() {
if [ $part_type = lvm-vg ] # one lvm VG can host multiple LV's so that's a bit a special blockdevice...
then
list=
- if [ $fs != no_fs ]
+ if [ -n "$fs" ]
then
for lv in `sed '/|/ /' <<< $fs`
do
@@ -439,6 +439,8 @@ interactive_filesystems() {
fi
# update the menu
+ [ -z "$part_label" ] && part_label=no_label
+ [ -z "$fs" ] && fs=no_fs
sed -i "s#^$part $part_type $part_label.*#$part $part_type $part_label $fs#" $BLOCK_DATA # '#' is a forbidden character !
done