Skip to content

build: fail usr-so3 deploy clearly when the user space is not built#260

Merged
daniel-rossier merged 1 commit into
mainfrom
fix/usr-deploy-guard
Jun 30, 2026
Merged

build: fail usr-so3 deploy clearly when the user space is not built#260
daniel-rossier merged 1 commit into
mainfrom
fix/usr-deploy-guard

Conversation

@daniel-rossier

Copy link
Copy Markdown
Contributor

Problem

On a fresh clone (or when only the kernel was built), deploy.sh bsp-so3 fails with an opaque error:

rsync: change_dir ".../so3/usr/build/deploy" failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (code 23)

usr-so3:do_deploy rsync'd from so3/usr/build/deploy/ without checking it exists, and it had already loop-mounted the rootfs — so the abort also left a dangling mount behind.

Fix

Check the deploy source dir before mounting the rootfs, and bb.fatal with an actionable message if it's missing:

SO3 user space not built: '.../so3/usr/build/deploy' is missing.
Build it first with 'build.sh -x usr-so3' (or 'build.sh bsp-so3').

Because the check runs before __do_rootfs_mount, a missing build no longer leaves a dangling loop mount. No behaviour change when the user space is built.

do_deploy rsync'd from so3/usr/build/deploy/ without checking it exists.
On a fresh clone (or when only the kernel was built), that directory is
missing and deploy aborted with a cryptic "rsync ... (code 23)". Check
the source dir up front and bb.fatal with an actionable hint
("build.sh -x usr-so3" / "build.sh bsp-so3"). The check runs before the
rootfs loop-mount, so a missing build no longer leaves a dangling mount.
@daniel-rossier daniel-rossier merged commit bda677f into main Jun 30, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant