Comment 10 for bug 287747

Revision history for this message
Colin Watson (cjwatson) wrote : Re: Installing into an existing / partition will result in a broken kernel

This is due to:

        # 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!