File tree 2 files changed +19
-11
lines changed
2 files changed +19
-11
lines changed Original file line number Diff line number Diff line change 35
35
```
36
36
packer build \
37
37
-var kubernetes_version=1.32 \
38
- -var source_ami_id=ami-0f114867066b78822
38
+ -var source_ami_id=ami-0f114867066b78822 \
39
+ amazon-ebs.pkr.hcl
39
40
```
40
41
41
42
Arbitrary additional tags can be added to the AMI by specifying a JSON
@@ -44,7 +45,8 @@ map of tags as the `tags` variable, e.g.:
44
45
```
45
46
packer build \
46
47
-var kubernetes_version=1.32 \
47
- -var 'tags={"mykey": "myvalue", "myotherkey": "myothervalue"}'
48
+ -var 'tags={"mykey": "myvalue", "myotherkey": "myothervalue"}' \
49
+ amazon-ebs.pkr.hcl
48
50
```
49
51
50
52
Note that when building the AMI, the following warnings are expected and can be ignored:
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
# This script must be run as the root user.
3
3
4
- set -x
4
+ set -ex
5
+
6
+ dnf install -y \
7
+ " kernel-devel-$( uname -r) " \
8
+ git
5
9
6
10
# Download and build the igb_uio driver, and load it into the kernel.
7
11
# N.B. A warning for 'Skipping BTF generation' is expected. This doesn't affect
8
12
# the performance of the built driver.
9
- dnf install -y " kernel-devel-$( uname -r) "
10
-
11
- mkdir igb_uio
12
- curl https://git.dpdk.org/dpdk-kmods/snapshot/dpdk-kmods-e721c733cd24206399bebb8f0751b0387c4c1595.tar.gz | tar -xz -C igb_uio --strip-components 1
13
- make -C igb_uio/linux/igb_uio
14
- cp igb_uio/linux/igb_uio/igb_uio.ko " /lib/modules/$( uname -r) /kernel/drivers/uio"
13
+ git clone git://dpdk.org/dpdk-kmods
14
+ cd dpdk-kmods
15
+ git switch e721c733cd24206399bebb8f0751b0387c4c1595 --detach
16
+ make -C linux/igb_uio
17
+ cp linux/igb_uio/igb_uio.ko " /lib/modules/$( uname -r) /kernel/drivers/uio"
15
18
depmod " $( uname -r) "
16
- rm -rf igb_uio
19
+ cd ../
20
+ rm -rf dpdk-kmods
17
21
18
22
# TuneD is not available in the Amazon Linux 2023 repository, so download our
19
23
# own version instead.
@@ -35,7 +39,9 @@ mkdir tuned
35
39
curl -L https://github.com/redhat-performance/tuned/archive/refs/tags/v2.24.1.tar.gz | tar -xz -C tuned --strip-components 1
36
40
# N.B. The 'desktop-file-install' action is expected to fail. This doesn't
37
41
# affect the installation of the tuned service.
38
- make -C tuned install
42
+ if ! make -C tuned install; then
43
+ echo " desktop-file-install failure is expected. Continuing with installation..."
44
+ fi
39
45
rm -rf tuned
40
46
41
47
# Set up the sysctls.
You can’t perform that action at this time.
0 commit comments