diff options
author | Dieter Plaetinck <dieter@plaetinck.be> | 2009-06-28 20:24:15 +0200 |
---|---|---|
committer | Dieter Plaetinck <dieter@plaetinck.be> | 2009-06-28 20:24:15 +0200 |
commit | c72198a587c00665f58d2c554c29221c418cbb3b (patch) | |
tree | 0d0cb389d3e1151e026e8937e4f57d81bd05fdbf /src/core/libs | |
parent | 830c9dd50dbbcdd8d30c8b7289668fcac820fb9a (diff) |
let user pick a mountpoint from a list or define a custom one
Diffstat (limited to 'src/core/libs')
-rw-r--r-- | src/core/libs/lib-ui-interactive.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/libs/lib-ui-interactive.sh b/src/core/libs/lib-ui-interactive.sh index d8dafe8..9f49502 100644 --- a/src/core/libs/lib-ui-interactive.sh +++ b/src/core/libs/lib-ui-interactive.sh @@ -415,7 +415,8 @@ interactive_filesystem () then default= [ -n "$fs_mountpoint" ] && default="$fs_mountpoint" - ask_string "Enter the mountpoint for $part" "$default" || return 1 + ask_option "$default" "Select the mountpoint" "Select a mountpoint for $part" required / 'root' /boot 'files for booting' /etc 'config files' /home 'home directories' /tmp 'temporary files' Custom 'enter a custom mountpoint' || return 1 + [ "$ANSWER_OPTION" == custom ] && ask_string "Enter the custom mountpoint for $part" "$default" || return 1 fs_mountpoint=$ANSWER_STRING fi |