From 10d84eeea5f4e7e1c96b894349ad884ea8120640 Mon Sep 17 00:00:00 2001 From: Dieter Plaetinck Date: Mon, 13 Dec 2010 14:31:42 +0100 Subject: display previous $fs_type as default when editing FS --- src/core/libs/lib-ui-interactive.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/core') 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 -- cgit v1.2.3-54-g00ecf