Skip to content

Rename container_exit.sh to image_exit.sh#77

Open
anderbubble wants to merge 1 commit intowarewulf:mainfrom
anderbubble:image-exit
Open

Rename container_exit.sh to image_exit.sh#77
anderbubble wants to merge 1 commit intowarewulf:mainfrom
anderbubble:image-exit

Conversation

@anderbubble
Copy link
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
Copy link

Copilot AI left a comment

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

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
Copy link

Copilot AI Jul 10, 2025

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.
@anderbubble anderbubble force-pushed the image-exit branch 2 times, most recently from 4f0336e to 137dabb Compare July 10, 2025 05:21
Copy link
Contributor

@middelkoopt middelkoopt left a comment

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
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
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.)

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