Skip to content

Commit

Permalink
genimage: make bzImage link unvarying
Browse files Browse the repository at this point in the history
The bzImage link won't affect multi kernel support.
But its changing can cause RR patch apply failed with below error
after initial INSVC patch apply and removal:
OSTree:ERROR:src/libostree/ostree-sysroot-deploy.c:1630:
install_deployment_kernel: assertion failed
(kernel_layout->bootcsum == bootcsum)

Make bzImage link unvarying.

Signed-off-by: Li Zhou <li.zhou@windriver.com>
  • Loading branch information
lzhou2 committed May 23, 2023
1 parent aaf7816 commit d3210e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion recipes-support/genimage/files/genimage/genimage.py
Expand Up @@ -922,7 +922,7 @@ def _do_rootfs_post(self, rootfs=None):
utils.run_cmd_oneshot("cp -r -f %s/* %s" % (rootfs_efi, self.deploydir))

# Create symlink bzIamge to kernel
for kernel in glob.glob(os.path.join(self.deploydir, 'vmlinuz-*-amd64')):
for kernel in glob.glob(os.path.join(self.deploydir, 'vmlinuz-*[0-9]-amd64')):
utils.run_cmd_oneshot("ln -snf -r %s bzImage" % kernel, cwd=self.deploydir)
if self.data['gpg']['grub'].get('EFI_SECURE_BOOT', 'disable') == 'enable':
utils.run_cmd_oneshot("ln -snf -r %s.sig bzImage.sig" % kernel, cwd=self.deploydir)
Expand Down

0 comments on commit d3210e1

Please sign in to comment.