diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 9ce177887f1e16e3e4269354f253fd849a4c7645..744560ad4e1d54128196ac92650339445114409c 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -98,6 +98,7 @@ build-zynthbox-image-armhf:
     - sudo mount --bind /dev/pts $mountdir/dev/pts
     - sudo mount --bind /proc $mountdir/proc
     - sudo mount --bind /sys $mountdir/sys
+    - sudo SKIP_WARNING=1 SKIP_BACKUP=1 ROOT_PATH=$mountdir BOOT_PATH=$mountdir/boot rpi-update
     - sudo chroot $mountdir apt install zynthbox-z2-setup
     - |
       set -x
@@ -111,7 +112,6 @@ build-zynthbox-image-armhf:
       cd zyncoder/build
       ZYNTHIAN_WIRING_LAYOUT="Z2_V3" cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=RelWithDebInfo ..
       make -j4 install
-      SKIP_WARNING=1 SKIP_BACKUP=1 rpi-update
       EOF
     - sudo chroot $mountdir apt -y clean
     - sudo chroot $mountdir rm -rf /var/lib/apt/lists/*