Menu

Use ocs_restoredisk_prerun option

Help
Sainthol
2024-09-26
2024-09-27
  • Sainthol

    Sainthol - 2024-09-26

    Hello,

    I am trying to run nwipe before restoring the disk on the client (clonezilla LS). I have set the ocs_restoredisk_prerun option but it is not taken into account when running on the client workstation. Here is my grub.cfg file:

    set pref=/boot/grub
    set default="0"
    set timeout="30"

    insmod efi_gop
    insmod efi_uga

    if [ x$feature_default_font_path = xy ] ; then
    font=unicode
    else
    font=$prefix/unifont.pf2
    fi

    if loadfont $font; then
    set gfxmode=auto
    insmod gfxterm

    set lang=en_US
    terminal_output gfxterm
    fi
    set hidden_timeout_quiet=false

    insmod png
    if background_image $pref/ocswp-grub2.png; then
    set color_normal=black/black
    set color_highlight=magenta/black
    else
    set color_normal=cyan/blue
    set color_highlight=white/blue
    fi

    set linux_cmd=linux
    set initrd_cmd=initrd
    export linux_cmd initrd_cmd

    insmod play
    play 960 440 1 0 4 440 1

    menuentry "Installation Windows Agent E595"{
    search --set -f /live/vmlinuz
    $linux_cmd /live/vmlinuz boot=live union=overlay username=user config components quiet loglevel=0 noswap edd=on nomodeset enforcing=0 locales= keyboard-layouts=fr ocs_prerun="mount /dev/sda1 /home/partimag/" ocs_restoredisk_prerun="/usr/sbin/nwipe" ocs_live_run="ocs-live-feed-img -cbm netboot -dm start-new-dhcpd -lscm massive-deployment -mdst from-image -g auto -e1 auto -e2 -r -x -j2 -k0 -sc0 -p reboot -md multicast --clients-to-wait 1 start Windows10_Agent_E595-img nvme0n1" ocs_live_extra_param="" ocs_live_batch="yes" vga=788 net.ifnames=0 nosplash i915.blacklist=yes radeonhd.blacklist=yes nouveau.blacklist=yes vmwgfx.enable_fbdev=1
    $initrd_cmd /live/initrd.img
    }

    menuentry "Clonezilla live (VGA 800x600)" --id live-default {
    search --set -f /live/vmlinuz
    $linux_cmd /live/vmlinuz boot=live union=overlay username=user config components quiet loglevel=0 noswap edd=on nomodeset enforcing=0 locales= keyboard-layouts=fr ocs_live_run="ocs-live-general" ocs_live_extra_param="" ocs_live_batch="no" vga=788 net.ifnames=0 nosplash i915.blacklist=yes radeonhd.blacklist=yes nouveau.blacklist=yes vmwgfx.enable_fbdev=1
    $initrd_cmd /live/initrd.img
    }

    menuentry "Clonezilla live (Failsafe mode)"{
    search --set -f /live/vmlinuz
    $linux_cmd /live/vmlinuz boot=live union=overlay username=user config components quiet loglevel=0 noswap edd=on nomodeset enforcing=0 locales= keyboard-layouts= ocs_live_run="ocs-live-general" ocs_live_extra_param="" ocs_live_batch="no" acpi=off irqpoll noapic noapm nodma nomce nolapic nosmp net.ifnames=0 nomodeset vga=normal nosplash
    $initrd_cmd /live/initrd.img
    }

     
  • Steven Shiau

    Steven Shiau - 2024-09-27

    Maybe you can take a video then share that? It would explain more so that we know the whole process you had, and the issue you encountered.

    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.