Score:0

passing ocs_live_extra_param onto clonezilla?

ie flag

I'm trying to build a semi unattended cloning script for some Mac machines at work... and I cant seem to figure out how to get the OCS command line parameters to pass onto the clonezilla live ocs... currently it just boots to the main clonezilla start screen where you can pick parameters manually instead of doing the boot parameters automatically

I dont know what I'm doing wrong or missing... just looking for a little help

Heres a Menu Entry from the grub.cfg.

menuentry "Laptop type 1" --id live-toram {
  search --set -f /live/vmlinuz
  $linux_cmd /live/vmlinuz boot=live union=overlay username=user hostname=kinetic config quiet loglevel=0 noswap edd=on nomodeset enforcing=0 locales= keyboard-layouts= ocs_prerun="mount /dev/sdb2" ocs_live_run=ocs-live-restore ocs_live_extra_param="-g auto -e1 auto -e2 -c -r -j2 -k0 --clone-hidden-data -p reboot -scr restoredisk Lap1-sda-500" vga=788 toram=live,syslinux,EFI,boot,.disk,utils ip= net.ifnames=0  splash i915.blacklist=yes radeonhd.blacklist=yes nouveau.blacklist=yes vmwgfx.enable_fbdev=1
  $initrd_cmd /live/initrd.img 
}

In the end, I may end up making multiple partitions on a USB hard drive and doing a boot partition and an image partition but for testing, I just need to make this work first before buying a big enough drive for all the images


UPDATE


with a little help from another forum I was able to make some progress, but still need a few more tidbits of info to solve it

heres where I am at now...

menuentry "Laptop type 1" --id live-toram {
  search --set -f /live/vmlinuz
  $linux_cmd /live/vmlinuz boot=live union=overlay username=user hostname=kinetic config quiet loglevel=0 noswap edd=on nomodeset enforcing=0 locales=en_US.UTF-8 keyboard-layouts=en ocs_prerun="sudo mount /dev/sdb5 /home/partimag/" ocs_live_run=ocs-live-restore ocs_live_extra_param="-g auto -e1 auto -e2 -c -r -j2 -k0 --clone-hidden-data -p reboot -scr restoredisk S6L-sda-500 sda" vga=788 toram=live,syslinux,EFI,boot,.disk,utils ip= net.ifnames=0  splash i915.blacklist=yes radeonhd.blacklist=yes nouveau.blacklist=yes vmwgfx.enable_fbdev=1
  $initrd_cmd /live/initrd.img 
}

What I am looking for next is how to bypass the first clonezilla menu which gives you the option to start clonezilla or to enter a command prompt and then how to automatically say yes I want to image this drive... so its "unattended" I figure I'm just missing a parameter in the OCS somewhere...

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.