I'm having some serious difficulty trying to preseed clonezilla for automated cloning. My objective is to get clonezilla to just boot and immediately start an automated clone. I'm using DRBL to uEFI netboot clonezilla, so I've been modifying /tftpboot/nbi_img/grub/grub.cfg to set the ocs_live_run option. I can confirm that clonezilla is in fact using this file, I can change some of the menu text and those changes will show up when I boot. No matter what I do, clonezilla will not use the options set in ocs_live_run. My grub.cfg looks like this:
# PreseedingforDRBLsetlocales=en_US.UTF-8setkeyboard-layouts=NONEsetocs_live_run="ocs-sr -g auto -e1 auto -e2 -c -r -j2 -ps -k1 -icds -p choose restoredisk DockerAndDebian1 sda"---remainingdefaultgrub.cfgisbelowhere---
Am I doing something wrong? I feel like this should be very easy but I've been at it for a couple days and have had no luck. I've read through the docs and nothing seems to work.
Last edit: Grant Haack 2020-10-05
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The boot parameter is in a line, so you have to put it like:
menuentry "Clonezilla-live" --id clonezilla-live-client {
echo "Enter Clonezilla Live 2.6.7-28-amd64 (Ramdisk)..."
echo 'Loading Clonezilla-live-vmlinuz...'
linux Clonezilla-live-vmlinuz initrd=Clonezilla-live-initrd.img boot=live union=overlay noswap noeject locales=en_US.UTF-8 keyboard-layout=en vga=788 fetch=tftp://172.18.0.1/Clonezilla-live-filesystem.squashfs
echo 'Loading initial ramdisk Clonezilla-live-initrd.img...'
initrd Clonezilla-live-initrd.img
}
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm having some serious difficulty trying to preseed clonezilla for automated cloning. My objective is to get clonezilla to just boot and immediately start an automated clone. I'm using DRBL to uEFI netboot clonezilla, so I've been modifying /tftpboot/nbi_img/grub/grub.cfg to set the ocs_live_run option. I can confirm that clonezilla is in fact using this file, I can change some of the menu text and those changes will show up when I boot. No matter what I do, clonezilla will not use the options set in ocs_live_run. My grub.cfg looks like this:
Am I doing something wrong? I feel like this should be very easy but I've been at it for a couple days and have had no luck. I've read through the docs and nothing seems to work.
Last edit: Grant Haack 2020-10-05
The boot parameter is in a line, so you have to put it like:
menuentry "Clonezilla-live" --id clonezilla-live-client {
echo "Enter Clonezilla Live 2.6.7-28-amd64 (Ramdisk)..."
echo 'Loading Clonezilla-live-vmlinuz...'
linux Clonezilla-live-vmlinuz initrd=Clonezilla-live-initrd.img boot=live union=overlay noswap noeject locales=en_US.UTF-8 keyboard-layout=en vga=788 fetch=tftp://172.18.0.1/Clonezilla-live-filesystem.squashfs
echo 'Loading initial ramdisk Clonezilla-live-initrd.img...'
initrd Clonezilla-live-initrd.img
}