diff options
author | Dieter Plaetinck <dieter@plaetinck.be> | 2008-12-05 18:57:11 +0100 |
---|---|---|
committer | Dieter Plaetinck <dieter@plaetinck.be> | 2008-12-05 18:57:11 +0100 |
commit | 0e218b0e861e54f2bfde428605bcb5b2e7cfc0cf (patch) | |
tree | ddbdc0ff0a27f6faf472d3fb49d011f5a248da03 /src | |
parent | e22f3102ca185b43ca975ee3f960e949aa0e8185 (diff) |
stupid fixes
Diffstat (limited to 'src')
-rw-r--r-- | src/core/libs/lib-ui-interactive.sh | 4 |
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 |