Menu

clonezilla auto poweroff

Help
myles
2013-01-25
2013-04-05
  • myles

    myles - 2013-01-25

    hey all out there, i need help solving what is probably a simple issue. i need to be able to program some computers for a school with everything they want and have a restore usb if anything goes wrong. i want the stick to be able to load, automaticly install the restore disc and than poweroff afterwards. i have been able to get the stick to self-install the restore disc but i need it to power itself off afterwards. does anyone know how to do it and if so can you tell me how. below is the syslinux file i am using. all help is greatly appreciated

    # Created by generate-pxe-menu! Do NOT edit unless you know what you are doing!
    # Keep those comment "MENU DEFAULT" and "MENU HIDE"! Do NOT remove them.
    # Note!!! If "serial" directive exists, it must be the first directive
    default vesamenu.c32
    timeout 300
    prompt 0
    noescape 1
    MENU MARGIN 5
    MENU BACKGROUND ocswp.png
    # Set the color for unselected menu item and timout message
    MENU COLOR UNSEL 7;32;41 #c0000090 #00000000
    MENU COLOR TIMEOUT_MSG 7;32;41 #c0000090 #00000000
    MENU COLOR TIMEOUT 7;32;41 #c0000090 #00000000
    MENU COLOR HELP 7;32;41 #c0000090 #00000000

    # MENU MASTER PASSWD

    say **********************************************************************
    say Clonezilla, the OpenSource Clone System.
    say NCHC Free Software Labs, Taiwan.
    say clonezilla.org, clonezilla.nchc.org.tw
    say THIS SOFTWARE COMES WITH ABSOLUTELY NO WARRANTY! USE AT YOUR OWN RISK!
    say **********************************************************************

    # Allow client to edit the parameters
    ALLOWOPTIONS 1

    # simple menu title
    MENU TITLE clonezilla.org, clonezilla.nchc.org.tw

    # Since no network setting in the squashfs image, therefore if ip=frommedia, the network is disabled. That's what we want.
    label clonezilla live with img AludraHD_NTP_FIX_GoldenImage
      MENU DEFAULT
      # MENU HIDE
      MENU LABEL clonezilla live with img AludraHD_NTP_FIX_GoldenImage (Default settings, VGA 800x600)
      # MENU PASSWD
      kernel /live/vmlinuz
      append initrd=/live/initrd.img boot=live config  noswap edd=on nomodeset noprompt locales=en_US.UTF-8 keyboard-layouts=NONE ocs_live_run="ocs-live-restore" ocs_live_extra_param="-g auto -e1 auto -e2 -r -j2 -batch -p true restoredisk AludraHD_NTP_FIX_GoldenImage sda" ocs_live_batch=yes vga=788 ip=frommedia  nosplash i915.blacklist=yes radeonhd.blacklist=yes nouveau.blacklist=yes vmwgfx.blacklist=yes
      TEXT HELP
      * Clonezilla live version: AludraHD_NTP_FIX_GoldenImage. (C) 2003-2013, NCHC, Taiwan
      * Disclaimer: Clonezilla comes with ABSOLUTELY NO WARRANTY
      ENDTEXT

     
  • Fuchs

    Fuchs - 2013-01-25

    You can substitute
    -p true  by
    -p poweroff
    in the syslinux.cfg MENU,
    You can it use with memory sticks.

    A problem is:
    Not all external drives can spindown when the pc goes shutdown. It's common windows problem.

    (For development: the package 'udisk..deb' should be added)

     
  • Steven Shiau

    Steven Shiau - 2013-02-10

    @fusi1939,
    Thanks. The package udisks will be added in the next release of Clonezilla live.

    Steven.

     

Log in to post a comment.