aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortomalok <tomalok@gmail.com>2019-01-19 11:58:34 -0800
committerGitHub <noreply@github.com>2019-01-19 11:58:34 -0800
commit80c014d702a2e62061067f9644637a65ffa8280e (patch)
tree9d068c64d89df08567f5addae05301f9906b86cd
parentb669fc0a215500b02bfb3edd659be7533758332f (diff)
downloadalpine-ec2-ami-80c014d702a2e62061067f9644637a65ffa8280e.tar.bz2
alpine-ec2-ami-80c014d702a2e62061067f9644637a65ffa8280e.tar.xz
alpine-ec2-ami-80c014d702a2e62061067f9644637a65ffa8280e.zip
fix 3.8 ena drivers (#33)
* go back to using linux-virt@edge-main, which has ena drivers * other misc fixes * update README * use --no-cache when installing alpine-base
-rw-r--r--README.md13
-rwxr-xr-xmake_ami.sh4
2 files changed, 8 insertions, 9 deletions
diff --git a/README.md b/README.md
index 2cb9b78..893075a 100644
--- a/README.md
+++ b/README.md
@@ -56,16 +56,15 @@ its development and thus there are some sharp edges.
56 setting will work as will setting the ssh keys for the Alpine user based on 56 setting will work as will setting the ssh keys for the Alpine user based on
57 what was configured during instance launch. User data is supported as long 57 what was configured during instance launch. User data is supported as long
58 as it's a shell script (starts with #!). See the tiny-ec2-bootstrap README 58 as it's a shell script (starts with #!). See the tiny-ec2-bootstrap README
59 for more details. You can still install cloud-init using aports but the 59 for more details. You can still install cloud-init (from the edge/3.9 testing
60 version in the tree is somewhat old and may not work correctly for Alpine. 60 repositories), but we haven't tested whether it will not work correctly for
61 If full cloud-init support is important to you please file a bug against this 61 this AMI. If full cloud-init support is important to you please file a bug
62 project. 62 against this project.
63 63
64- Because several key packages in Alpine 3.8 are missing or lacking features, 64- Because several key packages in Alpine 3.8 are missing or lacking features,
65 we currently need to install some packages from edge. We expect that these 65 we currently need to install some packages from edge. We expect that these
66 will be included in Alpine 3.9, or perhaps as a 3.8.x update. 66 will be included in Alpine 3.9.
67 - linux-virt @edge-main (includes necessary NVMe drivers) 67 - linux-virt @edge-main (includes necessary ENA drivers)
68 - aws-ena-driver @edge-community (installs 'virt' flavored subpackage)
69 - tiny-ec2-bootstrap @edge-main (updated to v1.2.0) 68 - tiny-ec2-bootstrap @edge-main (updated to v1.2.0)
70 69
71- CloudFormation support is still forthcoming. This requires patches and 70- CloudFormation support is still forthcoming. This requires patches and
diff --git a/make_ami.sh b/make_ami.sh
index 7652edc..b5097ab 100755
--- a/make_ami.sh
+++ b/make_ami.sh
@@ -131,7 +131,7 @@ install_core_packages() {
131 # tiny-ec2-bootstrap - to bootstrap system from EC2 metadata 131 # tiny-ec2-bootstrap - to bootstrap system from EC2 metadata
132 # 132 #
133 chroot "$target" apk --no-cache add \ 133 chroot "$target" apk --no-cache add \
134 linux-virt \ 134 linux-virt@edge-main \
135 alpine-mirrors \ 135 alpine-mirrors \
136 nvme-cli \ 136 nvme-cli \
137 chrony \ 137 chrony \
@@ -322,7 +322,7 @@ main() {
322 fetch_keys "$target" 322 fetch_keys "$target"
323 323
324 einfo "Installing base system" 324 einfo "Installing base system"
325 $apk add --root "$target" --update-cache --initdb alpine-base 325 $apk add --root "$target" --no-cache --initdb alpine-base
326 326
327 setup_chroot "$target" 327 setup_chroot "$target"
328 328