Browse Source

auc: fall back to 'sdcard' image

Fallback to use 'sdcard' image in case there is neither 'sysupgrade'
nor 'combined' image available.
This allows using 'auc' on targets where 'sdcard' image is also used
for sysupgrade (such as some mvebu-based devices with eMMC).

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
lilik-openwrt-22.03
Daniel Golle 3 years ago
parent
commit
6b041752a0
No known key found for this signature in database GPG Key ID: 5A8F39C31C3217CA
1 changed files with 8 additions and 0 deletions
  1. +8
    -0
      utils/auc/src/auc.c

+ 8
- 0
utils/auc/src/auc.c View File

@ -1363,6 +1363,10 @@ static int select_image(struct blob_attr *images, const char *target_fstype, cha
ret = get_image_by_type(images, combined_type, fstype, image_name, image_sha256);
if (!ret)
return 0;
ret = get_image_by_type(images, "sdcard", fstype, image_name, image_sha256);
if (!ret)
return 0;
}
/* fallback to squashfs unless fstype requested explicitly */
@ -1372,6 +1376,10 @@ static int select_image(struct blob_attr *images, const char *target_fstype, cha
return 0;
ret = get_image_by_type(images, combined_type, "squashfs", image_name, image_sha256);
if (!ret)
return 0;
ret = get_image_by_type(images, "sdcard", fstype, image_name, image_sha256);
}
return ret;


Loading…
Cancel
Save