Menu

Unattended Restore Error

2017-08-08
2017-08-08
  • Blaine Randall

    Blaine Randall - 2017-08-08

    Hello,
    I've looked through the forum to try and find an answer to this, but I can't quite figure this one out. I've got an unattended restore configured in the grub boot loader, and most of it works. When it gets to the point where it's loading ocs-sr, and after it's using the Clonezilla image directory, I get the message:

    "Failed to stop mkswapfile.service: Unit mkswapfile.service not loaded
    Shutting down the logical volume manager
    Finished shutting down the logical volume manager
    No run_mod in overwritepostaction_if_assigned!
    "OCS-SR" Finsihed with error!"

    Here's what I'm using:

    menuentry "Easy Button"{
      search --set -f /live/vmlinuz
      linux /live/vmlinuz boot=live union=overlay username=user config components quiet noswap edd=on nomodeset locales=en_US.UTF-8 keyboard-layouts=NONE ocs_prerun="sudo mount /dev/sdc1 /home/partimag/" ocs_live_run=ocs-sr ocs_live_extra_param="-g auto -e1 auto e2 --batch -r -icds -j2 -k1 -scr -p reboot restoredisk ask_user sda1" ocs_live_batch="yes" vga=788 ip= net.ifnames=0  nosplash i915.blacklist=yes radeonhd.blacklist=yes nouveau.blacklist=yes vmwgfx.enable_fbdev=1
      initrd /live/initrd.img
    }
    

    Thank you!

     

    Last edit: Blaine Randall 2017-08-08
    • Steven Shiau

      Steven Shiau - 2017-08-11

      How about edit the "linux" line as:
      linux /live/vmlinuz boot=live union=overlay username=user config components quiet noswap edd=on nomodeset locales=en_US.UTF-8 keyboard-layouts=NONE ocs_repository="dev:///dev/sdc1" ocs_live_run="ocs-sr -g auto -e1 auto e2 --batch -r -icds -j2 -k1 -scr -p reboot restoredisk ask_user sda1" ocs_live_batch="yes" vga=788 ip= net.ifnames=0 nosplash i915.blacklist=yes radeonhd.blacklist=yes nouveau.blacklist=yes vmwgfx.enable_fbdev=1
      BTW, please use the latest stable Clonezilla live.
      Ref:
      http://clonezilla.org/fine-print-live-doc.php?path=./clonezilla-live/doc/99_Misc/00_live-boot-parameters.doc#00_live-boot-parameters.doc

      Steven

       
  • Arthur Tromp

    Arthur Tromp - 2017-08-09

    I don't have much experience with unattended restores, but when looking at the example on http://clonezilla.org/show-live-doc-content.php?topic=clonezilla-live/doc/05_Preseed_options_to_do_job_after_booting I notice that they use the following format:

    ocs_live_run="ocs-sr -g auto -e1 auto -e2 -c -r -j2 -k -p true restoreparts ask_user sda1" ocs_live_extra_param=""

    So have you tried to change your entry as follows?

    ocs_live_run="ocs-sr -g auto -e1 auto e2 --batch -r -icds -j2 -k1 -scr -p reboot restoredisk ask_user sda1" ocs_live_extra_param=""

     
    • Blaine Randall

      Blaine Randall - 2017-08-09

      Thanks for the reply, Arthur. Unfortunately changing the code to include everything in the main tag didn't change the error I received, besides having the entire command string in the error.

       
  • Arthur Tromp

    Arthur Tromp - 2017-08-10

    The error "No run_mod in overwrite_postaction_if_assigned!" is apparently generated by function overwrite_postaction_if_assigned which is defined in file /usr/share/drbl/sbin/ocs-functions within the filesystem.squashfs. Looking in the documentation of Clonezilla Live (http://clonezilla.org/fine-print-live-doc.php?path=clonezilla-live/doc/99_Misc/00_live-boot-parameters.doc) there apparently is the following boot parameter:

    ocs_overwrite_postaction. This boot parameter has higher priority than the action assigned by option "-p" in ocs-sr, and "-pa" in ocs-onthefly. The value for ocs_overwrite_postaction is: [choose|reboot|poweroff]-on-[restoredisk|restoreparts|savedisk|saveparts|clone] E.g., choose-on-restoredisk means the postaction for restoredisk will always be "choose" no matter what is assigned in -p of ocs-sr or -pa of ocs-onthefly.

    So I'm wondering if the error is caused by the fact that this parameter is missing in your configuration. So you could try to add the following:

    ocs_overwrite_postaction="reboot-on-restoredisk"

    I hope it helps.

     
    • Blaine Randall

      Blaine Randall - 2017-08-10

      Unfortunateley I'm still getting the same error. Do you think it could be because I'm booting with UEFI? I can try building a legacy disk and changing the boot loader to the standard syslinux.cfg.

       

Log in to post a comment.

MongoDB Logo MongoDB