From 67f216d24f4ffd58a787696eebbe4ce85a78997a Mon Sep 17 00:00:00 2001 From: LuK1337 Date: Sat, 21 Oct 2023 22:33:47 +0200 Subject: [PATCH] wiki: Use `--format=ustar` for creating Odin tars Change-Id: I37a074c87190e3ba55596f22e7c507d3b8cc8737 --- .../device_specific/before_recovery_install_samsung_qcom.md | 2 +- _includes/templates/recovery_install_odin.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/_includes/templates/device_specific/before_recovery_install_samsung_qcom.md b/_includes/templates/device_specific/before_recovery_install_samsung_qcom.md index cf8da02074..607dc7b319 100644 --- a/_includes/templates/device_specific/before_recovery_install_samsung_qcom.md +++ b/_includes/templates/device_specific/before_recovery_install_samsung_qcom.md @@ -8,7 +8,7 @@ * From within the Developer options menu, enable OEM unlock. {% endunless %} 3. Download `vbmeta.img` from [here](https://download.lineageos.org/devices/{{ device.codename }}). -4. Open a Command Prompt in the folder where the file was downloaded and TAR the file by running `tar -cvf vbmeta.tar vbmeta.img` +4. Open a Command Prompt in the folder where the file was downloaded and TAR the file by running `tar --format=ustar -cvf vbmeta.tar vbmeta.img` 5. Power off the device, and boot it into download mode: * {{ device.download_boot }} * Now, click the button that the onscreen instructions correlate to "Device unlock mode" and/or "Unlock Bootloader". diff --git a/_includes/templates/recovery_install_odin.md b/_includes/templates/recovery_install_odin.md index 8ed60f8867..e2ce0b04ed 100644 --- a/_includes/templates/recovery_install_odin.md +++ b/_includes/templates/recovery_install_odin.md @@ -40,7 +40,7 @@ The preferred method of installing a custom recovery is through Download Mode{% {%- elsif device.maintainers != empty %} {%- assign is_lineage_recovery = true %} 2. Download [Lineage Recovery](https://download.lineageos.org/devices/{{ custom_recovery_codename }}). Simply download the latest recovery file, named `{{ device.recovery_partition_name }}.img` -3. Open a Command Prompt in the folder where the file was downloaded, and TAR the file by running `tar -cvf {{ device.recovery_partition_name }}.tar {{ device.recovery_partition_name }}.img`. +3. Open a Command Prompt in the folder where the file was downloaded, and TAR the file by running `tar --format=ustar -cvf {{ device.recovery_partition_name }}.tar {{ device.recovery_partition_name }}.img`. {% capture content -%} Make sure to not accidentally name the file `{{ device.recovery_partition_name }}.img.img` when file name extensions are hidden. {%- endcapture -%} @@ -49,7 +49,7 @@ The preferred method of installing a custom recovery is through Download Mode{% {%- else %} {%- assign is_lineage_recovery = true %} 2. [Build]({{ device | device_link: "/build" | relative_url }}) a LineageOS installation package. The recovery will be built as part of it! -3. Locate the built `{{ device.recovery_partition_name }}.img` file, open a Command Prompt in the folder where the file was found, and TAR the file by running `tar -cvf {{ device.recovery_partition_name }}.tar {{ device.recovery_partition_name }}.img`. +3. Locate the built `{{ device.recovery_partition_name }}.img` file, open a Command Prompt in the folder where the file was found, and TAR the file by running `tar --format=ustar -cvf {{ device.recovery_partition_name }}.tar {{ device.recovery_partition_name }}.img`. {% include alerts/tip.html content="You can open a command prompt in any folder by right-clicking on empty space while holding Shift and selecting \"Open Command Prompt here\" or \"Open PowerShell window here\" from the context menu." %} {%- endif %} {% include alerts/important.html content="Other recoveries may not work for installation or updates. We strongly recommend to use the one linked above!" %}