mirror of
https://github.com/lingble/meta-tegra.git
synced 2025-10-29 03:22:36 +00:00
This introduces a hook to the initrd-flash script which makes it possible to run custom scripts before erasing the storage disk via "erase-nvme" or overwriting it via "export-devices". Note: There exists already an "extra" hock to run future scripts before the final reboot step. Similar to that, any future recipe intended to add custom extra pre-wipe scripts can use the TEGRA_INITRD_FLASH_INSTALL variable in the distro config to add the new package(s). Furthermore, note that these custom scripts will need to be installed with executable permission set in the /init_extra-pre-wipe.d folder of the tegraflash initrd image. Signed-off-by: Stefan Schorr <stefan.schorr@cognex.com>