#=====================================================#
# How to make Original LiveCD/DVD with Make One Linux #
#=====================================================#

* Caution
  - install all necessary programs for Make One Linux before you start making
    LiveCD/DVD.
  - see Online Manual for more detail information.

* Process
  1.Preparation
    Make backups of all important files and delete them from your system.
    For example, deleting these files are recommended.
      * unnecessary accounts
      * backup files
      * cache, history, and cookie files about web browser etc.
    In addition to above, delete indivisual information as much as possible.
    It is easy for us to carry LiveCD/DVD, but it is also easy for thief to do.
    If you cannot delete it anyway, edit exclude-file.list to exclude it from
    your LiveCD/DVD. See next section for exclude-file.list detail.

  2.Edit Configuration Files
    In the case that you installed Make One Linux from rpm package,
    configuration files are in /etc/mol directory. There are the following
    files in this directory.
      * exclude-file.list
      * include-module.list
      * isolinux.cfg
      * molmake.conf
    This is the way to edit these files and the meaning of them.
      * exclude-file.list
        You can specify the files or directories that you want to exclude from
        your LiveCD/DVD by editing this file. If CD/DVD Media cannot hold your
        LiveCD/DVD system, edit this file and reduce the capacity.
        For example, if /opt, /usr/local, and /usr/src is unnecessary, then
        edit this file like this.
            /opt
            /usr/local
            /usr/src
      * include-module.list
        You can specify the kernel modules that you want to include in your
        LiveCD/DVD by editing this file. The necessary modules for booting are
        automatically included, so you don't have to include them with this
        file.
        For example, if foo.ko and bar.ko kernel modules are unnecessary,
        then edit this file like this.
            foo
            bar
      * isolinux.cfg
        Make One Linux uses ISOLINUX as boot loader. This is a ISOLINUX
        Configuration file. See ISOLINUX Document for more detail.
      * molmake.conf
        This is the configuration file for molmake script. You can configure
        the way of making your LiveCD/DVD by this file. The following
        environment variables are in this file.
          - KERNEL_RELEASE
              Specify linux kernel version name in this variable. Default value
              is current kernel version.
          - MOL_VERSION
              Specify the version number of Make One Linux.
          - BUILD_ROOT
              Specify work directory for molmake-initramfs, molmake-modules,
              and molmake-iso scripts in this variable. Default value is
              /tmp/molmake. Large image files will be created in this directory.
              So specify the directory which can afford to hold this image files.
          - ISODIR
              Specify the directory where ISO9660 image file is made by
              molmake-iso. ISO9660 image file will become very large, so
              specify the directory which can afford to hold this image file.
          - INITRAM_ROOTDIR
              Specify temporary root directory for initramfs.
          - MODULE_ROOTDIR
              Specify temporary root directory for compressed modules.
          - ISO_ROOTDIR
              Specify temporary root directory for iso9660 image.
          - LIVEDATA_ROOT
              Specify the directory in which files for LiveCD/DVD are saved.
          - EXEC_DATA
              Specify the directory in which executable files for LiveCD/DVD
              are saved.
          - PATCH_DATA
              Specify the directory in which patch files for LiveCD/DVD are
              saved.
          - REPLACE_DATA
              Specify the directory in which the files which need to be
              replaced with Base OS's ones are saved.
          - ISOLINUX_DATA
              Specify the directory in which isolinux bootloader's files are
              saved.
          - INSTALLER_DATA
              Specify the directory in which harddisk installer's files are
              saved.
          - ISOLINUXBIN
              Specify isolinux.bin file by full path.
          - ISOLINUXCFG
              Specify isolinux configuration file (isolinux.cfg) by full path.
          - INSTALL2WIN
              If you want to set install2win.bat in your CD/DVD, specify yes
              in this variable. By using install2win.bat script, you can
              install your LiveCD/DVD into Windows File System. Default value
              is yes.
          - INSTALL2LIN
              If you want to set install2lin.sh in your CD/DVD, specify yes
              in this variable. By using install2lin.sh script, you can
              install your LiveCD/DVD into Linux File System. Default value
              is yes.
          - IN_MOD_LIST
              Specify include-module.list file. If you installed Make One Linux
              with rpm package, default value is /etc/mol/include-module.list.
          - EX_FILE_LIST
              Specify exclude-file.list file. If you installed Make One Linux
              with rpm package, default value is /etc/mol/exclude-file.list.
          - MK_DEV_LIST
              Specify the list of files which are created under dev directory
              in initramfs. If you installed Make One Linux with rpm package,
              default value is /etc/mol/make-device.list.
          - PATCH_LISTDIR
              Specify the directory contained some list of patches which are
              applied to Base OS for live system. If you installed Make One
              Linux with rpm package, default value is /etc/mol/patch_list.
          - REPLACE_LISTDIR
              Specify the directory contained some list of files which are
              replaced with Base OS's files. If you installed Make One Linux
              with rpm package, default value is /etc/mol/replace_list.
          - MODULE_LISTDIR
              Specify the directory contained some list of the way to create
              compressed modules. If you installed Make One Linux with rpm
              package, default value is /etc/mol/module_list.
          - MKDIR_ON_INITRAM
              Specify the directories which will be created in initramfs.
          - MKLINK_ON_INITRAM
              Specify the symlinks which will be created in initramfs. The
              targets of these symlinks are the directories which are under
              /union in initramfs.
          - MKFILE_ON_INITRAM
              Specify the empty files which will be created in initramfs.
          - CPYCMD_ON_INITRAM
              Specify the executable files which will be copyed to initramfs.
              These executable files will be searched from PATH variable. If
              the specified files need shared libraries, then these libraries
              also will be copyed to initramfs.
          - MODULE_FS
              Specify filesystem of compressed modules.
          - ISO_SUFFIX
              Specify SUFFIX about ISO9660 image file and volume id. Default
              value is empty.
          - KERNEL
              Specify linux kernel used on Make One Linux.
          - INITRAM
              Specify initramfs used on Make One Linux.
          - MODULE_LIST, SCSI_MODULE_LIST, STORAGE_MODULE_LIST
              specify kernel modules which is necessary when booting Live
              CD/DVD.
          - HWSETUP
              Specify hwsetup-mol command. This valiable normally is specified
              in additional configuration file for molmake.conf which is
              installed by hwsetup-mol package.
          - DDCXINFO
              Specify ddcxinfo-mol command. This valiable normally is specified
              in additional configuration file for molmake.conf which is
              installed by ddcxinfo-mol package.
          - BUSYBOX
              Specify busybox-mol command. This valiable normally is specified
              in additional configuration file for molmake.conf which is
              installed by busybox-mol package.
          - XSETUP
              Specify xsetup-mol command. This valiable normally is specified
              in additional configuration file for molmake.conf which is
              installed by xsetup-mol package.

  3.Run molmake Script
    Run molmake script by root.
        $ su -
        Password:
        # molmake
    This script is a front-end of molmake-initramfs, molmake-modules, and
    molmake-iso scripts, and it can make ISO9660 image file for your
    LiveCD/DVD. This may take a while. When running this script, don't make
    large files because this script may not be able to make ISO9660 image
    correctly. If some error occures and interrupts this script, then run
    molmake script with --clean option to remove created files.
        # molmake --clean

  4.Write ISO9660 Image File
    ISO9660 image file is made in the directory which are specified in
    molmake.conf (default is /tmp/molmake directory). Write this image to
    CD/DVD, and making LiveCD/DVD is complete.

