# If no kernel was copied, try some possible locations for the
# kernel we used to boot. This saves a couple of megabytes of CD
# space.
bootdir = os.path.join(self.target, 'boot')
re_image = re.compile('vmlinu[xz]-')
for entry in os.listdir(bootdir):
match = re_image.match(entry)
if match is not None: break
else:
kernel = self.find_cd_kernel()
if kernel: prefix = os.path.basename(kernel).split('-', 1)[0] release = os.uname()[2] target_kernel = os.path.join(bootdir, '%s-%s' % (prefix, release)) self.copy_file(kernel, target_kernel, md5_check)
In this case /target/boot contains a kernel and so we think that it was copied from the livefs and don't copy another one!
This is due to:
# If no kernel was copied, try some possible locations for the join(self. target, 'boot') 'vmlinu[ xz]-') bootdir) : match(entry)
break cd_kernel( )
prefix = os.path. basename( kernel) .split( '-', 1)[0]
release = os.uname()[2]
target_ kernel = os.path. join(bootdir,
'%s- %s' % (prefix, release))
self. copy_file( kernel, target_kernel, md5_check)
# kernel we used to boot. This saves a couple of megabytes of CD
# space.
bootdir = os.path.
re_image = re.compile(
for entry in os.listdir(
match = re_image.
if match is not None:
else:
kernel = self.find_
if kernel:
In this case /target/boot contains a kernel and so we think that it was copied from the livefs and don't copy another one!