Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add package dependency on "dbgsym" kernel package #6

Open
prakashsurya opened this issue Mar 28, 2019 · 0 comments
Open

add package dependency on "dbgsym" kernel package #6

prakashsurya opened this issue Mar 28, 2019 · 0 comments

Comments

@prakashsurya
Copy link
Contributor

Currently, we required the debug symbol package to be installed for our kernels, so that we can more easily debug kernel problems (e.g. with crash and the debug kernel symbols).

We install this debug symbol package "manually" via the appliance-build logic here; i.e.

- shell: ls /lib/modules
  register: kernel_versions

- apt:
    name: 'linux-image-{{ item }}-dbgsym'
  with_items:
    - '{{ kernel_versions.stdout_lines }}'
  retries: 3
  delay: 30
  register: result
until: result is succeeded

It'd be better to remove this manual installation, and instead have the delphix-kernel package depend on the debug symbol package. This way, when installing the delphix-kernel package, it'd automatically pull in the correct debug symbol package.

This would also help ensure the correct kernel packages remain installed after I land my changes being proposed to appliance-build here. Currently with these proposed changes, the debug symbol package is removed on upgrade for old kernels, because it's not listed as a package dependency of any delphix-kernel package; if it was a package dependency, it'd remain installed (as it should).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant