Skip to content
This repository has been archived by the owner on Mar 1, 2023. It is now read-only.

Allow building images on NFS-mounted clones #11

Merged
merged 1 commit into from
Jul 10, 2019

Commits on Jul 9, 2019

  1. Allow building images on NFS-mounted clones

    Prior to this change, `build_debian.sh` would generate a Debian
    filesystem in `./fsroot`. This needs root permissions, and one of the
    tests that is performed is whether the user can create a character
    special file in the filesystem (using mknod).
    
    On most NFS deployments, `root` is the least privileged user, and cannot
    run mknod. Also, attempting to run commands like rm or mv as root would
    fail due to permission errors, since the root user gets mapped to an
    unprivileged user like `nobody`.
    
    This commit changes the location of the Debian filesystem to `/fsroot`,
    which is a tmpfs mount within the slave Docker. The default squashfs,
    docker tarball and zip files are also created within /tmp, before being
    copied back to /sonic as the regular user.
    
    The side effect of this change is that the contents of `/fsroot` are no
    longer available once the slave container exits, however they are
    available within the squashfs image.
    
    Signed-off-by: Nirenjan Krishnan <Nirenjan.Krishnan@dell.com>
    nirenjan committed Jul 9, 2019
    Configuration menu
    Copy the full SHA
    de36781 View commit details
    Browse the repository at this point in the history