meta-digi/meta-digi-dey/recipes-core
Gabriel Valcazar 5695cf15db recovery-initramfs-init: fix "update" volume wipe when singlemtdsys is enabled
Currently, when wiping the update volume via the recovery partition on a
ccimx6ul with singlemtdsys enabled, the procedure fails with this error:

    [RECOVERY] Starting recovery...
    [RECOVERY] Wipe 'update' partition requested
    [RECOVERY] Formatting 'update' ubi volume
    ubi0 error: ubi_open_volume.part.0: cannot open device 0, volume 3, error -16
    ubiupdatevol: error!: cannot open "/dev/ubi0_3"
                  error 16 (Device or resource busy)

This is because the logic used to unmount a volume before formatting it is
expecting this entry format when running "mount":

    ubi0:update on /mnt/update type ubifs

While this is the format of the "mount" output in userspace for the rootfs
volume, other trivial volumes have this format instead:

    ubi0_3 on /mnt/update type ubifs

Adapt the logic to this format so that the "update" volume wipe procedure can
take place.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2024-06-28 13:07:11 +02:00
..
base-files kirkstone migration: general update to the new override syntax 2022-06-20 11:39:57 +02:00
busybox cc93: standby-actions: rework the programming of resume actions 2024-01-25 13:57:16 +01:00
images ccimx6ul: remove "-x11" suffix from dey-image-lvgl image name 2024-01-25 09:30:13 +01:00
init-ifupdown p2p scripts: generalize support getting name from configuration 2023-09-01 14:55:37 +02:00
initscripts kirkstone migration: general update to the new override syntax 2022-06-20 11:39:57 +02:00
packagegroups packagegroups: add packages related to RT 2024-04-29 16:13:49 +02:00
psplash psplash: fix bbappend for different distro than "dey" 2024-02-23 14:27:01 +01:00
readline kirkstone migration: general update to the new override syntax 2022-06-20 11:39:57 +02:00
recovery recovery-initramfs-init: fix "update" volume wipe when singlemtdsys is enabled 2024-06-28 13:07:11 +02:00
system-monitor kirkstone migration: general update to the new override syntax 2022-06-20 11:39:57 +02:00
systemd systemd: remove console on virtual terminals 2023-07-28 12:40:38 +02:00
sysvinit meta-digi: remove True option to getVar 2023-02-24 16:24:47 +01:00
trustfence fscrypt: include trustfence-fscrypt tool into rootfs 2024-06-27 15:39:49 +02:00