cd ~ && mkdir -p armbian-test && cd armbian-test # prepare space # download xze script wget https://raw.githubusercontent.com/khadas/krescue/master/tools/xze chmod 0777 xze # download original armbian image wget --content-disposition http://redirect.armbian.com/khadas-edge2/Jammy_legacy # decompress to raw pixz -dc Armbian_23.2.9_Khadas-edge2_jammy_legacy_5.10.160.img.xz # setup output filename export OUT=Armbian_23.2.9_Khadas-edge2_jammy_legacy_5.10.160-repack.img.xz # compress image ./xze "Armbian_23.2.9_Khadas-edge2_jammy_legacy_5.10.160.img" \ --meta \ label=Armbian \ builder=Armbian \ date="$(LANG=C TZ= date)" \ match=BOARD=Edge2 \ link=https://www.armbian.com/khadas-edge-2/ \ duration=60 \ desc="Armbian Jammy legacy testing ... "