guysoft / CustomPiOS

A Raspberry Pi and other ARM devices distribution builder
GNU General Public License v3.0
509 stars 146 forks source link

Build fails because of line added in "start_chroot_script" #71

Closed AlbertMN closed 4 years ago

AlbertMN commented 4 years ago

Hi there. I am very new to this, so my apologies if this is an ignorant question, but I couldn't Google my way to a solution 😅

I'm trying to build a quite simply image. I'm building it from Octopi (having forked it). Were originally gonna create a variant of OctoPi, as per suggestion by the developer, but as this image needs to be done very soon, I just went with modifying OctoPi instead.

All I have modified is the src/modules/octopi/filesystem/home folder, where I have added a folder containing some Python scripts. These are added to the image just fine, but when adding the line sudo -u pi pip install pyyaml requests python-crontab (dependencies of my scripts) in the start_chroot_script, the build fails consistantly.

Is there a better way of installing these dependencies in the CustomPiOs build? Just need the required pip packages installed, and for one of my python-scripts to be opened at first boot of the RPI.

I think all I need is being pointed in the right direction (hopefully). Thanks!

guysoft commented 4 years ago

Hey,

  1. A variant should not take longer to build
  2. Please attach your build.log so I can see what your actual error message is.
AlbertMN commented 4 years ago

Sorry it's taken so long for me to get back to you. Looking at this again in the next couple of days! :)