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
This commit is contained in:
tomalok 2019-01-19 11:58:34 -08:00 committed by GitHub
parent b669fc0a21
commit 80c014d702
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 9 deletions

View File

@ -56,16 +56,15 @@ its development and thus there are some sharp edges.
setting will work as will setting the ssh keys for the Alpine user based on setting will work as will setting the ssh keys for the Alpine user based on
what was configured during instance launch. User data is supported as long what was configured during instance launch. User data is supported as long
as it's a shell script (starts with #!). See the tiny-ec2-bootstrap README as it's a shell script (starts with #!). See the tiny-ec2-bootstrap README
for more details. You can still install cloud-init using aports but the for more details. You can still install cloud-init (from the edge/3.9 testing
version in the tree is somewhat old and may not work correctly for Alpine. repositories), but we haven't tested whether it will not work correctly for
If full cloud-init support is important to you please file a bug against this this AMI. If full cloud-init support is important to you please file a bug
project. against this project.
- Because several key packages in Alpine 3.8 are missing or lacking features, - Because several key packages in Alpine 3.8 are missing or lacking features,
we currently need to install some packages from edge. We expect that these we currently need to install some packages from edge. We expect that these
will be included in Alpine 3.9, or perhaps as a 3.8.x update. will be included in Alpine 3.9.
- linux-virt @edge-main (includes necessary NVMe drivers) - linux-virt @edge-main (includes necessary ENA drivers)
- aws-ena-driver @edge-community (installs 'virt' flavored subpackage)
- tiny-ec2-bootstrap @edge-main (updated to v1.2.0) - tiny-ec2-bootstrap @edge-main (updated to v1.2.0)
- CloudFormation support is still forthcoming. This requires patches and - CloudFormation support is still forthcoming. This requires patches and

View File

@ -131,7 +131,7 @@ install_core_packages() {
# tiny-ec2-bootstrap - to bootstrap system from EC2 metadata # tiny-ec2-bootstrap - to bootstrap system from EC2 metadata
# #
chroot "$target" apk --no-cache add \ chroot "$target" apk --no-cache add \
linux-virt \ linux-virt@edge-main \
alpine-mirrors \ alpine-mirrors \
nvme-cli \ nvme-cli \
chrony \ chrony \
@ -322,7 +322,7 @@ main() {
fetch_keys "$target" fetch_keys "$target"
einfo "Installing base system" einfo "Installing base system"
$apk add --root "$target" --update-cache --initdb alpine-base $apk add --root "$target" --no-cache --initdb alpine-base
setup_chroot "$target" setup_chroot "$target"