Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable the sysv init scripts in OpenBSD build script #5790

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

hcartiaux
Copy link
Contributor

@hcartiaux hcartiaux commented Oct 6, 2024

Proposed Commit Message

<type>fix(openbsd)</type>: Enable sysv init scripts in OpenBSD build script

This replaces the use of `/etc/rc.local` in the OpenBSD build script by the sysv init scripts provided with cloud-init.

Fixes GH-4036
LP: #1992853

Additional Context

I've fixed a bug in the sysv init scripts by disabling rc_bg="YES", otherwise it would fail to execute correctly with this error at boot:

rcctl start cloudconfig 
cloudconfig/etc/rc.d/cloudconfig: kill: 66598: No such process
(ok)

Also, /etc/rc.local is not needed anymore, /var/run is managed by the system and does not have to be cleaned up manually.

Test Steps

My own CI: https://github.com/hcartiaux/openbsd-cloud-image/actions/

  • Generate an OpenBSD 7.6 image with cloud-init 24.3.1
  • Apply the diff with the post-install script install.site
  • Generate a minimal iso with a ssh key
  • Boot the previously generated image and wait until the VM is back

I've also tested manually to have a closer look at the output.

Merge type

  • Squash merge using "Proposed Commit Message"
  • Rebase and merge unique commits. Requires commit messages per-commit each referencing the pull request number (#<PR_NUM>)

@holmanb holmanb requested a review from igalic October 7, 2024 15:08
@holmanb
Copy link
Member

holmanb commented Oct 7, 2024

@igalic could you take a look at this please?

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.

2 participants