Browse Source
Merge pull request #215 from drewmoseley/master
Extract debian package contents with sudo.
revert-252-rm-only-tag-2.2.x
Kristian Amlie
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
3 deletions
-
mender-convert-modify
|
|
@ -94,7 +94,7 @@ run_and_log_cmd "wget -Nq ${MENDER_STORAGE_URL}/${MENDER_CLIENT_VERSION}/dist-pa |
|
|
|
|
|
|
|
cd work/mender-deb |
|
|
|
run_and_log_cmd "ar -xv ${deb_name}" |
|
|
|
run_and_log_cmd "tar xJf data.tar.xz -C files" |
|
|
|
run_and_log_cmd "sudo tar xJf data.tar.xz -C files" |
|
|
|
cd - > /dev/null 2>&1 |
|
|
|
|
|
|
|
run_and_log_cmd "sudo rsync --archive --keep-dirlinks --verbose work/mender-deb/files/ work/rootfs/" |
|
|
@ -207,8 +207,8 @@ fi |
|
|
|
|
|
|
|
run_and_log_cmd "echo 'device_type=${device_type}' > work/device_type" |
|
|
|
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" |
|
|
|
run_and_log_cmd "echo 'artifact_name=${MENDER_ARTIFACT_NAME}' \ |
|
|
|
| sudo tee work/rootfs/etc/mender/artifact_info" |
|
|
|
|
|
|
|
log_info "Creating state scripts version file." |
|
|
|
case "${MENDER_CLIENT_VERSION}" in |
|
|
|