Open fensoft opened 5 months ago
Yeah, good job. I hate Docker though, donβt see why it was needed here.
docker is nearly used everywhere when speaking about building images for embedded devices (armbian, openwrt, yocto, busybox). it's also used when you need to build or run something in a controled environment without polluting your environment so i don't understand why you hate docker
Your script fails for me when setting up loop devices. It seems like content that is fed into grep fails. Anyone have an idea how I could fix it?
[π³|πΈ] Command failed, retrying in 5s [ check_loop_device_internal ]
[π³|πΈ] Command failed 5 times, giving up [ check_loop_device_internal ]
[π³|π₯] error! [ Device node does not exist after 5 tries. ]
[π³|π₯] Exiting with error 43 [ at /armbian/lib/functions/logging/traps.sh:1
exit_with_error() --> lib/functions/logging/traps.sh:1
check_loop_device() --> lib/functions/image/loop.sh:15
prepare_partitions() --> lib/functions/image/partitioning.sh:234
do_with_logging() --> lib/functions/logging/section-logging.sh:81
build_rootfs_and_image() --> lib/functions/main/rootfs-image.sh:86
full_build_packages_rootfs_and_image() --> lib/functions/main/default-build.sh:36
do_with_default_build() --> lib/functions/main/default-build.sh:42
cli_standard_build_run() --> lib/functions/cli/cli-build.sh:25
armbian_cli_run_command() --> lib/functions/cli/utils-cli.sh:136
cli_entrypoint() --> lib/functions/cli/entrypoint.sh:176
main() --> compile.sh:50
]
[π³|π₯] Cleaning up [ please wait for cleanups to finish ]
You probably won't have /dev/loop0. WSL2 ?
You probably won't have /dev/loop0. WSL2 ?
I am on artix/arch linux. Will run the command again and will post the lsblk.
EDIT: Found a fix in the armbian issues. When executing $ losetup -f
before compiling a loop device gets created. After that the process runs smoothly.
Just run this: