Skip to content

Commit 77fb41e

Browse files
Alexandra Iordachelauralt
Alexandra Iordache
authored andcommitted
Update bzimage kernel image download path
The integ tests used to download a 4.9 kernel image from the Debian servers, which has been since taken down. Updating to a 5.10 image and adjusting the tests accordingly. Fixes #149 Signed-off-by: Alexandra Iordache <[email protected]>
1 parent eac7ec4 commit 77fb41e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.buildkite/download_resources.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22

33
set -e
44

5-
DEB_NAME="kernel-image-4.9.0-13-amd64-di_4.9.228-1_amd64.udeb"
5+
DEB_NAME="linux-image-5.10.0-22-amd64-unsigned_5.10.178-3_amd64.deb"
66
DEB_URL="http://ftp.us.debian.org/debian/pool/main/l/linux/${DEB_NAME}"
77

88
TMP_PATH="/tmp/linux-loader/"
99
DEB_PATH="${TMP_PATH}/${DEB_NAME}"
1010
EXTRACT_PATH="${TMP_PATH}/src/bzimage-archive"
11-
BZIMAGE_PATH="${EXTRACT_PATH}/boot/vmlinuz"
11+
BZIMAGE_PATH="${EXTRACT_PATH}/boot/vmlinuz-5.10.0-22-amd64"
1212
SCRIPTPATH="$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
1313

1414
mkdir -p ${EXTRACT_PATH}

src/loader/x86_64/bzimage/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,10 +252,10 @@ mod tests {
252252
// Reading the value from an unaligned address is not considered safe.
253253
// but this is not an issue since this is a test.
254254
unsafe { std::ptr::addr_of!(setup_header.version).read_unaligned() },
255-
0x20d
255+
0x20f
256256
);
257257
assert_eq!(loader_result.setup_header.unwrap().loadflags, 1);
258-
assert_eq!(loader_result.kernel_end, 0x60D320);
258+
assert_eq!(loader_result.kernel_end, 0x8B1600);
259259

260260
// load bzImage without kernel_offset
261261
loader_result = BzImage::load(

0 commit comments

Comments
 (0)