I'm trying to copy a compressed image into a partition inside a Beaglebone. Usually, it is a 2 step process:
xz -d console.img.xz # console.img is created
dd if=console.img of=/dev/mmcblk0p3
Is there a way, I can do it in a single step without uncompressing the file *.img.xz
? This is because after uncompressed the image, it is too big for the current partition.
xzcat console.img.xz | dd of=/dev/mmcblk0p3 status=progress
xz -dc console.img.xz | dd of=/dev/mmcblk0p3 status=progress
This seems to work, if that is what you mean:
xz -d < console.img.xz - | dd of=/dev/mmcblk0p3
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With