Add AWS nvme udev rules (#351)

This commit is contained in:
Malte Poll 2022-10-21 14:55:13 +02:00 committed by GitHub
parent c82d5ccba9
commit 26cfbfdd1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 55 additions and 0 deletions

View File

@ -0,0 +1,3 @@
[Content]
Packages=
ec2-utils

View File

@ -0,0 +1,39 @@
[amzn2-core]
name=Amazon Linux 2 core repository
#mirrorlist=$awsproto://$amazonlinux.$awsregion.$awsdomain/$releasever/$product/$target/$basearch/mirror.list
mirrorlist=https://amazonlinux-2-repos-us-east-2.s3.dualstack.us-east-2.amazonaws.com/2/core/latest/x86_64/mirror.list
priority=10
gpgcheck=1
#gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-amazon-linux-2
gpgkey=https://cdn.amazonlinux.com/_assets/11CF1F95C87F5B1A.asc
enabled=1
metadata_expire=300
mirrorlist_expire=300
report_instanceid=yes
includepkgs=ec2-utils
# [amzn2-core-source]
# name=Amazon Linux 2 core repository - source packages
# mirrorlist=$awsproto://$amazonlinux.$awsregion.$awsdomain/$releasever/$product/$target/SRPMS/mirror.list
# priority=10
# gpgcheck=1
# #gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-amazon-linux-2
# gpgkey=https://cdn.amazonlinux.com/_assets/11CF1F95C87F5B1A.asc
# enabled=0
# metadata_expire=300
# mirrorlist_expire=300
# report_instanceid=yes
# includepkgs=ec2-utils
# [amzn2-core-debuginfo]
# name=Amazon Linux 2 core repository - debuginfo packages
# mirrorlist=$awsproto://$amazonlinux.$awsregion.$awsdomain/$releasever/$product/$target/debuginfo/$basearch/mirror.list
# priority=10
# gpgcheck=1
# #gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-amazon-linux-2
# gpgkey=https://cdn.amazonlinux.com/_assets/11CF1F95C87F5B1A.asc
# enabled=0
# metadata_expire=300
# mirrorlist_expire=300
# report_instanceid=yes
# includepkgs=ec2-utils

View File

@ -56,4 +56,17 @@ install() {
"/usr/lib/udev/rules.d/64-gce-disk-removal.rules" "/usr/lib/udev/rules.d/64-gce-disk-removal.rules"
inst_simple "/usr/lib/udev/rules.d/65-gce-disk-naming.rules" \ inst_simple "/usr/lib/udev/rules.d/65-gce-disk-naming.rules" \
"/usr/lib/udev/rules.d/65-gce-disk-naming.rules" "/usr/lib/udev/rules.d/65-gce-disk-naming.rules"
inst_script "/usr/sbin/ebsnvme-id" \
"/usr/sbin/ebsnvme-id"
inst_script "/usr/bin/ec2-metadata" \
"/usr/bin/ec2-metadata"
inst_script "/usr/lib/udev/ec2nvme-nsid" \
"/usr/lib/udev/ec2nvme-nsid"
inst_script "/usr/lib/udev/ec2nvme-nsid" \
"/usr/sbin/ec2nvme-nsid"
inst_script "/usr/sbin/ec2udev-vbd" \
"/usr/sbin/ec2udev-vbd"
inst_simple "/usr/lib/udev/rules.d/70-ec2-nvme-devices.rules" \
"/usr/lib/udev/rules.d/70-ec2-nvme-devices.rules"
} }