Skip to content

Commit

Permalink
Add the state scripts version file.
Browse files Browse the repository at this point in the history
Changelog: Title
Signed-off-by: Drew Moseley <drew.moseley@northern.tech>
  • Loading branch information
Drew Moseley committed Apr 24, 2020
1 parent 4e98e78 commit 3270e6c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions mender-convert-modify
Expand Up @@ -211,6 +211,14 @@ run_and_log_cmd "sudo install -m 0444 work/device_type work/rootfs/data/mender/"
run_and_log_cmd "sudo echo 'artifact_name=${MENDER_ARTIFACT_NAME}' \
> work/rootfs/etc/mender/artifact_info"

log_info "Creating state scripts version file."
case "${MENDER_CLIENT_VERSION}" in
1* ) VERSION_STRING='2';;
* ) VERSION_STRING='3';;
esac
run_and_log_cmd "sudo mkdir -p work/rootfs/etc/mender/scripts/"
run_and_log_cmd "echo -n ${VERSION_STRING} | sudo tee work/rootfs/etc/mender/scripts/version"

log_info "Installing a custom /etc/fstab (see work/convert.log for more info)"

if [ "${MENDER_GRUB_EFI_INTEGRATION}" == "y" ]; then
Expand Down

0 comments on commit 3270e6c

Please sign in to comment.