Skip to content

Commit de48fd6

Browse files
committed
doc: Update guest kernel patch version in getting-started.md
Fix the whole "we forgot to update the getting started guide after regenerating CI artifacts" thing once and for all by using S3's list-objects API for dynamically looking up the name of the 5.10 guest kernel. We commit the cardinal sin of parsing XML using regex, but this should be fine here as we're only matching for a single, complete tag. This breaks if the list objects operation ever returns more than 1000 objects, but that would meant over 1000 5.10 guest kernels in our CI artiafacts, and I doubt that will ever happen. Closes #4675 Signed-off-by: Patrick Roy <[email protected]>
1 parent 99bc630 commit de48fd6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/getting-started.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,10 @@ kernel image with a Ubuntu 22.04 rootfs from our CI:
8282
```bash
8383
ARCH="$(uname -m)"
8484

85+
latest=$(wget "http://spec.ccfc.min.s3.amazonaws.com/?prefix=firecracker-ci/v1.9/x86_64/vmlinux-5.10&list-type=2" -O - 2>/dev/null | grep "(?<=<Key>)(firecracker-ci/v1.9/x86_64/vmlinux-5\.10\.[0-9]{3})(?=</Key>)" -o -P)
86+
8587
# Download a linux kernel binary
86-
wget https://s3.amazonaws.com/spec.ccfc.min/firecracker-ci/v1.9/${ARCH}/vmlinux-5.10.217
88+
wget https://s3.amazonaws.com/spec.ccfc.min/${latest}
8789

8890
# Download a rootfs
8991
wget https://s3.amazonaws.com/spec.ccfc.min/firecracker-ci/v1.9/${ARCH}/ubuntu-22.04.ext4

0 commit comments

Comments
 (0)