Is it possible to accommodate a rootfs reset on the device to bring it back to the original state when the image was originally flashed? Kinda like a factory reset function to wipe out any custom modifications the user made. Obviously, we can do this by reflashing the image, but we would like to implement this on the device.
Our device uses iMX8MNANO and we use yocto to build the image. Thank you.