Allowing to specify a git repository to lb_config in order to bootstrap a config tree.
This commit is contained in:
parent
0ba1c532f8
commit
e8a9169e26
|
@ -63,6 +63,8 @@
|
|||
[\fB\-\-checksums\fP md5|sha1|sha256|none]
|
||||
.br
|
||||
[\fB\-\-compression\fP bzip2|gzip|lzip|none]
|
||||
.br
|
||||
[\fB\-\-config\fP \fIGIT_URL\fP]
|
||||
.br
|
||||
[\fB\-\-build\-with\-chroot\fP true|false]
|
||||
.br
|
||||
|
@ -391,6 +393,8 @@ images it can save some time by not calculating the checksums.
|
|||
.IP "\fB\-\-compression\fP bzip2|gzip|lzip|none" 4
|
||||
defines the compression program to be used to compress tarballs. Defaults to
|
||||
gzip.
|
||||
.IP "\fB\-\-config\fP \fIGIT_URL\fP" 4
|
||||
allows to bootstrap a config tree from a git repositories.
|
||||
.IP "\fB\-\-build\-with\-chroot\fP true|false" 4
|
||||
defines whetever live\-build should use the tools from within the chroot to
|
||||
build the binary image or not by using and including the host systems
|
||||
|
|
|
@ -58,6 +58,8 @@
|
|||
[\fB\-\-checksums\fR md5|sha1|sha256|none]
|
||||
.br
|
||||
[\fB\-\-compression\fR bzip2|gzip|lzip|none]
|
||||
.br
|
||||
[\fB\-\-config\fR \fIGIT_URL\fR]
|
||||
.br
|
||||
[\fB\-\-build\-with\-chroot\fR true|false]
|
||||
.br
|
||||
|
@ -301,6 +303,8 @@ sets which stages should be cached. By default set to bootstrap. As an exception
|
|||
defines if the binary image should contain a file called md5sums.txt, sha1sums.txt and/or sha256sums.txt. These lists all files on the image together with their checksums. This in turn can be used by live\-boots built\-in integrity\-check to verify the medium if specified at boot prompt. In general, this should not be false and is an important feature of live system released to the public. However, during development of very big images it can save some time by not calculating the checksums.
|
||||
.IP "\fB\-\-compression\fR bzip2|gzip|lzip|none" 4
|
||||
defines the compression program to be used to compress tarballs. Defaults to gzip.
|
||||
.IP "\fB\-\-config\fR \fIGIT_URL\fR" 4
|
||||
allows to bootstrap a config tree from a git repositories.
|
||||
.IP "\fB\-\-build\-with\-chroot\fR true|false" 4
|
||||
defines whetever live\-build should use the tools from within the chroot to build the binary image or not by using and including the host systems tools. This is a very dangerous option, using the tools of the host system can lead to tainted and even non-bootable images if the host systems version of the required tools (mainly these are the bootloaders such as syslinux, grub and yaboot, and the auxilliary tools such as dosfstools, genisoimage, squashfs-tools and others) do not \fBexactely\fR match what is present at build-time in the target distribution. Never do disable this option unless you are \fBexactely\fR sure what you are doing and have \fBcompletely\fI understood its consequences.
|
||||
.IP "\fB\-\-chroot\-filesystem\fR ext2|ext3|ext4|squashfs|jffs2|none" 4
|
||||
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -55,6 +55,7 @@ USAGE="${PROGRAM} [--apt apt|aptitude]\n\
|
|||
\t [--cache-stages STAGE|\"STAGES\"]\n\
|
||||
\t [--checksums md5|sha1|sha256|none]\n\
|
||||
\t [--compression bzip2|gzip|lzip|xz|none]\n\
|
||||
\t [--config GIT_URL]\n\
|
||||
\t [--zsync true|false]\n\
|
||||
\t [--build-with-chroot true|false]\n\
|
||||
\t [--chroot-filesystem ext2|ext3|ext4|squashfs|jffs2|none]\n\
|
||||
|
@ -167,7 +168,7 @@ Local_arguments ()
|
|||
archives:,archive-areas:,parent-archive-areas:,chroot-filesystem:,exposed-root:,
|
||||
gzip-options:,hooks:,interactive:,keyring-packages:,linux-flavours:,linux-packages:,
|
||||
package-lists:,security:,volatile:,backports:,binary-filesystem:,binary-images:,
|
||||
apt-indices:,bootappend-install:,bootappend-live:,bootappend-failsafe:,bootloader:,checksums:,compression:,zsync:,build-with-chroot:,
|
||||
apt-indices:,bootappend-install:,bootappend-live:,bootappend-failsafe:,bootloader:,checksums:,compression:,config:,zsync:,build-with-chroot:,
|
||||
debian-installer:,debian-installer-distribution:,debian-installer-preseedfile:,debian-installer-gui:,
|
||||
grub-splash:,isohybrid-options:,hdd-label:,hdd-size:,iso-application:,iso-preparer:,iso-publisher:,
|
||||
iso-volume:,jffs2-eraseblock:,memtest:,net-root-filesystem:,net-root-mountoptions:,
|
||||
|
@ -621,6 +622,11 @@ Local_arguments ()
|
|||
shift 2
|
||||
;;
|
||||
|
||||
--config)
|
||||
_CONFIG="${2}"
|
||||
shift 2
|
||||
;;
|
||||
|
||||
--zsync)
|
||||
LB_ZSYNC="${2}"
|
||||
shift 2
|
||||
|
@ -893,6 +899,23 @@ then
|
|||
Read_conffiles "${_CONFFILE}"
|
||||
fi
|
||||
|
||||
if [ -n "${_CONFIG}" ]
|
||||
then
|
||||
# quick hack with lots of duplication, needs to be unified later on
|
||||
git clone ${_CONFIG}
|
||||
cd $(basename ${_CONFIG} .git)
|
||||
|
||||
# Reading existing configuration
|
||||
Read_conffiles config/all config/common config/bootstrap config/chroot config/binary config/source
|
||||
|
||||
Local_arguments "${@}"
|
||||
|
||||
if [ -n "${_CONFFILE}" ]
|
||||
then
|
||||
Read_conffiles "${_CONFFILE}"
|
||||
fi
|
||||
fi
|
||||
|
||||
# Setting defaults
|
||||
Set_defaults
|
||||
|
||||
|
|
Loading…
Reference in New Issue