Menu

Can't seed ocs_live_run

Help
2020-10-05
2020-10-11
  • Grant Haack

    Grant Haack - 2020-10-05

    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:

    # Preseeding for DRBL
    set locales=en_US.UTF-8
    set keyboard-layouts=NONE
    set ocs_live_run="ocs-sr -g auto -e1 auto -e2 -c -r -j2 -ps -k1 -icds -p choose restoredisk DockerAndDebian1 sda"
    --- remaining default grub.cfg is below here ---
    

    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
  • Steven Shiau

    Steven Shiau - 2020-10-11

    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

    }

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.