Menu

Setting default parameters for Clonezilla DCS "Beginner mode"

ddolzhen
2025-02-20
2025-03-09
  • ddolzhen

    ddolzhen - 2025-02-20

    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
  • Steven Shiau

    Steven Shiau - 2025-02-22

    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
  • ddolzhen

    ddolzhen - 2025-02-25

    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

     
    👍
    1
  • Steven Shiau

    Steven Shiau - 2025-03-09

    Cool! Thanks for sharing that.

    Steven

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.