summaryrefslogtreecommitdiffstats
path: root/package/mender
Commit message (Collapse)AuthorAgeFilesLines
* package/mender: add missing double quote in service fileAdam Duskett2019-03-191-1/+1
| | | | | | | | | | | | There was a missing double quotes that would prevent the service from starting. Signed-off-by: Adam Duskett <Aduskett@gmail.com> Tested-by: Angelo Compagnucci <angelo@amarulasolutions.com> Acked-by: Angelo Compagnucci <angelo@amarulasolutions.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> (cherry picked from commit 93321e5f166d08426e38a14bce318e9807d7d45d) Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* package/mender: fix sysv startup scriptAngelo Compagnucci2019-02-151-1/+1
| | | | | | | | | | | | | Mender is a service explicitly written for systemd and so it doesn't fork on background, doesn't redirect outputs and doesn't create a pid file by itself. To make the service running correctly is therefore necessary to use the -m switch of start-stop-daemon to create the pid file and -b option to send the process to background. Logging is preserved because the service will log anyway on syslog. Signed-off-by: Angelo Compagnucci <angelo@amarulasolutions.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* package/mender: fix missing /var/libAngelo Compagnucci2019-02-151-0/+1
| | | | | | | | | | | | | | Mender needs /var/lib directory to be available: on some configurations /var/lib is not available and thus the mender package installation fails. This patch does a mkdir to ensure the /var/lib directory is always available. Fixes: http://autobuild.buildroot.net/results/d2237083a13ab7688dd2b6dc8dbcd4226ed5651a/ Signed-off-by: Angelo Compagnucci <angelo@amarulasolutions.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* package/mender: change to use release archiveAngelo Compagnucci2019-02-142-2/+3
| | | | | | | | Relase archive is distributed with depencies, this prevents the go build system to download them. Signed-off-by: Angelo Compagnucci <angelo@amarulasolutions.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* package/mender: fixing init script namingAngelo Compagnucci2019-02-051-2/+2
| | | | | | | | | | | Commit f88947c2fe2d (package/mender: adding systemv init file) added an init script, but the installation logic referred to S04mender instead of S42mender. Update the installation logic to match the file name. Signed-off-by: Angelo Compagnucci <angelo@amarulasolutions.com> [Peter: expand commit message description] Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* package/mender: adding a readme fileAngelo Compagnucci2019-02-051-0/+18
| | | | | | | | | This patch adds a readme file with basic instructions to get mender up and running on a production system. Signed-off-by: Angelo Compagnucci <angelo@amarulasolutions.com> Acked-by: <aduskett@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* package/mender: adding device_type fileAngelo Compagnucci2019-02-052-0/+4
| | | | | | | | | | | | In order to have the mender package working out of the box, the /etc/mender/device_type should be present and should contain a valid device_type value. This patch provides a default file that can be overridden easily from an overlay. Signed-off-by: Angelo Compagnucci <angelo@amarulasolutions.com> Acked-by: <aduskett@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* package/mender: adding artifact_info fileAngelo Compagnucci2019-02-052-0/+4
| | | | | | | | | | | | In order to have the mender package working out of the box, the /etc/mender/artifact_info should be present and should contain a valid artifact_name value. This patch provides a default file that can be overridden easily from an overlay. Signed-off-by: Angelo Compagnucci <angelo@amarulasolutions.com> Acked-by: <aduskett@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* package/mender: adding systemv init fileAngelo Compagnucci2019-02-052-0/+61
| | | | | | | | | | This patch adds a service file for the init system v. Signed-off-by: Angelo Compagnucci <angelo@amarulasolutions.com> Acked-by: <aduskett@gmail.com> Reviewed-by: Titouan Christophe <titouan.christophe@railnova.eu> [Peter: fix typo in stop()] Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* package/mender: adding a writable locationAngelo Compagnucci2019-02-052-1/+13
| | | | | | | | | | | | Mender needs /var/lib/mender to be writable at the service start, the path is hardcoded and thus we cannot change it. This patch solves the problem using the same approach we have for dropbear. Signed-off-by: Angelo Compagnucci <angelo@amarulasolutions.com> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Acked-by: <aduskett@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* package/mender: bump version to 1.7.0Adam Duskett2018-12-263-42/+5
| | | | | | | | | Other changes: - Remove upstreamed patch. - Update license files sha256sum's due to year changes. Signed-off-by: Adam Duskett <Aduskett@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* package/mender: use MENDER_PKGDIR to access local filesMirza Krak2018-10-211-4/+3
| | | | | | | | | | | | Utilize the predefined variable MENDER_PKGDIR which points to the directory containing mender.mk and Config.in, along with the local files. One benefit is also that it works when BR2_EXTERNAL is used, which makes it easier to "backport" this to an older external tree. Signed-off-by: Mirza Krak <mirza.krak@northern.tech> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* mender: fix ioctl build failure on powerpc64le / power8Giulio Benetti2018-08-291-0/+37
| | | | | | | | | | | | Build fails due to missing // +build ppc64le in ioctl_64_bit.go Add patch to append ppc64le to // +build list. Fixes http://autobuild.buildroot.net/results/f22/f222b4389f9308363c386da25ec22a0919bc29fb// Signed-off-by: Giulio Benetti <giulio.benetti@micronovasrl.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* package/mender: set version in go linkerMirza Krak2018-08-201-0/+2
| | | | | | | | | | | | | | | This is used when calling the mender client with the -version option and it says "unknown" if not set in linker. Now it displays the following: # mender -version 1.4.0 runtime: go1.10.2 Signed-off-by: Mirza Krak <mirza.krak@northern.tech> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* package/mender: update legal infoMirza Krak2018-08-202-0/+64
| | | | | | | Also added license checksums in mender.hash Signed-off-by: Mirza Krak <mirza.krak@northern.tech> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* package/mender: use inventory and identity script from upstream sourceMirza Krak2018-08-204-125/+5
| | | | | | | | These files are part of Mender sources and no point in keeping duplicate files locally. Signed-off-by: Mirza Krak <mirza.krak@northern.tech> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* package/mender: remove tenant.confMirza Krak2018-08-203-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | Tenant Token is a configuration option that has to do with Hosted Mender, where you you need to set this for the devices to connect to the correct organization in a multi-tenant system. The removal of tenant.conf usage (and /var/lib/mender/authtentoken) was in Mender client version 1.2.0, where it was switched to be an mender.conf option instead as the example above demonstrates. As the first version that was integrated in Buildroot was 1.4.0, the inclusion of tenant.conf and the creation of the symlink is not necessary. Now it is specified as such in mender.conf: Example: /etc/mender/mender.conf { TenantToken: "very long base64 encoded string" } Signed-off-by: Mirza Krak <mirza.krak@northern.tech> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* package/mender: select BR2_PACKAGE_UBOOT_TOOLS_FWPRINTENVMirza Krak2018-08-201-0/+2
| | | | | | | | | The Mender client uses fw_printenv/fw_setenv to manipulate the U-boot environment, e.g to change the boot candidate after a update has been done. Signed-off-by: Mirza Krak <mirza.krak@northern.tech> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* package/mender: create directory containing Mender state scriptMirza Krak2018-08-201-0/+3
| | | | | | | | | | | | Mender state-scripts are essentially "hooks" that can be provided to influence the update flow. They should be placed inside /etc/mender/scripts and the directory must contain a file containing the current state-script format version. It is currently "2". Signed-off-by: Mirza Krak <mirza.krak@northern.tech> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* package/mender: provide sane values in mender.confMirza Krak2018-08-201-12/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | The current values that are in mender.conf will actually cause the Mender client to fail to start because of invalid values. Provide sane default values that at least allow the Mender client to parse the configuration options and start running. The values provided will actually work in a "Demo Environment", see https://docs.mender.io/getting-started/create-a-test-environment. Though an entry is required in /etc/hosts to resolve the URL to the local IP address of the running demo server. Example: echo "192.168.0.10 docker.mender.io s3.docker.mender.io" >> \ /etc/hosts Above is required because the demo certificate (/etc/mender/server.crt) is created for https://docker.mender.io. Signed-off-by: Mirza Krak <mirza.krak@northern.tech> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* package/mender: fix install path for identity and inventory scriptsMirza Krak2018-08-201-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These scripts are used to generate the device identity and to populate the the device inventory. The Mender client will call these and at least the mender-device-identity is required to be present at the correct location. Inventory scripts are there as an example and not actually required. Example output from identity script: $ ./mender-device-identity mac=de:ad:ca:fe:00:01 cpuid=1112233 Example output from inventory script: $ ./mender-inventory-network mac_br-fbfdad18c33c=02:42:7e:74:96:85 network_interfaces=br-fbfdad18c33c ipv4_br-fbfdad18c33c=172.21.0.1/16 mac_enp0s25=de:ad:be:ef:bb:05 network_interfaces=enp0s25 ipv4_enp0s25=123.22.0.197/16 ipv4_enp0s25=10.20.20.105/16 ipv6_enp0s25=fe80::2aad:beff:feef:bb05/64 Inventory and device identity data is presented on the Mender server front-end. Signed-off-by: Mirza Krak <mirza.krak@northern.tech> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* mender: fix check-package warningsThomas Petazzoni2018-06-102-5/+4
| | | | | | | | | | Fixes: package/mender/Config.in:7: help text: <tab><2 spaces><62 chars> (http://nightly.buildroot.org/#writing-rules-config-in) package/mender/Config.in:8: help text: <tab><2 spaces><62 chars> (http://nightly.buildroot.org/#writing-rules-config-in) package/mender/mender.mk:8: remove default value of _SOURCE variable (http://nightly.buildroot.org/#generic-package-reference) Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* package/mender: new packageAngelo Compagnucci2018-06-0510-0/+226
This patch add mender, an open source over-the-air (OTA) software updater for embedded Linux devices. Signed-off-by: Angelo Compagnucci <angelo@amarulasolutions.com> [Thomas: - add entry to DEVELOPERS file. - drop dependency on systemd, since there is really no build dependency, it's just that the init script integration is missing. - add Config.in comment about the thread dependency - don't override install commands, otherwise the mender binary is not installed, and instead use a post install target hook.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
OpenPOWER on IntegriCloud