Skip to content

Commit

Permalink
📖 Fix ubuntu fips example
Browse files Browse the repository at this point in the history
Was missing copying the hmac

Signed-off-by: Itxaka <[email protected]>
  • Loading branch information
Itxaka committed Sep 19, 2023
1 parent 62928d8 commit 3e52993
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/byoi/ubuntu-fips/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -155,5 +155,8 @@ RUN rm -rf /boot/initramfs-*
# Fixup sudo perms
RUN chown root:root /usr/bin/sudo && chmod 4755 /usr/bin/sudo

# Symlink kernel HMAC
RUN kernel=$(ls /boot/vmlinuz-* | head -n1) && ln -sf ."${kernel#/boot/}".hmac /boot/.vmlinuz.hmac

# Clear cache
RUN rm -rf /var/cache/* && journalctl --vacuum-size=1K && rm /etc/machine-id && rm /var/lib/dbus/machine-id && rm /etc/hostname

0 comments on commit 3e52993

Please sign in to comment.