1 -- $Id: 400_mount_target_system.lua,v 1.13 2005/02/24 23:08:03 cpressey Exp $
3 require "target_system"
6 name = "mount_target_system",
7 title = "Mount Target System",
10 -- If there is a target system mounted, unmount it before starting.
12 if App.state.target ~= nil and App.state.target:is_mounted() then
13 if not App.state.target:unmount() then
15 _("Warning: already-mounted target system could " ..
16 "not be correctly unmounted first.")
22 App.state.target = TargetSystem.new(App.state.sel_part, "mnt")
23 if not App.state.target:probe() then
25 "The target system could not be successfully probed."
29 if not App.state.target:mount() then
31 "The target system could not be successfully mounted."