Flash Drive with modifications to the Targetfs image

Please provide the following info (tick the boxes after creating this topic):
Software Version
DRIVE OS 6.0.10.0
DRIVE OS 6.0.8.1
DRIVE OS 6.0.6
DRIVE OS 6.0.5
DRIVE OS 6.0.4 (rev. 1)
DRIVE OS 6.0.4 SDK
other

Target Operating System
Linux
QNX
other

Hardware Platform
DRIVE AGX Orin Developer Kit (940-63710-0010-300)
DRIVE AGX Orin Developer Kit (940-63710-0010-200)
DRIVE AGX Orin Developer Kit (940-63710-0010-100)
DRIVE AGX Orin Developer Kit (940-63710-0010-D00)
DRIVE AGX Orin Developer Kit (940-63710-0010-C00)
DRIVE AGX Orin Developer Kit (not sure its number)
other

SDK Manager Version
2.1.0
other

Host Machine Version
native Ubuntu Linux 20.04 Host installed with DRIVE OS Docker Containers

Issue Description
Hi
I have been flashing my drive with the Docker container and it has been perfect.
what i would like to do now is to flash two different Drives with the same setup, so that is easier i can just flash them and put them into use, with minimal setup (networking, and packages installed and more)
The issue i found was that when i went in the targetfs and chrooted inside i could add my packages and special networkings, but this wouldnt change the outside image located outside the targetfs folder.
so I thought i can delete the image and just hope the flasher will recreate the image, but it didnt happen.
so i am in a odd place at the moment, i deleted my img which i could just recreate my docker to have it back but i would like to flash my drive with my very own modifications already.
so i thought about doing
truncate -s 10G targetfs.img
mkfs.ext4 -F -L rootfs targetfs.img
and then flashing it with flash.py
but i am worried if this is the correct way forward to flash a drive with a different image, can you advise?
BR and thanks
Yuri

Dear @yuri.poledna ,
did you create new targets.img with the changes you want? If so, could you share the steps ?

As I understand, you have requirement to make changes in tartgetfs folder (like add/modify files) and they have to be reflected as is on DRIVE after flash.

Yes, @SivaRamaKrishnaNV you understood my requirement, i want to change the targetfs folder and have this reflected in the Drive after FLASH

I havent still made this new image i just thought that if i were to create it i would do it like this:
truncate -s 10G targetfs.img
mkfs.ext4 -F -L rootfs targetfs.img

but it is just a thought. I came here before i started the drive to do a sanity check if this would work because i was worried to brick the device.

what would be the workflow to flash the drive with a preset img that is different from the standard image? Should i indeed change the targetfs folder and recreate the image? or should i do something else?
Thanks
Yuri

Dear @yuri.poledna ,
Does https://developer.nvidia.com/docs/drive/drive-os/6.0.10/public/drive-os-linux-sdk/common/topics/sys_components/filesystems_add_single_debian_package.html helps your case?