491 Commits
Author SHA1 Message Date
Leandro Dorileo e5c4fad232 v3.2.8 release
Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
v3.2.8
2020-03-31 16:08:51 -07:00
Leandro Dorileo 4f0686abb1 systemd compatibility
With recent systemd changes cbm use cases will break if we don't add ".conf" to the
loader.conf default entry configuration.

Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
2020-03-31 15:41:15 -07:00
Leandro Dorileo 7aedefbc5c v3.2.7 release
Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
v3.2.7
2020-02-25 12:58:59 -08:00
Leandro Dorileo 44a7a599c9 extlinux/syslinux: fix set-kernel
Currently we can't set default kernel with extlinux/syslinux because we basically
the current implementation doesn't load the installed kernel data and when comparing
the detected ones to check with the selected kernel we'll use a data the set-kernel
command doesn't provide us. Long story short this patch brings to life the
set-kernel command for legacy bios mode bootloaders.

Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
2020-02-21 16:00:06 -08:00
Leandro Dorileo 8a412ee96d syslinux/extlinux: implement get default kernel operation
This will affact the list-kernels command that for now with legacy bios mode will
not list the actual default kernel(the one starting with *).

Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
2020-02-21 16:00:06 -08:00
Leandro Dorileo 82ea85da97 extlinux/syslinux: unify implementation
The biggest difference between extlinux and syslinux from cbm point of view is the
bootloaders install/update command. Having said that, This patch unifies the
syslinux and extlinux implementation reducing much of duplication on that side.

Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
2020-02-21 16:00:06 -08:00
Leandro Dorileo ba4fdd3440 extlinux: mark boot partition as legacy bios bootable
Make sure extlinux is consistent with syslinux and mark the boot partition as legacy
bios bootable.

Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
2020-02-18 15:58:03 -08:00
Leandro Dorileo c57bb34148 mkrelease: put together all the required steps before release
Make our life easier, put together all the required steps before cutting a new
release instead of having to remember it all.

Change the VERSION file, create the release commit and tag. Bonus point added a
--help flag so we can easily remember how this script works.

Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
2020-02-13 20:16:56 -08:00
Leandro Dorileo 42c2d4a0e0 v3.2.6 release
Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
2020-02-13 10:28:18 -08:00
Leandro Dorileo 2d9d985160 syslinux/extlinux: check if config file is empty
For some reason (may be a user manual intervention or some issue on previous
updates) the syslinux/extlinux config file may be empty and in that case cbm will
segfault when reading the content's buffer.

Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
v3.2.6
2020-02-12 11:08:00 -08:00
Leandro Dorileo 0f3c531ea8 syslinux: remove mtools dependency
By using syslinux-nomtools we don't depend on mtools and reduce the footprint for
smaller images.

Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
2020-02-12 11:08:00 -08:00
Alexander Koskovich 72040c32db Remove whitespace in README 2020-02-12 09:45:56 -08:00
Leandro Dorileo c6c16030ff legacy boot
If we don't find the boot partition then we warn the user exit, currently we
segfault.

Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
2020-02-06 15:14:15 -08:00
Leandro Dorileo 69469bc523 v3.2.5 release
Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
v3.2.5
2020-01-29 10:25:04 -08:00
Leandro Dorileo 6385d454c1 fix regression introduced by 512323d
With the commit 512323d we started ignoring the --path flag therefore breaking image
mode use cases. This patch brings back --path flag.

Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
2020-01-29 09:15:25 -08:00
Leandro Dorileo 8f87147137 get_boot_device: fix efi loader path matching
We've found some cases where the path to LoaderDevicePartUUID will have
some "virtual" entries containing some "garbage" in the path. This patch
makes sure we always match only the right formatted ones.

Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
2020-01-28 11:38:03 -08:00
Leandro Dorileo 4a5e109307 v3.2.4 release
Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
v3.2.4
2020-01-27 13:23:08 -08:00
Leandro Dorileo 512323d975 timeout/update: don't allocate/free manager twice
Avoid parsing flags, allocating BootManager twice when calling update
from time out command.

Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
2020-01-22 10:55:47 -08:00
Leandro Dorileo 4c1e8f772a Update issue templates 2020-01-08 16:52:53 -08:00
Leandro Dorileo 09d65ecc1a grub2: make it optional
We would like to disable grub2 in scenarios/configurations where we
know we won't ever use/need it.

Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
2020-01-08 15:01:22 -08:00
Leandro Dorileo d651b745cd v3.2.3 release
Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
v3.2.3
2020-01-07 14:45:29 -08:00
Leandro Dorileo 4be250b819 man: add /etc/kernel/initrd.d documentation
We're missing man page documentation to the recent user initrd freestanding
file.

Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
2020-01-07 14:21:30 -08:00
Leandro Dorileo 16871aba1c remove travis configuration
We are running CI with github actions now, lets get rid of travis
configuration.

Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
2020-01-06 12:24:52 -08:00
Leandro Dorileo 5ee752d3b4 update local docker continuous test runner
Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
2020-01-06 12:24:52 -08:00
Leandro Dorileo d35d26b359 mv scripts to scripts directory
The scripts continous.sh and update_format.sh should live side-by-side
with the other scripts. Also renamed update_format.sh to update-format.sh
to keep naming consistency.

Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
2020-01-06 12:24:52 -08:00
Leandro Dorileo 6077f66b0a remove findstatic.pl
It's a copy of findstatic.pl from libnica, in the context of c-b-m
we're not using it at all.

Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
2020-01-06 12:24:52 -08:00
Leandro Dorileo 0581548e5f test suite: don't merge or copy cov file if empty
Some builds may not generate coverage.info, if that happens we don't
try to merge it.

Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
2019-12-13 12:39:04 -08:00
Leandro Dorileo 696ee57b99 v3.2.2 release
Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
v3.2.2
2019-12-12 16:19:37 -08:00
Leandro Dorileo a67ce45cb3 bootman: add user initrd configuration
With these changes the user may add custom initrd freestanding files
into /etc/kernel/initrd.d.

Additionally the user can mask system defined initrd freestanding
by adding symlinks pointing to /dev/null within /etc/kernel/initrd.d.

Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
2019-12-12 16:02:31 -08:00
Leandro Dorileo f853bfd49b print source and target intrd on error
Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
2019-12-12 16:02:31 -08:00
Leandro Dorileo 9d40544ff0 log: add check_*_continue
These utilities are meant to be used whenever a "continue" fits.

Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
2019-12-12 16:02:31 -08:00
Leandro Dorileo e6c6dfccc5 man: update man page to reflect new flags (-n,--no-efi-update)
Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
2019-12-12 16:02:08 -08:00
Leandro Dorileo b21cbe91fa cli: add update_efi_vars configuration file support
The user can set a system-wide configuration to skip efi vars update.
With that the user can insure the efi vars will not be touched when
c-b-m is called by some other tool i.e swupd post update hooks.

Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
2019-12-12 16:02:08 -08:00
Leandro Dorileo 20a72f0736 skip efi vars update when requested by user
This patch introduces a new flag (-n,--no-efi-update), with that flag
c-b-m will not touch efi variables. It's useful for multi-boot systems
where the user will not want c-b-m messing with the efi configurations.

Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
2019-12-12 16:02:08 -08:00
Leandro Dorileo f33bbe7f79 cli: properly align help description
Makes sure we properly align flags and descriptions when flags are
larger than current ones.

Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
2019-12-12 16:02:08 -08:00
Leandro Dorileo 92c883720f github actions: split test executions
Split each test to its own execution, with that we can have a better
visualization of the build type failure.

Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
2019-12-12 16:01:31 -08:00
Leandro Dorileo 838f6205d5 test: make test runner a bit more "flexible"
Added arguments to the script so we can select the test we want to
run, also make the coverage optional (enabled by default).

Started transitioning the name from travis_test.sh to a more generic
name (run-test-suite.sh).

Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
2019-12-12 16:01:31 -08:00
Leandro Dorileo 3a3b49cebb update valgrind suppressions
There are new issues introduced by check we might ignore for now.

Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
2019-12-12 16:01:31 -08:00
Leandro Dorileo 4868945b21 v3.2.1 release
Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
v3.2.1
2019-12-09 13:38:17 -08:00
Leandro Dorileo ff2c817c68 set-timeout: make sure to apply the changes
Currently when the user calls the set-timeout command that change
will only be applied after calling update command, with this patch
we internally call update command.

Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
2019-11-14 13:18:20 -08:00
Leandro Dorileo 24e2ffd81c add pull_request event to actions
It seems that without pull_request event the pull request will not
get actions triggered.

Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
2019-11-13 13:07:02 -08:00
Leandro Dorileo f48ea3d436 Add github actions workflow
Preparing to migrate from travis to github actions.

Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
2019-11-13 12:53:32 -08:00
Leandro Dorileo dd2e383b7a cli: add flags to the usage output
Add usage info wherever the flags -p and -i are relevant.

Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
2019-11-01 16:40:21 -07:00
Leandro Dorileo 1d2303ab04 cli: remove dead code
We could me things simpler and have a single condition.

Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
2019-11-01 16:40:21 -07:00
Leandro Dorileo 8de7d13539 readme: add filesystem support table 2019-11-01 14:55:32 -07:00
Leandro Dorileo c4e4903b46 efi: add a entry_label argument
With that each vendor can create a more meaningful uefi menu entry if provided on
build time.

Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
2019-10-04 21:21:17 -07:00
Anselmo L. S. Melo c7ef26a2ff bootman: deallocate boot device strings
Either boot_device or legacy_boot needs to be maintained, thus
the unused one should be properly deallocated.
2019-09-19 12:03:59 -07:00
William Douglas cdbf756073 v3.2.0 release v3.2 2019-09-18 09:26:50 -07:00
Leandro Dorileo 486486e19a bootman: improve filesystem detection
Improve the internal filesystem detection, with these changes we
can reuse this code elsewhere and be more efficient - other areas
needing the filesystem knowledge can use this mapping strategies
adding a more precise and centralized code to that.

This patch also makes sure to keep tests and filesystem checks more
consistent.

When mounting we were assuming the /boot filesystem to always be
vfat, with this code now we can have /boot partitions with whatever
filesystem we support (for now: vfat, ext[2-4]).

Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
2019-09-17 15:08:18 -07:00
Leandro Dorileo ef65b290de extlinux: fix extlinux_cmd on partitionless /boot - native_mode
The patch simplifies the extlinux_cmd to work both on image_mode
and native_mode, with /boot partition or not. The -i will work in
both cases, using the --device will also ensure that.

The current form will not work across these scenarios. In a
partitionless in native_mode we'll always need --device to tell
extlinux to install the mbr in a device but install stage files
into /boot, otherwise extlinux will fail telling the device was
not found - it can't find the device "mapped" to /boot.

Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
2019-09-17 15:08:18 -07:00