Does derivative-maker only runs kpartx -d -s -v /dev/loop4 but not for /dev/loop3 etc.? If so, that would probably be a bash code level bug that I’d be very much interested to fix
Could you provide that part of the debug output of unmount-raw step please?
Please remove any hacks. Consider leftover loop devices my task. Post merge I’ll unmount them in unmount-raw.
/home/user/derivative-maker ${@:1:$(($#-1))} 2>&1 | tee -a ${BUILD_LOG}; set – ${@: -1}; exec “$@”
This seems unnecessarily complex.
Full command should just be: home/user/derivative-maker "$@"
${@:1:$(($#-1))}
What’s that for? Simply "$@" should do?
| tee -a ${BUILD_LOG};
Not a job for docker?
For users, if someone wanted redirect output to the terminal, that is easy:
your-command &>/path/to/log/file
Bash feature. Redirects both stdout and stderr.
If log handling should be modified such as always creating a log file, then please post a derivative-maker feature request.
git checkout --recurse-submodules ${TAG};
Is this still needed? Should docker handle git tag checkout?