I have created a Clonezilla drive with 2 Partitions: one for the Clonezilla OS and one for the Image Repository. I have captured an image successfully and I'm able to restore to a new machine successfully. However, I would like to use ocs_prerun to be able to have these machines Automatically run restorediskon a particular machine without intervention. Here is the script I'm using in the syslinux.cfg file:
label ETS-840G3
MENU DEFAULT
# MENU HIDE
MENU LABEL ETS-840G3
# MENU PASSWD
kernel /live/vmlinuz
append initrd=/live/initrd.img boot=live union=overlay username=user config components quiet noswap edd=on nomodeset noeject locales=en_US.UTF-8 keyboard-layouts=NONE ocs_prerun="mount /dev/sdb2 /mnt" ocs_prerun1="mount --bind /mnt /home/partimag" ocs_live_run="ocs-sr -batch -r -j2 -scr -p reboot restoredisk ETS-840G3 sda" ocs_live_extra_param="" ocs_live_batch="yes" vga=791 ip= net.ifnames=0 splash i915.blacklist=yes radeonhd.blacklist=yes nouveau.blacklist=yes vmwgfx.enable_fbdev=1
TEXT HELP
VGA mode 1024x768. OK for most of VGA cards.
ENDTEXT
It boots to the orange Clonezilla screen, then gives a 30 second countdown for Automatic Boot, but after that, it boots int Clonezilla normally. It doesn't throw any errors or anything, it seems like it just skips it.
Does anyone have any ideas or has anyone dealt with something similar before?
Thanks in advance,
Last edit: Daniel newman 2023-05-19
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Clonezilla Version: stable - 3.1.0-22
I have created a Clonezilla drive with 2 Partitions: one for the Clonezilla OS and one for the Image Repository. I have captured an image successfully and I'm able to restore to a new machine successfully. However, I would like to use
ocs_prerun
to be able to have these machines Automatically runrestoredisk
on a particular machine without intervention. Here is the script I'm using in the syslinux.cfg file:label ETS-840G3
MENU DEFAULT
# MENU HIDE
MENU LABEL ETS-840G3
# MENU PASSWD
kernel /live/vmlinuz
append initrd=/live/initrd.img boot=live union=overlay username=user config components quiet noswap edd=on nomodeset noeject locales=en_US.UTF-8 keyboard-layouts=NONE ocs_prerun="mount /dev/sdb2 /mnt" ocs_prerun1="mount --bind /mnt /home/partimag" ocs_live_run="ocs-sr -batch -r -j2 -scr -p reboot restoredisk ETS-840G3 sda" ocs_live_extra_param="" ocs_live_batch="yes" vga=791 ip= net.ifnames=0 splash i915.blacklist=yes radeonhd.blacklist=yes nouveau.blacklist=yes vmwgfx.enable_fbdev=1
TEXT HELP
VGA mode 1024x768. OK for most of VGA cards.
ENDTEXT
It boots to the orange Clonezilla screen, then gives a 30 second countdown for Automatic Boot, but after that, it boots int Clonezilla normally. It doesn't throw any errors or anything, it seems like it just skips it.
Does anyone have any ideas or has anyone dealt with something similar before?
Thanks in advance,
Last edit: Daniel newman 2023-05-19
Are you sure you have edited the correct file?
It might be syslinux.cfg, isolinux.cfg, or grub.cfg?
Reference: https://clonezilla.org/fine-print-livdrbhttps://clonezilla.org/fine-print-livdrbl-bug-reporte-doc.php?path=./clonezilla-live/doc/99_Misc/00_live-boot-parameters.doc#00_live-boot-parameters.docl-bug-reporte-doc.php?path=./clonezilla-live/doc/99_Misc/00_live-boot-parameters.doc#00_live-boot-parameters.doc
Steven