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

dracut: Add a new dracut module for gcp udev rules #53

Merged
merged 1 commit into from
May 26, 2023

Conversation

ravanelli
Copy link
Contributor

  • The dracut module is required for ignition (https://github.com/coreos/ignition) to work when using Redhat/Fedora CoreOS in GCP. Since the rules are kept in this repository, makes sense for the module to be part of it as well for a better maintenance in case the rules change;
  • Modify the spec file to include the new dracut module.

@google-cla
Copy link

google-cla bot commented May 19, 2023

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@google-oss-prow
Copy link

Hi @ravanelli. Thanks for your PR.

I'm waiting for a GoogleCloudPlatform member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@ravanelli
Copy link
Contributor Author

F.Y.I I only tested the changes for google-compute-engine.spec in F38. I didn't validate the changes for debian. Would be good if something could double check it ;) I'm not too familiar with debian packaging.

@vorakl
Copy link
Contributor

vorakl commented May 19, 2023

/cc zmarano
/assign zmarano

@@ -4,4 +4,5 @@ etc/rsyslog.d/*
etc/sysctl.d/*
lib/udev/rules.d/*
lib/udev/*
lib/dracut/*
Copy link
Contributor

Choose a reason for hiding this comment

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

Debian doesn't use dracut so please remove this.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done. Thanks for checking it @zmarano

@zmarano
Copy link
Contributor

zmarano commented May 22, 2023

/ok-to-test


# called by dracut
install() {
inst_simple /usr/lib/udev/google_nvme_id
Copy link
Contributor

Choose a reason for hiding this comment

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

https://github.com/GoogleCloudPlatform/guest-configs/blob/master/src/lib/udev/google_nvme_id#L20
This script depends on the nvme cli ... which would also have to be included in the dracut module.

Copy link
Contributor

Choose a reason for hiding this comment

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

It's probably worth listing all non-coreutils dependencies to be safe. So it would be something like:

inst_multiple nvme grep sed

@ravanelli
Copy link
Contributor Author

/hold Still missing #53 (comment)

src/lib/dracut/dracut.conf.d/gce.conf Outdated Show resolved Hide resolved

# called by dracut
install() {
inst_simple /usr/lib/udev/google_nvme_id
Copy link
Contributor

Choose a reason for hiding this comment

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

It's probably worth listing all non-coreutils dependencies to be safe. So it would be something like:

inst_multiple nvme grep sed

 - The dracut module is required for ignition
 (https://github.com/coreos/ignition) to work when
using Redhat/Fedora CoreOS in GCP. Since the rules are
kept in this repository, makes sense for the module to be
part of it as well for a better maintenance in case
the rules change;
 - Modify the spec file to include the new dracut module.

Signed-off-by: Renata Ravanelli <rravanel@redhat.com>
@ravanelli
Copy link
Contributor Author

/unhold
Thanks all for the comments!

@zmarano
Copy link
Contributor

zmarano commented May 26, 2023

/lgtm

@google-oss-prow google-oss-prow bot added the lgtm label May 26, 2023
@google-oss-prow
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ravanelli, zmarano

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants