"--demo" should be possible to use with any server type.
Changelog: Allow to use "--demo" flag with any given server type
Signed-off-by: Mirza Krak <mirza.krak@northern.tech>
We had dependency because we where using an older U-boot version
which only compiled with gcc6. Since we now have updated to a
2018.xx bootloader we no longer have this limitation and we can
use binares in 'gcc-arm-linux-gnueabihf' upstream package
Changelog: Title
Signed-off-by: Mirza Krak <mirza.krak@northern.tech>
Note that there is not much actual code removed, but this commit
only removes the exposure to the user.
There is a big re-write incoming and is it not feasable to maintain
"convenience" commands that are exposed to the users. The expert
command paths are not tested in any automated fashion and the
likely hood of them breaking is pretty high.
We can always bring commands if there are requests from users.
Note that that the "raw-disk-image-shrink-rootfs" expert command is
promoted to a "General command" and is not removed. This has shown to
provide value to our users.
Changelog: Title
Signed-off-by: Mirza Krak <mirza.krak@northern.tech>
This is to sync up with the U-boot version that is in the latest
Yocto release. This will also resolve the requirement to run
gcc6, with 2018.07 we can build with gcc7 which is the default
in most distributions.
MEN-2198
Changelog: Title
Signed-off-by: Mirza Krak <mirza.krak@northern.tech>
To get rid of such errors/warnings as:
- mount: could not find any device /dev/loop#
- mount: ... WARNING: device write-protected, mounted read-only
access to host's kernel modules must be added.
Changelog: Title
Issues: MEN-2255
Signed-off-by: Adam Podogrocki <a.podogrocki@gmail.com>
Changelog: Title
- add notes about toolchain issue with rpi0w
- add note about issues with case sensitive filesystems
Signed-off-by: Marek Belisko <marek.belisko@open-nandra.com>
The "do_raw_disk_image_shrink_rootfs" changes permissions of input image
to "root:root" which requires that all commands are called with "sudo",
otherwise it produces an error:
$ ./mender-convert raw-disk-image-shrink-rootfs --raw-disk-image input/2018-11-13-raspbian-stretch-lite-expanded-16gb.img
*** Data partition size set to default value: 128MB ***
*** Total storage size set to default value: 8GB ***
1/1 Shrinking raw disk image root filesystem...
dumpe2fs 1.44.5 (15-Dec-2018)
resize2fs 1.44.5 (15-Dec-2018)
Root filesystem size:
minimal: 1441787904
aligned: 1442840576
sectors: 2818048
Raw disk image new endsector: 2916351
truncate: cannot open '/home/mirzak/src/mender-convert/input/2018-11-13-raspbian-stretch-lite-expanded-16gb.img' for writing:
Permission denied
Changelog: Fix permission denied error in when calling "mender-convert raw-disk-image-shrink-rootfs"
Signed-off-by: Mirza Krak <mirza.krak@northern.tech>
Calling "mender-convert raw-disk-image-shrink-rootfs" gave this:
$ ./mender-convert raw-disk-image-shrink-rootfs --raw-disk-image input/2018-11-13-raspbian-stretch-lite-expanded-16gb.img
*** Data partition size set to default value: 128MB ***
*** Total storage size set to default value: 8GB ***
1/1 Shrinking raw disk image root filesystem...
./mender-convert: line 191: local: `=': not a valid identifier
./mender-convert: line 191: local: `512': not a valid identifier
./mender-convert: line 201: 98304 * : syntax error: operand expected (error token is "* ")
Changelog: Fix syntax error when calling "mender-convert raw-disk-image-shrink-rootfs"
Signed-off-by: Mirza Krak <mirza.krak@northern.tech>
Select demo default intervals with new --demo CLI option, else use
production defaults (updated in parallel in MEN-2248)
Changelog: Title
Signed-off-by: Lluis Campos <lluis.campos@northern.tech>
storage-total-size-mb option allow user to define
the overall Mender image size, i.e. adjust it to
user's own needs or just to SD card size.
Issues: MEN-2242
Changelog: Title
Signed-off-by: Adam Podogrocki <a.podogrocki@gmail.com>
This is mostly done to align the different device type and how the
initial raw disk image is processed. The "beaglebone" type differed
a lot from how it is done for "raspberrypi" and "qemu", the big
difference was that it did not extract the necessary images from
the raw disk image. move the them to the mender disk image where
addition processing was done. Instead it processed directly on
the raw disk image.
To be able to optmize the workflows and stages, they have to be
executed in a similar fashion on all the device types.
Now do_raw_disk_image_create_partitions will always extract the
the images from the raw disk image, instead of doing it in the
device specific do_make_sdimg_* functions which contained a lot
of duplication.
By aligning the workflow we have can also get rid of the
beagblebone specific stage-3, and it can use the "generic" one.
Changelog: Optimizations to speed up conversion, utilizing sparse
images.
Signed-off-by: Mirza Krak <mirza.krak@northern.tech>
There where multiple places where mount-points where created, and
in some cases it was even duplicate code.
Instead create it during convert-stage-4 where we do all generic Mender
installation, and do it unconditionally.
Changelog: None
Signed-off-by: Mirza Krak <mirza.krak@northern.tech>
This speeds up the conversion quite a lot, meaning that it will skip
copying large blocks of 'zero' data back and forth.
Converting a 2018-11-13-raspbian-stretch-lite.img went from 8m10s to
4m45s on my machine.
Changelog: None
Signed-off-by: Mirza Krak <mirza.krak@northern.tech>
The extract helper function does not need to know the type
of the image we are extracting.
Changelog: None
Signed-off-by: Mirza Krak <mirza.krak@northern.tech>
As the partition table has been modified 'resize2fs_once' service
no longer fulfils its purpose.
That service has been replaced with 'resizefs' systemd service
which extends data partition's size and resizes filesystem too
to fill the whole free unallocated space.
Issues: MEN-2254
Changelog: Title
Signed-off-by: Adam Podogrocki <a.podogrocki@gmail.com>