Browse Source
Merge pull request #206 from drewmoseley/master
Misc changes for Yocto
2.1.x
Mirza Krak
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with
15 additions and
1 deletions
-
configs/generic_x86-64_hdd_config
-
modules/decompressinput.sh
-
modules/probe.sh
|
|
@ -38,3 +38,14 @@ MENDER_STORAGE_TOTAL_SIZE_MB=16000 |
|
|
|
|
|
|
|
# Nothing to copy |
|
|
|
MENDER_COPY_BOOT_GAP="n" |
|
|
|
|
|
|
|
function platform_modify() { |
|
|
|
# |
|
|
|
# Make sure /lib64 exists since the Mender binary requires it. |
|
|
|
# Some systems put everything under /lib (ie Yocto) and a simple |
|
|
|
# symlink is enough to find everything Mender needs. |
|
|
|
# |
|
|
|
if [ ! -e work/rootfs/lib64 ]; then |
|
|
|
run_and_log_cmd "ln -s /lib work/rootfs/lib64" |
|
|
|
fi |
|
|
|
} |
|
|
|
|
|
@ -28,7 +28,7 @@ function compression_type () { |
|
|
|
fi |
|
|
|
local -r disk_image="${1}" |
|
|
|
case "${disk_image}" in |
|
|
|
*.img | *.sdimg) |
|
|
|
*.img | *.sdimg | *.wic | *.rpi-sdimg) |
|
|
|
echo "none" |
|
|
|
;; |
|
|
|
*.gz) |
|
|
|
|
|
@ -23,6 +23,9 @@ probe_arch() { |
|
|
|
# to busybox |
|
|
|
file_info="" |
|
|
|
for location in bin/ls usr/bin/ls; do |
|
|
|
if [ -L work/rootfs/${location} ]; then |
|
|
|
location=$(readlink work/rootfs/${location}) |
|
|
|
fi |
|
|
|
if [ -e work/rootfs/${location} ]; then |
|
|
|
file_info=$(file -b --dereference work/rootfs/${location}) |
|
|
|
break |
|
|
|