Git Product home page Git Product logo

scriptexecutor's Introduction

Script executor

Lightweight operating system image that downloads an arbritary shell script from a HTTP or NFS server, and executes it.

Quick start (if using a binary build)

To tell the image to download the script from the HTTP server with IP-address 1.2.3.4 put in cmdline.txt:

script=http://1.2.3.4/name-of-script.sh

To tell the image to download the script from the NFS server with IP-addresses 1.2.3.4 use:

script=1.2.3.4:/name-of-nfs-share/name-of-script.sh

If using NFS the script has access to other files inside the same NFS share as well. The current working directory is set to where the share is mounted before the script is executed.

Documentation

Building and customizing scriptexecutor

scriptexecutor's People

Contributors

ghollingworth avatar maxnet avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

scriptexecutor's Issues

Build errors

After cloning and running ./build.sh I get these errors.

scriptexecutor$ ./build.sh 
make: Entering directory '/media/vdb/scriptexecutor/buildroot-2019.11.1'
make[1]: *** No rule to make target '/media/vdb/scriptexecutor/buildroot-2019.11.1/output/.br2-external.mk'.  Stop.
make: *** [Makefile:84: _all] Error 2
make: Leaving directory '/media/vdb/scriptexecutor/buildroot-2019.11.1'
make: Entering directory '/media/vdb/scriptexecutor/buildroot-2019.11.1'
Makefile:923: *** Please configure Buildroot first (e.g. "make menuconfig").  Stop.
make: *** [Makefile:84: _all] Error 2
make: Leaving directory '/media/vdb/scriptexecutor/buildroot-2019.11.1'
cp: cannot stat 'buildroot-2019.11.1/output/images/rootfs.cpio.xz': No such file or directory
cp: cannot stat 'buildroot-2019.11.1/output/images/zImage': No such file or directory
cp: cannot stat 'buildroot-2019.11.1/output/images/rpi-firmware/*.elf': No such file or directory
cp: cannot stat 'buildroot-2019.11.1/output/images/rpi-firmware/*.dat': No such file or directory
cp: cannot stat 'buildroot-2019.11.1/output/images/rpi-firmware/bootcode.bin': No such file or directory
cp: cannot stat 'buildroot-2019.11.1/output/images/*.dtb': No such file or directory
mv: cannot stat 'output/dwc2-overlay.dtb': No such file or directory
mv: cannot stat 'output/spi-gpio40-45-overlay.dtb': No such file or directory

Build complete. Files are in output folder.

I'm trying to customize the environment and add cryptsetup to be able to encrypt the filesystem.

kernel panic on a cm4

I'm trying to build this to be able to include tpm-tools in the image, and while with some patches i'm able to get it to build, i can't get the image to start when the provisioner sends it to the cm4. I get a kernel panic, i tried hooking up a serial cable to the device to dump it so i can share it, but nothing is sent on that port.

Could the problems be due to the fact that i'm building this on an ubuntu machine? If so, what would be the correct version of raspi os to build this on, or could there be other things i could look into?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.