Menu

Custom

Help
2021-03-26
2021-04-11
  • Informatique Sepaq

    Hi, I want to create an semi-automated usb live key.

    In the past with MBR I have used the following setting in the syslinux.cfg without anu problem.

    label Clonezilla live (en RAM)
    # MENU DEFAULT
    # MENU HIDE
    MENU LABEL Clonezilla - RESTORE (forced) (RAM)
    # MENU PASSWD
    kernel /live/vmlinuz
    append initrd=/live/initrd.img boot=live union=overlay username=user config components quiet noswap edd=on nomodeset nodmraid noeject locales=en_US.UTF-8 keyboard-layouts=NONE ocs_prerun1="dhclient -v eth0" ocs_prerun2="sleep 2" ocs_prerun3="sudo mount -t cifs //10.26.168.64/infsup$/images /home/partimag -o user=clonezilla,domain=MYDOMAIN,password=MYPASSWORD" ocs_prerun4="sleep 1" ocs_live_run="ocs-sr -g auto -e1 auto -e2 -c -r -icds -j2 -k1 -p true restoredisk ask_user ask_user" ocs_live_extra_param="" ocs_live_batch=no vga=788 toram=filesystem.squashfs ip= net.ifnames=0 nosplash i915.blacklist=yes radeonhd.blacklist=yes nouveau.blacklist=yes vmwgfx.enable_fbdev=1
    TEXT HELP
    All the programs will be copied to RAM, so you can
    remove boot media (CD or USB flash drive) later
    ENDTEXT

    Now I want to do the same thing for UEFI. I have try to put the same setting in the grub.cfg file but the choice in the menu has completly disapear when I boot in the usb key!

    menuentry --hotkey=R "RESTORE SEPAQ (To RAM, boot media can be removed later)"{
    search --set -f /live/vmlinuz
    $linux_cmd /live/vmlinuz boot=live union=overlay username=user hostname=groovy config quiet components noswap edd=on nomodeset enforcing=0 locales= keyboard-layouts= ocs_live_run="ocs-live-general" ocs_live_extra_param="" ocs_prerun1="dhclient -v eth0" ocs_prerun2="sleep 2" ocs_prerun3="sudo mount -t cifs //10.26.168.64/infsup$/images /home/partimag -o user=clonezilla,domain=MYDOMAIN,password=MYPASSWORD" ocs_prerun4="sleep 1" ocs_live_batch="no" 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
    }
    ENDTEXT

    Can you help me??

     

    Last edit: Informatique Sepaq 2021-03-29
  • Steven Shiau

    Steven Shiau - 2021-03-28

    "the choice in the menu has completly disapear" -> What did you mean?
    BTW, your settings between syslinux.cfg and grub.cfg are different. Say, in grub.cfg, you did not put ocs-sr command in ocs_live_run.
    Are you sure that's what you want?

    Steven

     
    • Informatique Sepaq

      "the choice in the menu has completly disapear" -> What did you mean?

      I mean, when I boot on the usb key, I see the default clonezilla menu with many booting choice. But it doesn't show my custom entry....

       
  • Steven Shiau

    Steven Shiau - 2021-04-11

    No idea why it does not show. Which file did you edit? Please share the full file (/boot/grub/grub.cfg actually) so that we can try to diagnose that.

    Steven

     

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.