It is a bit exessive to compile the mender client every time
the mender-convert tool is launched using docker-mender-convert.
Move the build to the Dockerfile so it is done during image
creation.
Changelog: Title
Signed-off-by: Mirza Krak <mirza.krak@northern.tech>
This ensures we use same version of mender-convert inside
the container as the one used to launch the container.
It makes versioning and local development easier.
Changelog: Use local (checked out) version of mender-convert inside container
Signed-off-by: Eystein Måløy Stenberg <eystein.maloy.stenberg@northern.tech>
consistent and align with entry-point way of running mender-convert.
Changelog: None
Signed-off-by: Eystein Måløy Stenberg <eystein.maloy.stenberg@northern.tech>
We need to replace binaries for Debian 9.5. Debian 9.5 u-boot does not cooperate with GRUB which is used in converted image.
Signed-off-by: Dominik Adamski <adamski.dominik@gmail.com>
These binaries cooperate well with GRUB. The original u-boot binaries in Debian 9.5 do not cooperate with GRUB.
Signed-off-by: Dominik Adamski <adamski.dominik@gmail.com>
This entry is needed by 'partition alignment' test. As a result correct
value for 'uboot_env_size' is set for Raspberry Pi3.
Issues: MEN-2241
Changelog: None
Signed-off-by: Adam Podogrocki <a.podogrocki@gmail.com>
There is an superfluous '.' at the end resulting in
invalid paths. Remove the superfluous '.'.
Changelog: Title
Signed-off-by: Mirza Krak <mirza.krak@northern.tech>
In case of BBB only partition alignment takes part
in offset calculation.
In case of RPI3 besides partition alignment also the
U-Boot environment spaces must be considered.
Issues: MEN-2241
Signed-off-by: Dominik Adamski <adamski.dominik@gmail.com>
Causes rollback when networking is not up after update
Ref: 643400a814
Changelog: Increase default server retry interval from 1 to 30 seconds.
Signed-off-by: Eystein Måløy Stenberg <eystein.maloy.stenberg@northern.tech>
It builds for both RPi3 and BBB, but there is a mount
warning for BBB, which may lead to it not working properly.
Changelog: Docker environment for running mender-convert
Signed-off-by: Eystein Måløy Stenberg <eystein.maloy.stenberg@northern.tech>
Different names for each release of Debian unables upgrading from one Debian version to another. Unification of names eliminates this problem.
Schema of unification:
/boot/vmlinuz_kernel_version -> /boot/kernel
/boot/dtbs/kernel_version/am335x-boneblack.dtb -> /boot/dtb
Signed-off-by: Dominik Adamski <adamski.dominik@gmail.com>
Previously we have always builded the newest version of the GRUB. It was unstable because we cannot track all changes in GRUB repository. Now we build only checked version of GRUB/
Signed-off-by: Dominik Adamski <adamski.dominik@gmail.com>
Only crucial information is presented to the user as
console output.
More verbose information is stored in the build.log.
Issues: MEN-2172
Changelog: None
Signed-off-by: Adam Podogrocki <a.podogrocki@gmail.com>
Succeeding conversion steps added. Some commands' output silenced.
Still too much output logged from e.g. autotools.
Logging more verbose info to log file still missing.
Issues: MEN-2172
Changelog: None
Signed-off-by: Adam Podogrocki <a.podogrocki@gmail.com>
All output images (image/artifact/rootfs) should follow the scheme
presented above. Unless the user provides own Mender image name.
Moreover the only one acceptable extension for Mender image
is 'sdimg'.
Issues: MEN-2205
Changelog: None
Signed-off-by: Adam Podogrocki <a.podogrocki@gmail.com>