DRBL logo Clonezilla Live Doc DRBL logo
Print all this session
Add extra driver : How to put your own binary driver in Clonezilla live without modifying /live/filesystem.squashfs
  1. How to put your own binary driver in Clonezilla live without modifying /live/filesystem.squashfs
How to put your own binary driver in Clonezilla live without modifying /live/filesystem.squashfs
  • Boot clonezilla live
  • Become root by running "sudo su -"
  • Copy the dir lsi, which contains a precompiled kernel module matching the running kernel in Clonezilla live and a script to run it, to a working dir, e.g.:
    cp -r /live/image/lsi /home/partimag
  • cd /home/partimag
  • /opt/drbl/sbin/ocs-live-dev -c -s -i lsi -u lsi -x "ocs_prerun=/live/image/lsi/prep-lsi.sh"
  • /opt/drbl/sbin/ocs-iso -s -i lsi -u lsi -x "ocs_prerun=/live/image/lsi/prep-lsi.sh"
  • ///NOTE/// In this example, the 2 files in dir lsi are: megasr.ko (the binary driver) and prep-lsi.sh. The contents of prep-lsi.sh:
    ------------------------
    #!/bin/bash
    cp -f /live/image/lsi/megasr.ko /lib/modules/`uname -r`/kernel/drivers/block/
    chown root.root /lib/modules/`uname -r`/kernel/drivers/block/megasr.ko
    depmod -a modprobe megasr
    sleep 1
    ------------------------
    

    For more boot parameters, please refer to this doc.

    Print this page


Last modified: June 03 2009 04:45:30.

NCHC Free Software Lab. All Rights Reserved. Anyone is permitted to copy and distribute verbatim copies of this document under the terms of the GNU FDL Free Documentation License.