However, when Clonezilla Live client finishes restore, script is never run. It does have a shebang on the first line (#!/bin/sh) and runs correctly if I launch it manually.
I checked /usr/share/drbl/postrun/ocs/ directory on Clonezilla Live client, and it only has 00-readme.txt file. Why isn't the script copied there? How could this problem be troubleshooted?
Tried running /opt/drbl/sbin/drbl-gen-ssi-files -t 10.93.59.34 to no avail.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
Double-checked everything, but still can't figure this one out.
DRBL in Clonezilla Live mode, Ubuntu 12.04, drblpush.conf below:
Put a script in /opt/drbl/share/ocs/postrun/
Script name is sethostname, mode is 755. run-parts doesn't complain:
However, when Clonezilla Live client finishes restore, script is never run. It does have a shebang on the first line (#!/bin/sh) and runs correctly if I launch it manually.
I checked /usr/share/drbl/postrun/ocs/ directory on Clonezilla Live client, and it only has 00-readme.txt file. Why isn't the script copied there? How could this problem be troubleshooted?
Tried running /opt/drbl/sbin/drbl-gen-ssi-files -t 10.93.59.34 to no avail.
Figured this one out.
Since I'm using clonezilla_live_mode, I had to modify Clonezilla filesystem.squashfs to add the scripts:
Cool!
It's nice to know you find the solution.
Another possibility is you can use boot parameters (ocs_postrun*) to make that if you do not want to modify files in squashfs:
http://clonezilla.org/fine-print-live-doc.php?path=./clonezilla-live/doc/99_Misc/00_live-boot-parameters.doc#00_live-boot-parameters.doc
Of course, this is for easy postrun case, not complicated one.
Steven.