Skip to content

Commit

Permalink
always disable selinux (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
kreeuwijk authored Sep 1, 2023
1 parent 9279a6c commit 25fce94
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,10 @@ base-image:
chmod 444 /etc/machine-id
RUN rm /tmp/* -rf

# Ensure SElinux gets disabled
RUN if grep "security=selinux" /etc/cos/bootargs.cfg > /dev/null; then sed -i 's/security=selinux //g' /etc/cos/bootargs.cfg; fi &&\
if grep "selinux=1" /etc/cos/bootargs.cfg > /dev/null; then sed -i 's/selinux=1/selinux=0/g' /etc/cos/bootargs.cfg; fi

# Used to build the installer image. The installer ISO will be created from this.
iso-image:
FROM --platform=linux/${ARCH} +base-image
Expand Down

0 comments on commit 25fce94

Please sign in to comment.