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