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

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.