updaing build.py to use 12.04.5 and extract kernel using noload

This commit is contained in:
Brian O'Connor
2014-08-14 15:38:31 -07:00
parent 161e7997fa
commit 1285fb22dc
+3 -3
View File
@@ -61,10 +61,10 @@ Prompt = '\$ ' # Shell prompt that pexpect will wait for
isoURLs = {
'precise32server':
'http://mirrors.kernel.org/ubuntu-releases/12.04/'
'ubuntu-12.04.3-server-i386.iso',
'ubuntu-12.04.5-server-i386.iso',
'precise64server':
'http://mirrors.kernel.org/ubuntu-releases/12.04/'
'ubuntu-12.04.3-server-amd64.iso',
'ubuntu-12.04.5-server-amd64.iso',
'quantal32server':
'http://mirrors.kernel.org/ubuntu-releases/12.10/'
'ubuntu-12.10-server-i386.iso',
@@ -238,7 +238,7 @@ def extractKernel( image, flavor, imageDir=VMImageDir ):
# Assume kernel is in partition 1/boot/vmlinuz*generic for now
part = nbd + 'p1'
mnt = mkdtemp()
srun( 'mount -o ro %s %s' % ( part, mnt ) )
srun( 'mount -o ro,noload %s %s' % ( part, mnt ) )
kernsrc = glob( '%s/boot/vmlinuz*generic' % mnt )[ 0 ]
initrdsrc = glob( '%s/boot/initrd*generic' % mnt )[ 0 ]
srun( 'cp %s %s' % ( initrdsrc, initrd ) )