diff options
author | Dieter Plaetinck <dieter@plaetinck.be> | 2008-12-06 13:55:13 +0100 |
---|---|---|
committer | Dieter Plaetinck <dieter@plaetinck.be> | 2008-12-06 13:55:13 +0100 |
commit | e85258bb9394fa74fd97f98966368f821b3d3bf2 (patch) | |
tree | c8cf8d9bc3ae879590c02c492ad1d6734191ce58 | |
parent | 26fc8b46047f01ce0cc350d40b56de488ecb5ec3 (diff) |
fix for -b requirement
-rw-r--r-- | src/core/libs/lib-ui-interactive.sh | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/core/libs/lib-ui-interactive.sh b/src/core/libs/lib-ui-interactive.sh index 86d5da7..cb19b3e 100644 --- a/src/core/libs/lib-ui-interactive.sh +++ b/src/core/libs/lib-ui-interactive.sh @@ -229,13 +229,11 @@ interactive_partition() { # create new, delete, or edit a filesystem interactive_filesystem () { - part=$1 # must be given and a valid device + part=$1 # must be given and (scheduled to become) a valid device -> don't do [ -b "$1" ] because the device might not exist *yet* part_type=$2 # a part should always have a type part_label=$3 # can be empty fs=$4 # can be empty NEW_FILESYSTEM= - real_part=${part/+/} # strip away an extra '+' which is used for lvm pv's - [ -b $real_part ] || die_error "interactive_filesystem \$1 must be a blockdevice! ($part given)" if [ -z "$fs" ] then fs_type= |