etc: add SysV-init startup script and sample config file
PATCH v3 1/1 etc: add SysV-init startup script and sample config file
This startup script (and its companion configuration file in /etc/default/) allows one to easily start/stop an autobuilder.
An autobuilder can be run either on the current system, or in a chroot (preferred). Running in a chrrot is done by setting the AUTOBUILD_CHROOT variable in the configuration file. If that variable is not set, then hte autobuilder does not enter a chroot.
It is expected that the buildroot-test tree be already present somewhere (for example, as a git checkout).
---
Changes v2 -> v3:
- allow not entering in a chroot (Thomas)
- always require an existing buildroot-test tree (Thomas)
--- etc/default/buildroot-autobuild | 16 ++++ etc/init.d/buildroot-autobuild | 171 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 187 insertions(+) create mode 100644 etc/default/buildroot-autobuild create mode 100755 etc/init.d/buildroot-autobuild
etc/default/buildroot-autobuild new file +16 -0
@@ -0,0 +1,16 @@ +# The absolute path to chroot into to run the autobuild script. +# Leave empty to not use a chroot. +AUTOBUILD_CHROOT="/var/chroot-autobuild" + +# The user to run run the autobuild script as. +# If using a chroot, that user must exist in the chroot. +AUTOBUILD_USER="buildroot" + +# Path to the buildroot-test tree to use. +# If using a chroot, it will be bind-mounted in the chroot. +AUTOBUILD_DIR="/home/johndoe/buildroot-test" + +# The absolute path to the autobuild work dir. +# This directory must contain the runtime configuration file for +# the autobuilder script, in a file name buildroot-autobuild.conf +AUTOBUILD_BASE_DIR="/home/buildroot/autobuild/"
etc/init.d/buildroot-autobuild new file +171 -0
171 lines not on this page · raw message
Signature · 1 line
1.9.1
PATCH v3 1/1 etc: add SysV-init startup script and sample config file
Hello,
Quoted 19 lines · Yann E. MORIN
This startup script (and its companion configuration file in
/etc/default/) allows one to easily start/stop an autobuilder.An autobuilder can be run either on the current system, or in a chroot (preferred). Running in a chrrot is done by setting the
AUTOBUILD_CHROOTvariable in the configuration file. If that variable is not set, then hte autobuilder does not enter a chroot.It is expected that the buildroot-test tree be already present somewhere (for example, as a git checkout).
Signed-off-by "Yann E. MORIN" <[email protected]>Cc Thomas Petazzoni <[email protected]>---
Changes v2 -> v3:
- allow not entering in a chroot (Thomas)
- always require an existing buildroot-test tree (Thomas)
Quoted 6 lines
--- etc/default/buildroot-autobuild | 16 ++++ etc/init.d/buildroot-autobuild | 171 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 187 insertions(+) create mode 100644 etc/default/buildroot-autobuild create mode 100755 etc/init.d/buildroot-autobuild
Applied to buildroot-test, and I've changed my autobuilder instance to use it. Thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com