Skip to content

Commit 9e1f223

Browse files
Alexandra Iordachealxiord
authored andcommitted
buildkite: update bzimage location in hook
Debian changes the structure of their ftp mirror, so we need to download the bzimage used in the tests from the new location. Signed-off-by: Alexandra Iordache <aghecen@amazon.com>
1 parent 274fc2d commit 9e1f223

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.buildkite/hooks/post-checkout

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
#!/bin/bash
22

3-
DEB_NAME="linux-image-4.9.0-12-amd64_4.9.210-1_amd64.deb"
4-
DEB_URL="http://ftp.debian.org/debian/pool/main/l/linux/${DEB_NAME}"
3+
DEB_NAME="kernel-image-4.9.0-13-amd64-di_4.9.228-1_amd64.udeb"
4+
DEB_URL="http://ftp.us.debian.org/debian/pool/main/l/linux/${DEB_NAME}"
55

66
REPO_PATH="${BUILDKITE_BUILD_CHECKOUT_PATH}"
77
DEB_PATH="${REPO_PATH}/${DEB_NAME}"
88
EXTRACT_PATH="${REPO_PATH}/src/bzimage-archive"
9-
BZIMAGE_PATH="${EXTRACT_PATH}/boot/vmlinuz-4.9.0-12-amd64"
9+
BZIMAGE_PATH="${EXTRACT_PATH}/boot/vmlinuz"
1010

1111
mkdir -p ${EXTRACT_PATH}
1212

src/loader/x86_64/bzimage/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ mod tests {
210210
assert_eq!(loader_result.setup_header.unwrap().header, 0x53726448);
211211
assert_eq!(loader_result.setup_header.unwrap().version, 0x20d);
212212
assert_eq!(loader_result.setup_header.unwrap().loadflags, 1);
213-
assert_eq!(loader_result.kernel_end, 0x60c320);
213+
assert_eq!(loader_result.kernel_end, 0x60D320);
214214

215215
// load bzImage without kernel_offset
216216
loader_result = BzImage::load(

0 commit comments

Comments
 (0)