Skip to content

Commit

Permalink
Merge pull request #486 from advancedtelematic/feat/OTA-2135/auto-reboot
Browse files Browse the repository at this point in the history
OTA-2135: Aktualizr's config and recipe to auto reboot just after update
  • Loading branch information
lbonn authored Feb 25, 2019
2 parents 3b9b751 + 1bd5dd4 commit 63b03d7
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
3 changes: 2 additions & 1 deletion recipes-sota/aktualizr/aktualizr_git.bb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ SRC_URI = " \
file://aktualizr-serialcan.service \
"

SRCREV = "2aa9d93ccea09ec327789eecf858de561ef632da"

SRCREV = "c2da7b5dfe34ebe3482042dd461543da291c43bd"
BRANCH ?= "master"

S = "${WORKDIR}/git"
Expand Down
21 changes: 21 additions & 0 deletions recipes-sota/config/aktualizr-auto-reboot.bb
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
SUMMARY = "Enable auto reboot to apply updates"
DESCRIPTION = "Configures aktualizr to auto reboot just after new updates installation in order to apply them"
HOMEPAGE = "https://github.com/advancedtelematic/aktualizr"
SECTION = "base"
LICENSE = "MPL-2.0"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MPL-2.0;md5=815ca599c9df247a0c7f619bab123dad"

SRC_URI = " \
file://35-enable-auto-reboot.toml \
"

do_install_append () {
install -m 0700 -d ${D}${libdir}/sota/conf.d
install -m 0644 ${WORKDIR}/35-enable-auto-reboot.toml ${D}${libdir}/sota/conf.d/35-enable-auto-reboot.toml
}

FILES_${PN} = " \
${libdir}/sota/conf.d/35-enable-auto-reboot.toml \
"

# vim:set ts=4 sw=4 sts=4 expandtab:
2 changes: 2 additions & 0 deletions recipes-sota/config/files/35-enable-auto-reboot.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[uptane]
force_install_completion = true

0 comments on commit 63b03d7

Please sign in to comment.