-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Azure udev rules workaround for WALinuxAgent
For RHEL 8.6, we no longer need the 25rhcos-azure-udev-rules overlay because the WALinuxAgent-udev package exists. We do still need the glue code that copies the udev files into the initramfs via a dracut module, thought. This is not needed for RHEL 9.0. This migrates the glue code that installs the udev rules into the initramfs to an overlay module in the RHCOS repo for 8.6. It was no longer needed in FCOS and removed from the overlay there in [1]. [1] coreos/fedora-coreos-config#1686 From: #785
- Loading branch information
Showing
6 changed files
with
32 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
overlay.d/25rhcos-azure-udev/usr/lib/dracut/modules.d/25rhcos-azure-udev/module-setup.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash | ||
# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- | ||
# ex: ts=8 sw=4 sts=4 et filetype=sh | ||
|
||
# We want to provide Azure udev rules as part of the initrd, so that Ignition | ||
# is able to detect disks and act on them. | ||
# | ||
# The WALinuxAgent-udev has been changed to install udev rules into | ||
# the initramfs [1], but that change isn't in el8 yet. This can be | ||
# dropped when moving to el9. | ||
# | ||
# [1] https://src.fedoraproject.org/rpms/WALinuxAgent/c/521b67bc8575f53a30b4b2c4e63292e67483a4e1?branch=rawhide | ||
|
||
install() { | ||
inst_multiple \ | ||
/usr/lib/udev/rules.d/66-azure-storage.rules \ | ||
/usr/lib/udev/rules.d/99-azure-product-uuid.rules | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.