This release changes the structure and flow of how bundles are used in mixer.
There will be a repo for upstream Clear bundles, and a separate repo for mixer
-only bundles that the user will modify.
Signed-off-by: Tudor Marcu <tudor.marcu@intel.com>
To simplify things, there will now be a "clr-bundles" repo directory, which
will contain all of the Clear bundles from master and appropriate tags, and a
"mix-bundles" repo directory which will contain the bundles that the mixer
will use to generate mixes from. This separation removes the need to work with
a single repo and juggle both upstream bundles and custom ones, so the user
will have a full list of bundles to copy from if needed, and can focus on just
modifying their own bundle set.
Note, the clr-bundles directory should remain untouched; bundle modifications
should only be done in the mix-bundles directory.
Signed-off-by: Tudor Marcu <tudor.marcu@intel.com>
This release fixes create-update to only create 0 packs for changed bundles, and
removes all chroots except "full" after update creation to save space and speed
up time on hardlinking.
Signed-off-by: Tudor Marcu <tudor.marcu@intel.com>
The zero pack only needs to exist when a bundle manifest changed, otherwise the
zero pack exists in a previous version that was built already, so skip creating
them for unchanged bundles. Also clean up the bundle chroots because only "full"
is needed after an update is created.
Signed-off-by: Tudor Marcu <tudor.marcu@intel.com>
This release includes a fix when calling bundle-chroot-builder, and adds the
format option when calling create update.
Signed-off-by: Tudor Marcu <tudor.marcu@intel.com>
To avoid cluttering the workspace directory, archive the swupd log files
in a new "logs" directory within the workspace, separating the logs by
mix version.
Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
This release applies fixes to sanitize input read from the builder.conf and cmd
line, adds cmd line options to the init-mix.sh script, and forces nosync on
chroot creation.
Signed-off-by: Tudor Marcu <tudor.marcu@intel.com>
Yum naturally does a lot of sync() calls for reliability and stability,
but we do not care if chroot building is killed by something as it can be
re-run without problems.
Signed-off-by: Tudor Marcu <tudor.marcu@intel.com>
A user could enter FORMAT=4 , in builder.conf, which would get read with a space
and thus create a 'format4 ' directory including the space. This sanitizes the
input so only valid strings are used in the script.
Signed-off-by: Tudor Marcu <tudor.marcu@intel.com>
This release fixes the help menu and checks /etc for the config file as a
2nd step down from /usr/share/defaults/.
Signed-off-by: Tudor Marcu <tudor.marcu@intel.com>
This release includes changes to supply various options to the builder scripts,
allowing for a more configurable mixer setup.
Signed-off-by: Tudor Marcu <tudor.marcu@intel.com>
For testing or custom configurations it may be desirable to use swupd
binaries that are not the system installed ones.
Signed-off-by: Tudor Marcu <tudor.marcu@intel.com>
To support more configurations, the script now supports passing a specific
builder.conf and format name to use when creating the update content.
Signed-off-by: Tudor Marcu <tudor.marcu@intel.com>
To support more cases and add versatility, the script now supports passing args
to tell which builder.conf should be used. If no options are passed, then it
will read from the one provided in /usr/share/defaults/bundle-chroot-builder/.
Signed-off-by: Tudor Marcu <tudor.marcu@intel.com>
This release fixes the makefile to install the init-mix.sh script to auto
generate the starting version.
Signed-off-by: Tudor Marcu <tudor.marcu@intel.com>