diff options
-rwxr-xr-x | functions/arguments.sh | 7 | ||||
-rw-r--r-- | manpages/en/lb_config.1 | 4 | ||||
-rwxr-xr-x | scripts/build/config | 8 |
3 files changed, 17 insertions, 2 deletions
diff --git a/functions/arguments.sh b/functions/arguments.sh index 9aa4b1f1c..877a24dd8 100755 --- a/functions/arguments.sh +++ b/functions/arguments.sh @@ -12,7 +12,7 @@ Arguments () { local ERR=0 - ARGUMENTS="$(getopt --longoptions breakpoints,color,conffile:,debug,force,help,quiet,usage,verbose,version --name=${PROGRAM} --options c:huv --shell sh -- "${@}")" || ERR=$? + ARGUMENTS="$(getopt --longoptions breakpoints,color,no-color,conffile:,debug,force,help,quiet,usage,verbose,version --name=${PROGRAM} --options c:huv --shell sh -- "${@}")" || ERR=$? if [ $ERR -eq 1 ]; then Echo_error "invalid arguments" @@ -37,6 +37,11 @@ Arguments () shift ;; + --no-color) + _COLOR="false" + shift + ;; + -c|--conffile) _CONFFILE="${2}" shift 2 diff --git a/manpages/en/lb_config.1 b/manpages/en/lb_config.1 index fc825422d..2a6bc9a1a 100644 --- a/manpages/en/lb_config.1 +++ b/manpages/en/lb_config.1 @@ -186,6 +186,8 @@ .br [\fB\-\-net\-tarball\fR true|false] .br + [\fB\-\-no\-color] +.br [\fB\-\-onie\fR true|false] .br [\fB\-\-onie\-kernel\-cmdline\fR \fI"OPTION1 OPTION2"\fR] @@ -434,6 +436,8 @@ sets the file path that will be configured in the bootloader configuration for y sets the IP or hostname that will be configured in the bootloader configuration for the root filesystem of your netboot image. This defaults to 192.168.1.1. .IP "\fB\-\-net\-tarball\fR true|false" 4 defines if a compressed tarball should be created. Disabling this options leads to no tarball at all, the plain binary directory is considered the output in this case. Default is true. +.IP "\fB\-\-no\-color\fR" 4 +turns off color in the messages. .IP "\fB\-\-onie\fR true|false" 4 defines if an ONIE.bin image is generated. ONIE binaries can be loaded by supported systems, and will in turn boot the live image. Note that ISO or hybrid-iso are the only formats supported. For more information visit <\fIhttp://onie.org/\fR>. Default is false. .IP "\fB\-\-onie\-kernel\-cmdline\fR \fI""OPTION1 OPTION2""\fR" 4 diff --git a/scripts/build/config b/scripts/build/config index 0f84c28c7..1d0c150ff 100755 --- a/scripts/build/config +++ b/scripts/build/config @@ -106,6 +106,7 @@ USAGE="${PROGRAM} [--apt apt|aptitude]\n\ \t [--net-root-path PATH]\n\ \t [--net-root-server IP|HOSTNAME]\n\ \t [--net-tarball true|false]\n\ +\t [--no-color]\n\ \t [--onie true|false]\n\ \t [--onie-kernel-cmdline \"OPTION1 OPTION2\"]\n\ \t [--parent-archive-areas ARCHIVE_AREA|\"ARCHIVE_AREAS\"]\n\ @@ -157,7 +158,7 @@ Local_arguments () iso-volume:,jffs2-eraseblock:,memtest:,net-root-filesystem:,net-root-mountoptions:, net-root-path:,net-root-server:,net-cow-filesystem:,net-cow-mountoptions:,net-cow-path:, net-cow-server:,net-tarball:,onie:,onie-kernel-cmdline:,firmware-binary:,firmware-chroot:,swap-file-path:,swap-file-size:, - loadlin:,win32-loader:,source:,source-images:,breakpoints,conffile:,color,debug,force, + loadlin:,win32-loader:,source:,source-images:,breakpoints,conffile:,color,no-color,debug,force, help,ignore-system-defaults,quiet,usage,verbose,version,bootstrap-qemu-static:,bootstrap-qemu-arch:, uefi-secure-boot:, bootstrap-qemu-exclude:" @@ -777,6 +778,11 @@ Local_arguments () shift ;; + --no-color) + _COLOR="false" + shift + ;; + --debug) _DEBUG="true" shift |