When we run DCS on the Clonezilla server machine to choose the correct image to restore, we usually do it in "Beginner" mode.
However, I recently added a script to the server, and I want that script to run after the imaging process is done. I placed it into /usr/share/drbl/postrun/ocs . Now if I set the o1 in "Expert" mode option, the script runs as intended and with no issue.
However, I was wondering if there is a way to set the o1 parameter on as default, even when dcs is running in "Beginner" mode
Clonezilla Server Edition is running in "Box" mode through PXE and DRBL
Last edit: ddolzhen 2025-02-20
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Basically no, unless you modify the programs, i.e, your customized version.
You can modify /usr/sbin/ocs-sr, change
run_postrun_dir="no"
to
run_postrun_dir="yes"
Steven
👍
1
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thank you for your advice, it makes sense.
I ended up going a similar route. I wrote an alias that runs "sudo dcs" and then also runs a script after DCS exits. The script goes into /tftpboot/ and modifies the grub.cfg file to add the run_postrun_dir flag
Denis
👍
1
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi All!
When we run DCS on the Clonezilla server machine to choose the correct image to restore, we usually do it in "Beginner" mode.
However, I recently added a script to the server, and I want that script to run after the imaging process is done. I placed it into /usr/share/drbl/postrun/ocs . Now if I set the o1 in "Expert" mode option, the script runs as intended and with no issue.
However, I was wondering if there is a way to set the o1 parameter on as default, even when dcs is running in "Beginner" mode
Clonezilla Server Edition is running in "Box" mode through PXE and DRBL
Last edit: ddolzhen 2025-02-20
Basically no, unless you modify the programs, i.e, your customized version.
You can modify /usr/sbin/ocs-sr, change
run_postrun_dir="no"
to
run_postrun_dir="yes"
Steven
Hi Steven!
Thank you for your advice, it makes sense.
I ended up going a similar route. I wrote an alias that runs "sudo dcs" and then also runs a script after DCS exits. The script goes into /tftpboot/ and modifies the grub.cfg file to add the run_postrun_dir flag
Denis
Cool! Thanks for sharing that.
Steven