Skip to content

Failure to build packages with /tmp mounted with "nodev" option (recent distros) #5

@ahartmetz

Description

@ahartmetz

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions