I am running e2factory on Kubuntu 24.10, which mounts /tmp with "nosuid,nodev" options among others. I ran into some very strange build failures that I traced to these lines from a build script:
if ! sed --help 2>/dev/null 1>&2 || ! pwd 2>/dev/null 1>&2; then
echo 'Postinstall script of toolchain-packages.binutils-host-dev package failed!'
echo 'This script is needed to fix path entries of libtool files.'
echo 'The required tools "sed" and "pwd" are not available!'
exit 1
fi
and the non-usability of /dev in the build root filesystem under /tmp. The script prints the error message and aborts as if sed or pwd were not available.
Several workarounds, like setting E2_TMPDIR, are possible, but it should also work out of the box.