Skip to content

Rename container_exit.sh to image_exit.sh - #77

Merged
middelkoopt merged 1 commit into
warewulf:mainfrom
anderbubble:image-exit
Apr 2, 2026
Merged

middelkoopt merged 1 commit into
warewulf:mainfrom
anderbubble:image-exit

Conversation

@anderbubble

Copy link
Copy Markdown
Collaborator

Warewulf v4.6 renamed container_exit.sh to image_exit.sh. Both are still supported for now.

To retain backward compatibility, these images include a symlink at container_exit.sh.

@anderbubble anderbubble self-assigned this Jul 10, 2025

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates various Containerfiles to use the newly renamed image_exit.sh (from container_exit.sh) and creates a backward-compatibility symlink. It also adds DOCA repository example files for Rocky Linux.

  • Replace COPY container_exit.sh with COPY image_exit.sh and add ln -s …/container_exit.sh across all distro Containerfiles
  • Introduce two DOCA .repo example files for RHEL8.10 and RHEL9.5
  • Add example DOCA build Containerfiles for Rocky Linux 8 and 9

Reviewed Changes

Copilot reviewed 23 out of 31 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
tumbleweed/Containerfile Switch to image_exit.sh and create symlink for container_exit.sh
rockylinux-9/Containerfile-vault Same script rename and symlink update
rockylinux-9/Containerfile-fixed Same script rename and symlink update
rockylinux-9/Containerfile Same script rename and symlink update
rockylinux-8/fixed Same script rename and symlink update
rockylinux-8/Containerfile-vault Same script rename and symlink update
rockylinux-8/Containerfile-fixed Same script rename and symlink update
rockylinux-8/Containerfile Same script rename and symlink update
leap/Containerfile.15 Same script rename and symlink update
leap/Containerfile Same script rename and symlink update
examples/rockylinux-doca/doca-el9.5.repo Add DOCA online repo definition
examples/rockylinux-doca/doca-el8.10.repo Add DOCA online repo definition
examples/rockylinux-doca/Containerfile-9 New DOCA build Containerfile for Rocky Linux 9
examples/rockylinux-doca/Containerfile-8 New DOCA build Containerfile for Rocky Linux 8
examples/rhel-9/Containerfile Script rename and symlink update
debian/Containerfile-12.0 Script rename and symlink update
debian/Containerfile Script rename and symlink update
almalinux-9/Containerfile-vault Script rename and symlink update
almalinux-9/Containerfile-fixed Script rename and symlink update
almalinux-9/Containerfile Script rename and symlink update
almalinux-8/Containerfile-vault Script rename and symlink update
almalinux-8/Containerfile-fixed Script rename and symlink update
almalinux-8/Containerfile Script rename and symlink update

Comment thread tumbleweed/Containerfile Outdated
COPY excludes /etc/warewulf/
COPY container_exit.sh /etc/warewulf/
COPY image_exit.sh /etc/warewulf/
RUN ln -s image_exit.sh /etc/warewulf/container_exit.sh

Copilot AI Jul 10, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider using ln -sf instead of ln -s to force overwriting any existing container_exit.sh and avoid build failures if the link already exists.

Suggested change
RUN ln -s image_exit.sh /etc/warewulf/container_exit.sh
RUN ln -sf image_exit.sh /etc/warewulf/container_exit.sh

Copilot uses AI. Check for mistakes.
Comment thread examples/rockylinux-doca/doca-el9.5.repo Outdated
Comment thread examples/rockylinux-doca/doca-el8.10.repo Outdated
@anderbubble
anderbubble force-pushed the image-exit branch 2 times, most recently from 4f0336e to 137dabb Compare July 10, 2025 05:21

@middelkoopt middelkoopt left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good and builds and lightly tested (AlmaLinux). Other PR's will need to get rebased against this, so let's get it in.

@anderbubble
anderbubble force-pushed the image-exit branch 2 times, most recently from bb94438 to 3e58da6 Compare January 12, 2026 17:55
@anderbubble

Copy link
Copy Markdown
Collaborator Author

Rebased and updated based on other changes to images since initial submission.

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
@anderbubble

Copy link
Copy Markdown
Collaborator Author

@middelkoopt I've rebased this. They all appear to be building correctly; but can you give it another once-over before I merge it? (Or you can merge it if you're so inclined.)

@middelkoopt

Copy link
Copy Markdown
Contributor

Totally missed this one. Looks good and tested. Going to add it to a PR with a bump for LEAP16 and OpenEuler 24.03 SP3. Leap 15 is EOL at the end of the month and OpenEuler SP2 just went EOL so it's done all at once.

@middelkoopt

Copy link
Copy Markdown
Contributor

Decided to merge first.

@middelkoopt
middelkoopt merged commit a40684c into warewulf:main Apr 2, 2026
45 of 46 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants