ipq807x: image: fix eMMC flashing/recovery from within initramfs
authorPetr Štetiar <ynezz@true.cz>
Mon, 5 Jun 2023 12:10:44 +0000 (14:10 +0200)
committerPetr Štetiar <ynezz@true.cz>
Sat, 10 Jun 2023 19:29:08 +0000 (21:29 +0200)
commit07fe8bc62a866e78e131c3f63a08554a94e931f8
tree3e53b68986ae23196d7dd9e67d587d6c01ce4bb4
parent2e910039dd7170fd28641e7686c376dba6f0d8a5
ipq807x: image: fix eMMC flashing/recovery from within initramfs

Having initramfs image built with same config as on buildbots:

 CONFIG_TARGET_MULTI_PROFILE=y
 CONFIG_TARGET_ALL_PROFILES=y
 CONFIG_TARGET_PER_DEVICE_ROOTFS=y

Its currently impossible to flash/recover the device using that image as
losetup is missing:

 root@OpenWrt:/# sysupgrade -v /tmp/openwrt-ipq807x-generic-prpl_haze-squashfs-sysupgrade.bin
 ...
 /lib/upgrade/do_stage2: line 38: losetup: not found
 Failed to detach all loop devices. Skip this try.

So lets fix it by including the needed utils for sysupgrade in
DEFAULT_PACKAGES set.

Signed-off-by: Petr Štetiar <ynezz@true.cz>
target/linux/ipq807x/Makefile
target/linux/ipq807x/image/generic.mk