summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDieter Plaetinck <dieter@plaetinck.be>2008-12-15 18:22:07 +0100
committerDieter Plaetinck <dieter@plaetinck.be>2008-12-15 18:22:07 +0100
commitba511987e3c63c5a40acc186c1d260eb968fa714 (patch)
tree30cd2fbf359d48408ffe0714758721e69b5b593b /src
parentb677e6ea965c7f77a7a9135b2dc271bf0a692a1d (diff)
syntax bugfix
Diffstat (limited to 'src')
-rw-r--r--src/core/libs/lib-ui-interactive.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/libs/lib-ui-interactive.sh b/src/core/libs/lib-ui-interactive.sh
index 304cdac..9b0bca8 100644
--- a/src/core/libs/lib-ui-interactive.sh
+++ b/src/core/libs/lib-ui-interactive.sh
@@ -384,7 +384,7 @@ interactive_filesystem ()
# Cascading remove theoretical blockdevice(s), if relevant ( eg if we just changed from vg->ext3, dm_crypt -> fat, or if we changed the label of a FS, causing a name change in a dm_mapper device)
- if [[ $old_fs_type = lvm-* || $old_fs_type = dm_crypt ]] && [ "$old_fs_type" != "$fs_type" || "$old_fs_label" != "$fs_label" ]
+ if [[ $old_fs_type = lvm-* || $old_fs_type = dm_crypt ]] && [ "$old_fs_type" != "$fs_type" -o "$old_fs_label" != "$fs_label" ]
then
target=
[ "$old_fs_type" = lvm-vg ] && target="/dev/mapper/$old_fs_label $old_fs_type $old_fs_label"