X86: Hook in a hard drive image.
This commit is contained in:
parent
01679bb416
commit
18f6c18323
1 changed files with 8 additions and 0 deletions
|
@ -166,6 +166,7 @@ def makeX86System(mem_mode, mdesc = None, self = None):
|
|||
if not mdesc:
|
||||
# generic system
|
||||
mdesc = SysConfig()
|
||||
mdesc.diskname = 'x86root.img'
|
||||
self.readfile = mdesc.script()
|
||||
|
||||
# Physical memory
|
||||
|
@ -185,6 +186,13 @@ def makeX86System(mem_mode, mdesc = None, self = None):
|
|||
|
||||
self.intrctrl = IntrControl()
|
||||
|
||||
# Disks
|
||||
disk0 = CowIdeDisk(driveID='master')
|
||||
disk2 = CowIdeDisk(driveID='master')
|
||||
disk0.childImage(mdesc.disk())
|
||||
disk2.childImage(disk('linux-bigswap2.img'))
|
||||
self.pc.south_bridge.ide.disks = [disk0, disk2]
|
||||
|
||||
# Add in a Bios information structure.
|
||||
structures = [X86SMBiosBiosInformation()]
|
||||
self.smbios_table.structures = structures
|
||||
|
|
Loading…
Reference in a new issue