Changeset 449 in MondoRescue


Ignore:
Timestamp:
Mar 20, 2006, 11:41:31 PM (18 years ago)
Author:
bcornec
Message:

mindi.conf created and use in mindi + install.sh + rpm

Location:
branches/stable
Files:
1 added
3 edited
1 copied
1 moved

Legend:

Unmodified
Added
Removed
  • branches/stable/mindi/distributions/conf/mindi.conf

    r447 r449  
    1 # Mondorescue configuration file
     1# Mindi configuration file
    22#
    33# $Id$
    44#
    55# We tried to give sensible defaults in this file.
    6 # Changing some values may render mondorescue instable
     6# Changing some values may render mindi instable
    77# or cause failures. Use with care.
    8 
    9 
    10 #
    11 # ISO image CLI command to use
    12 # do not specify the -o, -c or the -b options, nor the directory to backup
    13 # as they will be generated by mondoarchive
    14 #
    15 iso_creation_cmd="/usr/bin/mkisofs"
    16 #iso_creation_cmd="/usr/bin/growisofs"
    17 
    18 #
    19 # ISO image common creation options (for mkisofs and growisofs)
    20 # do not specify the -o, -c or the -b options, nor the directory to backup
    21 #
    22 iso_creation_options="-J -r -p MondoRescue -publisher www.mondorescue.org -A Mondo_Rescue_GPL_Version -V _CD#_"
    23 #iso_creation_options="-use-the-force-luke -v  -J -r -p MondoRescue -publisher www.mondorescue.org -A Mondo_Rescue_GPL_Version -V _CD#_"
    24 
    25 #
    26 # ISO Burning CLI command to use
    27 #
    28 iso_burning_cmd="/usr/bin/cdrecord"
    29 
    30 #
    31 #  ISO Burning CLI command options
    32 iso_burning_options="-eject dev=%s speed=%d fs=24m"
    33 
    34 #
    35 # ISO Burning Speed
    36 #
    37 iso_burning_speed=1
    38 
    39 #
    40 # Default size of media
    41 #
    42 # Use 4380 for DVDs, 650 or 700 for CDs
    43 #
    44 media_size=4380
    45 
    46 #
    47 # Default device of media
    48 #
    49 # Use /dev/hdc, /dev/sr0, /dev/st0, ATAPI:0,0,0, ...
    50 #
    51 media_device="/dev/hdc"
    52 
    53 #
    54 # Is the CD tray manual ? (yes|no)
    55 #
    56 manual_tray=no
    578
    589#
    5910# Default log level
    6011#
    61 log_level=4
     12mindi_log_level=4
    6213
    6314#
    64 # prefix for ISO names
     15# Extra space for Ram disk
    6516#
    66 prefix=mondorescue
     17mindi_extra_space=24576
    6718
    6819#
    6920# Size of the boot image for ia64
    7021#
    71 ia64_boot_size=8192
     22mindi_ia64_boot_size=8192
    7223
    7324#
    74 # External tape blocksize
     25# deplist directory
    7526#
    76 external_tape_blocksize=131072
    77 
    78 #
    79 # Internal tape blocksize
    80 #
    81 internal_tape_blocksize=8192
    82 
    83 #
    84 # Size of the slices for biggiefiles
    85 #
    86 slice_size=4096
    87 
    88 #
    89 # deplist file used
    90 #
    91 deplist_file="/etc/mondorescue/deplist.txt"
     27mindi_deplist_dir="/etc/mindi/deplist.d"
    9228
    9329#
    9430# Write boot floppies (yes|no) ?
    9531#
    96 write_boot_floppy=no
     32mindi_write_boot_floppy="no"
     33
     34#
     35# Force dual floppies ?
     36#
     37mindi_dual_floppies="no"
    9738
    9839#
    9940# Write mindi CD (yes|no) ?
    10041#
    101 write_mindi_cd=no
     42mindi_write_mindi_cd="no"
    10243
    10344#
    10445# Kernel to use (NATIVE|FAILSAFE|PATH TO THE KERNEL)
    10546#
    106 mondorescue_kernel="NATIVE"
     47mindi_kernel="NATIVE"
    10748#mondorescue_kernel="/boot/vmlinuz.special"
    10849
     
    11152# (white space separated list of modules)
    11253#
    113 additional_modules=""
     54mindi_additional_modules=""
    11455
    11556#
     
    11758# (GRUB|ELILO|LILO|RAW|NATIVE)
    11859#
    119 boot_loader=NATIVE
     60mindi_boot_loader="NATIVE"
    12061
    12162#
    122 # Differential backup or full (yes|no)
     63# Images creation dir
    12364#
    124 differential=no
    125 
    126 #
    127 # Default compression tool
    128 #
    129 compression_tool="/usr/bin/bzip2"
    130 
    131 #
    132 # Default compression level
    133 #
    134 compression_level=3
    135 
    136 #
    137 # Paths to exclude from backup
    138 # (white space separated list of paths)
    139 #
    140 exclude_files=""
    141 
    142 #
    143 # Activate semi-graphical mode by default (yes|no)
    144 #
    145 text_mode=no
    146 
    147 #
    148 # Activate automatic restore (Use with caution) (yes|no)
    149 #
    150 automatic_restore=no
    151 
    152 #
    153 # Scratch directory
    154 #
    155 scratch_dir=""
    156 #scratch_dir="/tmp/mondo/scratch"
     65mindi_images_dir="/var/cache/mindi"
    15766
    15867#
    15968# Temporary directory
    16069#
    161 tmp_dir=""
    162 #tmp_dir="/tmp/mondo/tmp"
     70mindi_tmp_dir="/tmp"
    16371
    16472#
    165 # Images creation dir
     73# Floppy Disk Device
    16674#
    167 images_dir="/root/images/mindi"
     75mindi_fd_device="/dev/fd0"
  • branches/stable/mindi/distributions/rpm/mindi.spec

    r424 r449  
    6060%files
    6161%defattr(644,root,root,755)
    62 %config(noreplace) %{_sysconfdir}/mindi/deplist.txt
     62%config(noreplace) %{_sysconfdir}/mindi/deplist.txt %{_sysconfdir}/mindi/mindi.conf
    6363%doc ChangeLog INSTALL COPYING README TODO README.ia64 README.pxe README.busybox svn.log
    6464%{_mandir}/man8/*
    6565%{_libdir}/mindi
     66%attr(755,root,root) %{_sysconfdir}/mindi/mindi.conf
    6667%attr(755,root,root) %{_sbindir}/*
    6768%attr(755,root,root) %{_libdir}/mindi/aux-tools/sbin/*
  • branches/stable/mindi/install.sh

    r315 r449  
    4646install -m 644 isolinux.cfg msg-txt sys-disk.raw.gz isolinux-H.cfg syslinux.cfg syslinux-H.cfg dev.tgz $locallib/mindi
    4747install -m 644 deplist.txt $conf
     48install -m 644 distributions/conf/mindi.conf $conf
    4849
    4950cp -af rootfs aux-tools $locallib/mindi
     
    5152chmod 755 $locallib/mindi/rootfs/sbin/*
    5253chmod 755 $locallib/mindi/aux-tools/sbin/*
     54chmod 755 $conf/mindi.conf
    5355
    5456if [ "$RPMBUILDMINDI" = "true" ]; then
  • branches/stable/mindi/mindi

    r447 r449  
    3636MINDI_SBIN=${MINDI_PREFIX}/sbin
    3737
    38 
    3938if [ "$ARCH" = "x86_64" ] ; then
    4039    MINDI_LIB=${MINDI_PREFIX}/lib64/mindi
     
    4342fi
    4443
    45 EXTRA_SPACE=24576         ; # increase if you run out of ramdisk space
    46 IA64_BOOT_SIZE=8192       ; # size of the ia64 boot disk
    47 TMP_ROOT=/tmp
    48 WRITE_BOOT_FLOPPIES="yes" ; # do you want to be propted to write floppy images
     44MINDI_CONFIG="$MINDI_CONF/mindi.conf"
     45if [ ! -f $MINDI_CONFIG ]; then
     46    echo "No $MINDI_CONFIG file found using sensible values"
     47else
     48    . $MINDI_CONFIG
     49fi 
     50
     51#
     52# Manages defaults coming from conf files
     53#
     54if [ "$mindi_extra_space" == "" ]; then
     55    EXTRA_SPACE=24576
     56else
     57    EXTRA_SPACE=$mindi_extra_space
     58fi
     59if [ "$mindi_ia64_boot_size" == "" ]; then
     60    IA64_BOOT_SIZE=8192
     61else
     62    IA64_BOOT_SIZE=$mindi_ia64_boot_size
     63fi
     64
     65if [ "$mindi_deplist_dir" == "" ]; then
     66    DEPLIST_DIR="/etc/mindi/deplist.d"
     67else
     68    DEPLIST_DIR="$mindi_deplist_dir"
     69fi
     70if [ "$mindi_write_boot_floppy" == "" ]; then
     71    WRITE_BOOT_FLOPPIES="yes"
     72else
     73    WRITE_BOOT_FLOPPIES="$mindi_write_boot_floppy"
     74fi
     75if [ "$mindi_write_mindi_cd" == "" ]; then
     76    WRITE_BOOT_FLOPPIES="yes"
     77else
     78    WRITE_BOOT_FLOPPIES="$mindi_write_boot_floppy"
     79fi
     80if [ "$mindi_images_dir" == "" ]; then
     81    CACHE_LOC="/var/cache/mindi"
     82else
     83    CACHE_LOC="$mindi_images_dir"
     84fi
     85if [ "$mindi_dual_floppies" == "" ]; then
     86    FORCE_DUAL_FLOPPIES="/var/cache/mindi"
     87else
     88    FORCE_DUAL_FLOPPIES="$mindi_dual_floppies"
     89fi
     90if [ "$mindi_tmp_dir" == "" ]; then
     91    TMP_ROOT="/tmp"
     92else
     93    TMP_ROOT="$mindi_tmp_dir"
     94fi
     95if [ "$mindi_fd_device" == "" ]; then
     96    FDDEVICE="/dev/fd0"
     97else
     98    FDDEVICE="$mindi_fd_device"
     99fi
     100
     101# Other parameters
     102# Useless ??
    49103PROMPT_WRITE_BOOT_FLOPPIES="yes"
    50104    # do you want to be prompted to write
     
    60114    # you want to use your own kernel, or the supplied default.
    61115    # If "yes" mindi will automatically use your own kernel.
    62 MINDI_CONFIG="$MINDI_CONF/mindi.conf"
    63 if [ -f $MINDI_CONFIG ]; then
    64     . $MINDI_CONFIG
    65 fi
     116
    66117MY_FSTAB=/etc/fstab
    67118FLOPPY_MODS="ide-floppy floppy"
     
    77128EXTRA_MODS="$CDROM_MODS vfat fat loop linear raid0 raid1 raid5 lvm-mod dm-mod jfs xfs xfs_support pagebuf reiserfs ext2 ext3 minix nfs nfs_acl nfsd lockd sunrpc jbd"
    78129LOGFILE=/var/log/mindi.log
    79 FDDEVICE=/dev/fd0             ; # 1.44MB floppy #0
    80 CACHE_LOC=/var/cache/mondo-archive
    81 FORCE_DUAL_FLOPPIES=no
    82130
    83131BOOT_MEDIA_MESSAGE="\
     
    490538    my_partitions=`mount | fgrep $$ | cut -f1 -d' '`
    491539    [ "$my_partitions" != "" ] && umount $my_partitions
    492     [ "$TMP_ROOT" != "/tmp" ] && rm -Rf $TMP_ROOT
     540    # BCO : Too Dangerous !!!
     541    #[ "$TMP_ROOT" != "/tmp" ] && rm -Rf $TMP_ROOT
    493542    cd /tmp
    494543    mkdir -p mindi.err
Note: See TracChangeset for help on using the changeset viewer.