diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index bdf4c37bc44874f3cc52d56c150eb8f2a6b16f4b..bfb07bc78231dc51c12b8d56f35a40e11d3db35a 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -33,6 +33,8 @@ img:
         rustup component add rust-src &&
         cargo install cargo-config xargo &&
         pushd bootloader-efi &&
+        rustup update &&
+        mkdir -p "$HOME/.rustup/toolchains/nightly-*-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin"
         rustup component add rust-src &&
         popd &&
         make ci-img IMG_TAG=$CI_COMMIT_REF_NAME