Menu

"-p poweroff" not working wi...

flyfoxuk
2011-10-29
2013-04-05
  • flyfoxuk

    flyfoxuk - 2011-10-29

    Hi there,

    I'm currently booting Clonezilla of a USB stick to run the following command to clone the disk:

    append initrd=/live/initrd.img boot=live config  noswap nolocales edd=on nomodeset noprompt ocs_live_run="ocs-onthefly --batch -p poweroff -g auto -e1 auto -e2 -j2 -f sda -t sdb" ocs_live_extra_param="" ocs_live_keymap="NONE" ocs_live_batch="yes" ocs_lang="en_US.UTF-8" vga=788 ip=frommedia  nosplash
    

    At the end of the cloning process I am trying to get it to poweroff the machine (so it's a fully automated clone from startup to shutdown) but I can't get it to auto poweroff the machine even with the "-p poweroff" option above.

    I note from this page http://drbl.sourceforge.net/one4all/techrpt.php?c=ocs-onthefly&t=Clone%20disk%20or%20partition%20on-the-fly that the -p option is actually for the port number.

    Is there an alternative parameter to specify to force a poweroff?  At the moment, the cloning finishes and shows "Now you can choose to: (0) Poweroff (1) Reboot (2) Enter command line prompt (3) Start over" and waits for user input.

    Many thanks for any guidance,

    FlyFox.

     
  • Steven Shiau

    Steven Shiau - 2011-11-09

    Thanks for asking this question.
    We will add an option to ocs-onthefly about this. For the time being, you can use the boot parameter "ocs_live_postrun", e.g.
    ocs_live_postrun="poweroff"

    Please let us know the results.

    Steven.

     
  • flyfoxuk

    flyfoxuk - 2011-11-12

    Hi Steven,

    Your suggestion of ocs_live_postrun="poweroff" did not work.  It still comes up with the 4 options to select at the end of the clone process.  Do you have any other suggestion I can try?

    FlyFox

     
  • flyfoxuk

    flyfoxuk - 2011-11-13

    Hi Steven,

    I eventually found the command that worked:

     ocs_postrun="sudo poweroff"
    

    Many thanks!

    FF.

     
  • Steven Shiau

    Steven Shiau - 2011-11-13

    OK, cool.
    In the future version of ocs-onthefly, an option "-pa" option will be added so that it's easier to deal with this issue.
    Thanks for asking this question again.

    Steven.

     

Log in to post a comment.

Auth0 Logo