When disk images are saved into a directory, would it be possible to create a custom file at the end of the image saving process? Let's say Clonezilla saves disk image for example to directory /var/images/Test-2025-03-11 with all the usual files. After that I would like to create a file e.g. like /var/images/Test-2025-03-11/file.txt.
I assume this would be possible, but could anyone give some advice which files would need to be edited so a file.txt (or with some other name) could always be created automatically after a disk image has been saved? This would be needed, because I'm making a backup script that does certain things if certain files are found in the image directories.
I'm using Clonezilla Live on the server.
Last edit: Marko 2025-03-11
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
When disk images are saved into a directory, would it be possible to create a custom file at the end of the image saving process? Let's say Clonezilla saves disk image for example to directory /var/images/Test-2025-03-11 with all the usual files. After that I would like to create a file e.g. like /var/images/Test-2025-03-11/file.txt.
I assume this would be possible, but could anyone give some advice which files would need to be edited so a file.txt (or with some other name) could always be created automatically after a disk image has been saved? This would be needed, because I'm making a backup script that does certain things if certain files are found in the image directories.
I'm using Clonezilla Live on the server.
Last edit: Marko 2025-03-11
You can refer to this:
https://clonezilla.org//fine-print-live-doc.php?path=./clonezilla-live/doc/99_Misc/00_live-boot-parameters.doc#00_live-boot-parameters.doc
The boot parameter "ocs_postrun" should work for you.
It's similar to "ocs_prerun", and an example here:
https://clonezilla.org//fine-print-live-doc.php?path=clonezilla-live/doc/05_Preseed_options_to_do_job_after_booting
Steven