Skip to content

Commit

Permalink
Fix reading kairos-release
Browse files Browse the repository at this point in the history
Signed-off-by: Itxaka <itxaka@kairos.io>
  • Loading branch information
Itxaka committed Oct 1, 2024
1 parent ff522ae commit 64f6b59
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion images/Dockerfile.kairos
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ RUN rm -rf /etc/ssh/ssh_host_*
COPY which-init.sh /usr/local/bin/which-init.sh

RUN sed -i -n '/KAIROS_/!p' /etc/os-release
RUN sed -i -n '/KAIROS_/!p' /etc/kairos-release
RUN if [ -f "/etc/kairos-release" ]; then sed -i -n '/KAIROS_/!p' /etc/kairos-release; fi

# need to be defined after FROM for them to be replaced in the RUN bellow
ARG HOME_URL="https://github.com/kairos-io/kairos"
Expand Down
2 changes: 1 addition & 1 deletion images/Dockerfile.kairos-alpine
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ RUN rm -rf /etc/ssh/ssh_host_*
COPY which-init.sh /usr/local/bin/which-init.sh

RUN sed -i -n '/KAIROS_/!p' /etc/os-release
RUN sed -i -n '/KAIROS_/!p' /etc/kairos-release
RUN if [ -f "/etc/kairos-release" ]; then sed -i -n '/KAIROS_/!p' /etc/kairos-release; fi

# need to be defined after FROM for them to be replaced in the RUN bellow
ARG HOME_URL="https://github.com/kairos-io/kairos"
Expand Down
2 changes: 1 addition & 1 deletion images/Dockerfile.kairos-debian
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ RUN rm -rf /etc/ssh/ssh_host_*
COPY which-init.sh /usr/local/bin/which-init.sh

RUN sed -i -n '/KAIROS_/!p' /etc/os-release
RUN sed -i -n '/KAIROS_/!p' /etc/kairos-release
RUN if [ -f "/etc/kairos-release" ]; then sed -i -n '/KAIROS_/!p' /etc/kairos-release; fi

# need to be defined after FROM for them to be replaced in the RUN bellow
ARG HOME_URL="https://github.com/kairos-io/kairos"
Expand Down
2 changes: 1 addition & 1 deletion images/Dockerfile.kairos-opensuse
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ RUN rm -rf /etc/ssh/ssh_host_*
COPY which-init.sh /usr/local/bin/which-init.sh

RUN sed -i -n '/KAIROS_/!p' /etc/os-release
RUN sed -i -n '/KAIROS_/!p' /etc/kairos-release
RUN if [ -f "/etc/kairos-release" ]; then sed -i -n '/KAIROS_/!p' /etc/kairos-release; fi

# need to be defined after FROM for them to be replaced in the RUN bellow
ARG HOME_URL="https://github.com/kairos-io/kairos"
Expand Down
2 changes: 1 addition & 1 deletion images/Dockerfile.kairos-rhel
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ RUN rm -rf /etc/ssh/ssh_host_*
COPY which-init.sh /usr/local/bin/which-init.sh

RUN sed -i -n '/KAIROS_/!p' /etc/os-release
RUN sed -i -n '/KAIROS_/!p' /etc/kairos-release
RUN if [ -f "/etc/kairos-release" ]; then sed -i -n '/KAIROS_/!p' /etc/kairos-release; fi

# need to be defined after FROM for them to be replaced in the RUN bellow
ARG HOME_URL="https://github.com/kairos-io/kairos"
Expand Down
2 changes: 1 addition & 1 deletion images/Dockerfile.kairos-ubuntu
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ RUN rm -rf /etc/ssh/ssh_host_*
COPY which-init.sh /usr/local/bin/which-init.sh

RUN sed -i -n '/KAIROS_/!p' /etc/os-release
RUN sed -i -n '/KAIROS_/!p' /etc/kairos-release
RUN if [ -f "/etc/kairos-release" ]; then sed -i -n '/KAIROS_/!p' /etc/kairos-release; fi

# need to be defined after FROM for them to be replaced in the RUN bellow
ARG HOME_URL="https://github.com/kairos-io/kairos"
Expand Down

0 comments on commit 64f6b59

Please sign in to comment.