Копируем образ на ту же флешку, где находится Clonezilla и меняем файл \boot\grub\grub.cfg.
Обратить внимание, в команде есть пункт монтирования флешки по UUID в каталог /home/partimag: ocs_prerun=”mount -U xxxx-xxxx /home/partimag/”. UUID нужно сменить на актуальный, для каждой флешки он свой!
Открываем файл на флешке с Clonezilla: \boot\grub\grub.cfg, добавляем пункт меню:
# Since no network setting in the squashfs image, therefore if ip=, the network is disabled.
menuentry --hotkey=r "MY_CLONEZILLA_ISO" --id live-toram {
search --set -f /live/vmlinuz
$linux_cmd /live/vmlinuz boot=live union=overlay username=user config components quiet loglevel=0 noswap edd=on nomodeset enforcing=0 locales=en_US.UTF-8 keyboard-layouts=none ocs_prerun="mount -U xxxx-xxxx /home/partimag/" ocs_live_run="ocs-sr -g auto -e1 auto -e2 -r -j2 -scr -p true restoredisk "MY_CLONEZILLA_ISO" ask_user" ocs_postrun="sudo poweroff" ocs_live_extra_param="" ocs_live_batch="no" vga=788 toram=live,syslinux,EFI,boot,.disk,utils ip= net.ifnames=0 nosplash i915.blacklist=yes radeonhd.blacklist=yes nouveau.blacklist=yes vmwgfx.enable_fbdev=1
$initrd_cmd /live/initrd.img
}
menuentry "Clonezilla live (VGA 800x600)" --id live-default {
search --set -f /live/vmlinuz
$linux_cmd /live/vmlinuz boot=live union=overlay username=user config components quiet loglevel=0 noswap edd=on nomodeset enforcing=0 locales= keyboard-layouts= ocs_live_run="ocs-live-general" ocs_live_extra_param="" ocs_live_batch="no" vga=788 ip= net.ifnames=0 nosplash i915.blacklist=yes radeonhd.blacklist=yes nouveau.blacklist=yes vmwgfx.enable_fbdev=1
$initrd_cmd /live/initrd.img
}
Теперь при загрузке с флешки Clonezilla спросит только на какой диск разворачивать образ и дальше сделает все сама в автомате.