Page MenuHomeVyOS Platform

Build instructions: 'make iso' needs root
Closed, ResolvedPublic

Description

From #vyos on IRC:

11:35 <mtcdood> following the instructions https://vyos.readthedocs.io/en/latest/build-vyos.html
11:36 <mtcdood> I do not become root in the docker instance when running docker run foo
11:36 <mtcdood> so it is impossible to actually build the image using these instructions

Verified:

esa@desktop ~/vyos-build (crux) $ docker run --rm -it --privileged -v $(pwd):/vyos -w /vyos vyos-builder bash
Current UID/GID: 909800001/909800001
vyos_bld@8f35b8d01380:/vyos$ ./configure --architecture amd64 --build-by "your@email.tld" --build-type release --version 1.2.0
Checking if packages required for VyOS image build are installed
All dependencies are installed
Saving the build config to build/build-config.json
vyos_bld@8f35b8d01380:/vyos$ make iso
Checking build configuration
E: need root privileges
Makefile:204: recipe for target 'clean' failed
make: *** [clean] Error 1
vyos_bld@8f35b8d01380:/vyos$

Details

Version
vyos-documentation master (1cee9fe391f0b49e7490a8369d1e29ceab228024)

Event Timeline

varesa created this object in space S1 VyOS Public.

Looking at the Jenkinsfile it seems that missing sudo is the only difference:

# Configure the ISO
 ./configure --build-by="autobuild@vyos.net" --debian-mirror="http://ftp.us.debian.org/debian/"

# Debug to see which Debian packages we have so far
ls -al packages/*.deb

# Finally build our ISO
sudo make iso
varesa changed the task status from Open to Confirmed.Jul 13 2019, 12:29 PM
varesa triaged this task as Low priority.
varesa updated the task description. (Show Details)
c-po assigned this task to varesa.
varesa added a project: Restricted Project.Jul 13 2019, 5:01 PM