pygrub: don't leave fds open
authorRoger Pau Monne <roger.pau@citrix.com>
Mon, 23 Jul 2012 12:09:45 +0000 (13:09 +0100)
committerRoger Pau Monne <roger.pau@citrix.com>
Mon, 23 Jul 2012 12:09:45 +0000 (13:09 +0100)
commited78b8ba6619d054020b2738eabe323ca4a25d68
tree221ff5a15ebbbb5dd104950e0477cbe48abed2d9
parentf778d0fa882611997cc32d44537116f41e36cabb
pygrub: don't leave fds open

On NetBSD a block device can only be opened once, so make sure pygrub
closes it every time, if this is not done libfsimage is not able to
open the disk later.

Signed-off-by: Roger Pau Monne <roger.pau@citrix.com>
Acked-by: Christoph Egger <Christoph.Egger@amd.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Committed-by: Ian Campbell <ian.campbell@citrix.com>
tools/pygrub/src/pygrub