Previously, it was not possible to read the help text, without having defined
certain user variables the script needs (like MENDER_ARTIFACT_NAME). Thus
reading the usage help-info was sort of tedious.
This commit gives the user commands higher priority, which fixes the error.
Changelog: None
Signed-off-by: Ole Petter <ole.orhagen@northern.tech>
Minor spelling errors in user facing messages
Changelog: None
Signed-off-by: Ole Petter <ole.orhagen@northern.tech>
Spell fixes
The userfacing logging had a couple of spelling errors
Changelog: None
Signed-off-by: Ole Petter <ole.orhagen@northern.tech>
Replace the explicit image name with a variable
The date of the raspbian buster images were wrong, as the downloaded image had a
date in june, and the convert script, had a date of march, thus the command did
not work out of the box.
This fix moves the script to use a variable for the images, to mitigate these
issues for the future.
Changelog: None
Signed-off-by: Ole Petter <ole.orhagen@northern.tech>
Make the sections in the Readme more explicitly separate
Changelog: None
Signed-off-by: Ole Petter <ole.orhagen@northern.tech>
Remove passive aggressive docker comment in Readme
Unecessary
Changelog: None
Signed-off-by: Ole Petter <ole.orhagen@northern.tech>
Fill the first paragraphs to 80 columns, to unify the style
Some parts of the Readme wrapped at 80, and other did not.
Unify.
Changelog: None
Signed-off-by: Ole Petter <ole.orhagen@northern.tech>
Make all shell sections in the readme use bash formatting
Changelog: None
Signed-off-by: Ole Petter <ole.orhagen@northern.tech>
Basically install dependencies and modify pytest call. This repo is
using meta-mender master test framework, so the actual tests are already
converted and working fine.
Changelog: None
Signed-off-by: Lluis Campos <lluis.campos@northern.tech>
Now that the Debian packages are generated for the three architectures,
abandon the temporary location and switch to the master ones.
After the next Mender release, we can switch to the "released" packages.
Changelog: None
Signed-off-by: Lluis Campos <lluis.campos@northern.tech>
This is the "new way" to perform such checks, so that any change in the
testing repo does not require an update in local licenses checksum file.
Changelog: None
Signed-off-by: Lluis Campos <lluis.campos@northern.tech>
Ubuntu Server images actually use U-boot by default on RPi3 and the
layout and naming of the files is slightly different on the boot partition.
That is why we need additional logic here to determinant what we are converting
Changelog: Add support for Ubuntu Server images on Raspberry Pi 3
Signed-off-by: Mirza Krak <mirza.krak@northern.tech>
On some RPi3 images, e.g Ubuntu Server there is no resize init script,
and these commands would fail trying to convert such an image.
This can also be useful on Raspbian images, if they have been booted
once before they are converted using "mender-convert"
Changelog: None
Signed-off-by: Mirza Krak <mirza.krak@northern.tech>
This mirrors the way it is handled in Yocto with the demo server, the production
server, and hosted mender.
Signed-off-by: Drew Moseley <drew.moseley@northern.tech>
Changelog: Title
And drop the workaround.
This includes only one change:
2a8a20f01d4 Disable addition of simple-framebuffer by U-boot
Fixes: MEN-2685
Changelog: Fix "yellow" HDMI output on Raspbian Buster
Signed-off-by: Mirza Krak <mirza.krak@northern.tech>
This includes only one change:
2a8a20f01d4 Disable addition of simple-framebuffer by U-boot
Fixes: MEN-2685
Changelog: Fix "yellow" HDMI output on Raspbian Buster
Signed-off-by: Mirza Krak <mirza.krak@northern.tech>
With these changes we will additionally cover test with:
- MENDER_COMPRESS_DISK_IMAGE set to 'y' and 'n'
- multiple --config files
- no external configuration files (no '--config' options)
Changelog: None
Signed-off-by: Mirza Krak <mirza.krak@northern.tech>
Current logic actually fails when no '-c/--config' options are provided, with this error:
$ MENDER_ARTIFACT_NAME="test-1" ./mender-convert --disk-image input/Armbian_5.95_Tinkerboard_Debian_buster_next_4.19.69_minimal.img
Running mender-convert-extract: --disk-image input/Armbian_5.95_Tinkerboard_Debian_buster_next_4.19.69_minimal.img
2019-10-02 12:46:39 [INFO] [mender-convert-extract] Using configuration file: configs/mender_convert_config
2019-10-02 12:46:39 [INFO] [mender-convert-extract] Using configuration file: ''
modules/config.sh: line 28: '': No such file or directory
The 'configs' array is actually not empty when passed to modules/config.sh
as it will contain "''", which will be translated as a array element and
hence the above failure.
This commit ensures that we set a valid default value to 'configs',
which is the 'mender_convert_config'. This is moved from modules/config.sh,
to the calling scripts that define the array of configs.
Fixes: 9b944615a8 ("configs: Support multiple config files on command line.")
Changelog: None
Signed-off-by: Mirza Krak <mirza.krak@northern.tech>
The images are very big, and the default donwload withouht TTY (used by
CI) adds a lot of noise in the logs.
Changelog: None
Signed-off-by: Lluis Campos <lluis.campos@northern.tech>
Created a new test_acceptance stage that will execute in our private
runners. This stage will execute scripts/run-tests.sh and collect the
now produced xml/html reports for each device type.
Removed the build from the test script, so that we make sure that CI
tests the exact same image build in "build" stage.
Changelog: None
Signed-off-by: Lluis Campos <lluis.campos@northern.tech>
The reason for having a bind mount is unknown. In order to be able to
run this container fom inside another, the directory must be a volume.
Changelog: None
Signed-off-by: Lluis Campos <lluis.campos@northern.tech>
The current support for this fails due to incorrect use
of bash arrays.
Also, use the printf '%q' formatting code to add proper quotes
to the config file names to ensure that it works properly
with spaces in the file names.
Signed-off-by: Drew Moseley <drew.moseley@northern.tech>
Changelog: Title