Never delete /dev on the router. Even when you run auc locally, it can display a remote build log. If the path starts with /builder/build_dir/, check whether the builder produced an image.
Read past the warning
Save the job ID, target release, model and full log from LuCI Attended Sysupgrade or auc. Work back from the final make exit code to the first specific error.
- An image and digest indicate that packaging finished. If Image check failed appears later, inspect the router’s rejection separately.
- With no image and Image too big, try a build only with the default packages for the same model and release. For a missing dependency, investigate that package first. Restore your package list afterwards.
- If the log ends at the collision, check that the job finished and the display is complete. On your own builder inspect the tool version and flags. Without them the cause can remain unknown.
Why the same message can have two outcomes
We tested mksquashfs 4.5.1 in an isolated Linux container. The source already contained dev and -p defined it again. We created test filesystems only and flashed no firmware.
To repeat, run each line in a fresh empty directory on a Linux computer with squashfs-tools. Read the status immediately after each build. Never upload these samples or blindly copy the exclusion hint. Real images need the correct permissions and device nodes.
mkdir -p src/dev
mksquashfs src normal.sqfs -p "dev d 755 0 0" -quiet -processors 1
echo $?
unsquashfs -l normal.sqfs

Default mode ignored the duplicate, returned 0 and retained dev
mksquashfs src strict.sqfs -p "dev d 755 0 0" -quiet -processors 1 -exit-on-error
echo $?
mksquashfs src single.sqfs -quiet -processors 1 -exit-on-error
echo $?
unsquashfs -l single.sqfs

With -exit-on-error the result was 1. Keeping the directory and dropping only our extra definition returned 0
Check the actual upgrade image
Verify the source, hardware revision, file purpose and digest. Check temporary space and put the correct upgrade image at the example path. Run these lines over SSH on the router for a compatibility check only.
ubus call system board
sysupgrade -T /tmp/candidate.bin
echo $?
Stop on a nonzero result and save the reason. If settings cannot migrate, plan reconfiguration and recovery. Zero confirms only the local check. Back up and confirm recovery access before writing. For diagnosis alone, stop here and remove your temporary upload.
What does an OpenWrt configuration backup restore?
GL.iNet GL-B3000 reboots after sysupgrade but still runs the old build
Comments