Skip to content

Commit

Permalink
Merge pull request #6088 from freedomofpress/6076-staging-kernel-deb-…
Browse files Browse the repository at this point in the history
…install

Staging-only: Use two-pass install for kernel debs
  • Loading branch information
zenmonkeykstop authored Sep 8, 2021
2 parents 3894dc3 + f078b64 commit 6f130e2
Showing 1 changed file with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,15 @@
src: "../../build/{{ securedrop_target_distribution }}/securedrop-grsec-{{ grsec_version }}+{{ securedrop_target_distribution }}-amd64.deb"
dest: "/root/securedrop-grsec-{{ grsec_version }}+{{ securedrop_target_distribution }}-amd64.deb"

- name: Install locally built securedrop-grsec metapackage
command: apt-get install -y -f "/root/securedrop-grsec-{{ grsec_version }}+{{ securedrop_target_distribution }}-amd64.deb"
# Two-pass approach, first with apt to get the dependencies resolved, second
# with dpkg to ensure package is reinstalled regardless of version.
- name: Install locally built securedrop-grsec metapackage (via apt)
apt:
deb: "/root/securedrop-grsec-{{ grsec_version }}+{{ securedrop_target_distribution }}-amd64.deb"
ignore_errors: yes

- name: Install locally built securedrop-grsec metapackage (via dpkg)
command: dpkg -i "/root/securedrop-grsec-{{ grsec_version }}+{{ securedrop_target_distribution }}-amd64.deb"

- name: Mark package as held, so it doesn't update to apt-test version
command: apt-mark hold securedrop-grsec

0 comments on commit 6f130e2

Please sign in to comment.