mkefiboot fixups (fix imports, mkdosimg, add to setup.py)
This commit is contained in:
parent
10a91e5c85
commit
4343b12fc0
2
setup.py
2
setup.py
@ -15,7 +15,7 @@ for root, dnames, fnames in os.walk("share"):
|
||||
[os.path.join(root, fname)]))
|
||||
|
||||
# executable
|
||||
data_files.append(("/usr/sbin", ["src/sbin/lorax"]))
|
||||
data_files.append(("/usr/sbin", ["src/sbin/lorax", "src/sbin/mkefiboot"]))
|
||||
|
||||
setup(name="lorax",
|
||||
version="0.1",
|
||||
|
@ -19,11 +19,11 @@
|
||||
|
||||
import os, tempfile, optparse
|
||||
from subprocess import check_call, PIPE
|
||||
from lorax.imgutils import mkdosimg, round_to_blocks, LoopDev, DMDev, dm_detach
|
||||
from pylorax.imgutils import mkdosimg, round_to_blocks, LoopDev, DMDev, dm_detach
|
||||
|
||||
def mkefiboot(bootdir, outfile, label):
|
||||
'''Make an EFI boot image with the contents of bootdir in EFI/BOOT'''
|
||||
mkdosimg(None, outfile, label, graft={'EFI/BOOT':bootdir})
|
||||
mkdosimg(None, outfile, label=label, graft={'EFI/BOOT':bootdir})
|
||||
|
||||
def mkefidisk(efiboot, outfile):
|
||||
'''Make a bootable EFI disk image out of the given EFI boot image.'''
|
||||
|
Loading…
Reference in New Issue
Block a user