Install a moduli(5) manual page.
[dragonfly.git] / contrib / bsdinstaller-1.1.6 / src / backend / lua / configure / 300_select_part.lua
1 -- $Id: 300_select_part.lua,v 1.4 2005/02/24 23:08:03 cpressey Exp $
2
3 require "gettext"
4 require "storage_ui"
5
6 return {
7     name = "select_part",
8     title = "Select Partition",
9     action = function(fsm)
10         App.state.sel_part = nil
11
12         local pd = StorageUI.select_part({
13             dd = App.state.sel_disk,
14             short_desc = _(
15                 "Select the primary partition of %s " ..
16                 "on which the installation of %s resides.",
17                 App.state.sel_disk:get_name(),
18                 App.os.name),
19            cancel_desc = _("Return to %s", fsm:prev().title)
20         })
21
22         if pd then
23                 App.state.sel_part = pd
24                 return fsm:next()
25         else
26                 return fsm:prev()
27         end
28     end
29 }