diff options
author | Dieter Plaetinck <dieter@plaetinck.be> | 2010-12-13 14:31:42 +0100 |
---|---|---|
committer | Dieter Plaetinck <dieter@plaetinck.be> | 2010-12-13 14:31:42 +0100 |
commit | 10d84eeea5f4e7e1c96b894349ad884ea8120640 (patch) | |
tree | 4e24234d56291e94bb13d8aaabd1926fcdea5a2f /src/core/libs/lib-ui-interactive.sh | |
parent | 01389b032177f7f544340ece6fce6c36322b534e (diff) |
display previous $fs_type as default when editing FS
Diffstat (limited to 'src/core/libs/lib-ui-interactive.sh')
-rw-r--r-- | src/core/libs/lib-ui-interactive.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/libs/lib-ui-interactive.sh b/src/core/libs/lib-ui-interactive.sh index b6f9f14..b09cf6a 100644 --- a/src/core/libs/lib-ui-interactive.sh +++ b/src/core/libs/lib-ui-interactive.sh @@ -408,11 +408,11 @@ interactive_filesystem () notify "Automatically picked the ${FSOPTS[1]} filesystem. It's the only option for $part_type blockdevices" fs_type=${FSOPTS[0]} else - default= - [ -n "$fs_type" ] && default="--default-item $fs_type" + default=no + [ -n "$fs_type" ] && default="$fs_type" extratext="Select a filesystem for $part:" [ "$fs_create" == no ] && extratext="Select which filesystem $part is. Make sure you get this right" #otherwise he'll be screwed when we try to mount it :) - ask_option no "Select filesystem" "$extratext" required "${FSOPTS[@]}" || return 1 + ask_option $default "Select filesystem" "$extratext" required "${FSOPTS[@]}" || return 1 fs_type=$ANSWER_OPTION fi |