Skip to content

Generic Flasher: when flashing xzcat or curl can fail, but result is OK #123

@mangelajo

Description

@mangelajo
# curl: (18) end of response with 16289688 bytes missing
xzcat: corrupted data
81190+1 records in
81190+1 records out
5320868186 bytes (5.3 GB, 5.0 GiB) copied, 458.706 s, 11.6 MB/s
[  495.933414] Alternate GPT is invalid, using primary GPT.
[  495.933472]  mmcblk0: p1 p2 p3 p4 p5 p6
cat /proc/430/fdinfo/1
cat: /proc/430/fdinfo/1: No such file or directory
[1]+  Done                       (curl -fsSL "https://files.ajo.es/auto-osbuild-rcar_s4-rhivos-qa-regular-aarch64-13042507.b631d723.raw.xz" | xzcat | dd of=/dev/mmcblk0 bs=64k iflag=fullblock oflag=direct)
# BaseFlasherClient - INFO - Flushing buffers
sync
# BaseFlasherClient - INFO - Flashing completed in 9m 00s
BaseFlasherClient - INFO - Powering off target
~ ⚡remote ➤ j power on

We should return $? != 0 and print a RED error so it becomes very noticeable to the user.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions