Changeset 1047


Ignore:
Timestamp:
Jan 9, 2007, 2:03:37 AM (12 years ago)
Author:
bruno
Message:

Take mindi from trunk with configuration file and multiple deplist

Location:
branches/stable/mindi
Files:
14 added
4 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/mindi/deplist.txt

    r925 r1047  
    1 # Mindi-Linux's dependency list                                      07/10/2004
     1# Mindi-Linux's dependency list
    22#
    33# NB:
     
    55# 2. If you put 'libncurses' (w/o quotation marks) on an uncommented line then
    66#    Mindi will find /lib/libncurses* and include all matching files.
    7 # 3. You may give an absolute path if you think Mindi will have trouble finding
    8 #    the file on its own.
     7# 3. You have to give an absolute path
    98# 4. If you want to add something, just add it on its own line. K.I.S.S.
    109# 5. You must _not_ put a semicolon & comment after an entry. e.g. 'foo; #bar'.
    1110
    12 #------------------------- STUFF ADDED BY THE USER ----------------------------
    13 #---vvvv     vvvv     vvvv  list your stuff here!  vvvv     vvvv     vvvv
    14 #
    15 # bar
    16 # foo
    17 #
    18 #---^^^^     ^^^^     ^^^^  list your stuff here!  ^^^^     ^^^^     ^^^^
    19 #------------------------------------------------------------------------------
    20 
    21 #----- Covers a multitude of sins, including XFS, JFS, ReiserFS, and RAID -----
    22 mkfs mkswap mkswapfs mkfs.swap mkfs.ext2 mke2fs mkfs.vfat mkfs.dos mkdosfs mkvfatfs mkfatfs mkreiserfs mkfs.reiserfs mkfs.reiser mkfs.ext3 mke3fs mkfs.jfs mkfs.xfs mkxfs mkjfs mkxfsfs mkjfsfs logdump logredo xchkdmp xchklog xpeek mkpv mkraid raid0run raidhotadd raidhotremove raidsetfaulty raidstart raidstop e2label tune2fs e2fsadm mdadm
    23 fsck fsck.ext2 fsck.reiserfs fsck.reiser fsck.xfs fsck.ext3 fsck.jfs badblocks
     11#----- Kept for compatibility -----
     12mkswapfs mkfs.swap mkfs.dos mkvfatfs mkfatfs mkfs.reiser mke3fs mkxfs mkjfs mkxfsfs mkjfsfs logdump logredo xchkdmp xchklog xpeek e2fsadm fsck.reiser
    2413
    2514#-------------------------------- ESSENTIAL -----------------------------------
     
    4433#----------------- For all you LVM users out there, much love -----------------
    4534LVMFILES:
    46 lvmiopversion lvchange lvcreate lvdisplay lvextend lvmchange lvmcreate_initrd lvmdiskscan lvmsadc lvmsar lvreduce lvremove lvrename lvscan pvchange pvcreate pvdata pvdisplay pvmove pvscan vgcfgbackup vgcfgrestore vgchange vgck vgcreate vgdisplay vgexport vgextend vgimport vgmerge vgmknodes vgreduce vgremove vgrename vgscan vgsplit liblvm lvm lvm-10 /etc/lvm/lvm.conf
     35lvmiopversion  lvmcreate_initrd  pvdata
    4736#------------------------------------------------------------------------------
    4837#
  • branches/stable/mindi/distributions/rpm/mindi.spec

    r936 r1047  
    5757%defattr(-,root,root)
    5858%config(noreplace) %{_sysconfdir}/mindi/deplist.txt
     59%config(noreplace) %{_sysconfdir}/mindi/deplist.d/*
     60%config(noreplace) %{_sysconfdir}/mindi/mindi.conf
     61%config(noreplace) %{_sysconfdir}/mindi/mindi.conf.dist
    5962%doc ChangeLog INSTALL COPYING README TODO README.ia64 README.pxe README.busybox svn.log
    6063%{_mandir}/man8/*
  • branches/stable/mindi/install.sh

    r937 r1047  
    6868
    6969echo "Creating target directories ..."
    70 install -m 755 -d $conf $locallib/mindi $MANDIR $local/sbin $DOCDIR
     70install -m 755 -d $conf $conf/deplist.d $locallib/mindi $MANDIR $local/sbin $DOCDIR
    7171
    7272echo "Copying files ..."
    7373install -m 644 isolinux.cfg msg-txt sys-disk.raw.gz isolinux-H.cfg syslinux.cfg syslinux-H.cfg dev.tgz $locallib/mindi
    7474install -m 644 deplist.txt $conf
     75install -m 644 distributions/conf/deplist.d/* $conf/deplist.d
     76install -m 444 distributions/conf/mindi.conf.dist $conf
     77cat > $conf/mindi.conf << EOF
     78#
     79# Configuration file for mindi
     80#
     81# By default values are taken from $conf/mindi.conf.dist
     82# You can override them here
     83#
     84# e.g.
     85#
     86#mindi_tmp_dir="/var/tmp"
     87#
     88EOF
     89chmod 644 $conf/mindi.conf
    7590
    7691cp -af rootfs aux-tools $locallib/mindi
  • branches/stable/mindi/mindi

    r1044 r1047  
    1616ARCH=`/bin/arch`
    1717
    18 ADDITIONAL_BOOT_PARAMS="acpi=off apm=off devfs=nomount noresume selinux=0 barrier=off"
    19 
    2018#RUN_AFTER_INITIAL_BOOT_PHASE="echo \"Who lives in a pineapple under the sea?\" > /tmp/spongebob.squarepants.txt"
    2119    # after booting from floppy/CD image but before
     
    3735MINDI_LIB=LLL
    3836
    39 # Temporary directory for mindi
    40 TMPDIR=/tmp
    41 
    42 EXTRA_SPACE=24576         ; # increase if you run out of ramdisk space
    43 IA64_BOOT_SIZE=8192       ; # size of the ia64 boot disk
    44 WRITE_BOOT_FLOPPIES="yes" ; # do you want to be propted to write floppy images
    45 PROMPT_WRITE_BOOT_FLOPPIES="yes"
     37MINDI_CONFIG_DIST="$MINDI_CONF/mindi.conf.dist"
     38if [ ! -f $MINDI_CONFIG_CONF ]; then
     39    echo "Unable to find $MINDI_CONFIG_CONF. Please reinstall mindi"
     40    MindiExit -1
     41fi
     42. $MINDI_CONFIG_DIST
     43
     44MINDI_CONFIG="$MINDI_CONF/mindi.conf"
     45if [ ! -f $MINDI_CONFIG ]; then
     46    echo "No $MINDI_CONFIG file found using sensible values"
     47else
     48    echo "Using $MINDI_CONFIG as additional config file"
     49    . $MINDI_CONFIG
     50fi 
     51
     52#
     53# Manages defaults coming from conf files
     54#
     55EXTRA_SPACE=$mindi_extra_space
     56IA64_BOOT_SIZE=$mindi_ia64_boot_size
     57DEPLIST_DIR="$mindi_deplist_dir"
     58# TBC
     59WRITE_BOOT_FLOPPIES="$mindi_write_boot_floppy"
     60# TBC
     61WRITE_MINDI_CD="$mindi_write_cd"
     62# TBC
     63CACHE_LOC="$mindi_images_dir"
     64FORCE_DUAL_FLOPPIES="$mindi_dual_floppies"
     65TMPDIR="$mindi_tmp_dir"
     66FDDEVICE="$mindi_fd_device"
     67ADDITIONAL_BOOT_PARAMS="$mindi_boot_params"
     68MY_FSTAB="$mindi_etc_fstab"
     69LOGFILE="$mindi_log_file"
     70INTERACTIVE="$mindi_interactive"
     71
     72if [ $INTERACTIVE == "yes" ]; then
    4673    # do you want to be prompted to write
    4774    # floppy images out to floppy disks?
    4875    # if 'no', images will not be written to floppies
    49 
    50 PROMPT_MAKE_CD_IMAGE="yes"
     76    PROMPT_WRITE_BOOT_FLOPPIES="yes"
     77
    5178    # Ask if you want to make a CD Image to be written?
    5279    # if this is set to 'no', then the image will be created automatically
    53 
    54 USE_OWN_KERNEL="yes"
     80    PROMPT_MAKE_CD_IMAGE="yes"
     81
    5582    # If set to "no", you will be prompted for whether or not
    5683    # you want to use your own kernel, or the supplied default.
    5784    # If "yes" mindi will automatically use your own kernel.
    58 
    59 MY_FSTAB=/etc/fstab
     85    USE_OWN_KERNEL="no"
     86else
     87    PROMPT_WRITE_BOOT_FLOPPIES="no"
     88    PROMPT_MAKE_CD_IMAGE="no"
     89    USE_OWN_KERNEL="yes"
     90fi
     91
    6092FLOPPY_MODS="ide-floppy floppy"
    6193TAPE_MODS="ht st osst ide-tape ide_tape"
    6294SCSI_MODS="3w-xxxx 53c7,8xx a100u2w a320raid aacraid advansys aha152x aha1542 aha1740 aic79xx aic79xx_mod aic7xxx aic7xxx_mod aic7xxx_old AM53C974 atp870u BusLogic cciss cpqfc dmx3191d dpt_i2o dtc eata eata_dma eata_pio fdomain gdth g_NCR5380 i2o_block i2o_core ide-scsi ieee1394 imm in2000 initio ips iscsi isp megaraid mptbase mptscsih NCR53c406a ncr53c8xx nsp32 pas16 pci2000 pci2220i pcmcia ppa psi240i qla1280 qla2200 qla2300 qlogicfas qlogicfc qlogicisp raw1394 scsi_debug scsi_mod sd_mod seagate sg sim710 sr_mod sym53c416 sym53c8xx sym53c8xx_2 t128 tmscsim u14-34f ultrastor wd7000 vmhgfs"
    63 
    64 # ide-probe-mod
    6595IDE_MODS="ide ide-generic ide-detect ide-mod ide-disk ide-cd ide_cd ide-cs ide-core ide_core libata edd paride ata_piix libata via82cxxx generic nvidia ahci"
    6696PCMCIA_MODS="pcmcia_core ds yenta_socket"
     
    6898CDROM_MODS="$TAPE_MODS $FLOPPY_MODS $IDE_MODS af_packet cdrom isocd isofs inflate_fs nls_iso8859-1 nls_cp437 sg sr_mod zlib_inflate $USB_MODS $PCMCIA_MODS"
    6999NET_MODS="sunrpc nfs nfs_acl lockd loop mii 3c59x e100 bcm5700 bnx2 e1000 eepro100 ne2k-pci tg3 pcnet32 8139cp 8139too 8390 vmxnet vmnet"
     100NET_MODS="sunrpc nfs nfs_acl lockd loop mii 3c59x e100 bcm5700 bnx2 e1000 eepro100 ne2k-pci tg3 pcnet32 8139cp 8139too 8390 vmxnet vmnet"
    70101EXTRA_MODS="$CDROM_MODS vfat fat loop md-mod linear raid0 raid1 xor raid5 lvm-mod dm-mod dm-snapshot dm-zero dm-mirror jfs xfs xfs_support pagebuf reiserfs ext2 ext3 minix nfs nfs_acl nfsd lockd sunrpc jbd mbcache"
    71102
    72 LOGFILE=/var/log/mindi.log
    73 FDDEVICE=/dev/fd0             ; # 1.44MB floppy #0
    74 CACHE_LOC=/var/cache/mindi
    75 FORCE_DUAL_FLOPPIES=no
    76 BOOT_MEDIA_MESSAGE="\
    77 To format and restore all files automatically, type 'nuke' <enter>.\n\
    78 To restore some/all files interactively, type 'interactive' <enter>.\n\
    79 To compare the archives with your filesystem, type 'compare' <enter>.\n\
    80 To boot to a command-line prompt (expert mode), type 'expert' <enter>.\n\
    81 You may add one or more of the following parameters as well:-\n\n\
    82         donteject - mondorestore will not eject the CD; this is useful if, for\n\
    83                     instance, your PC's case has a concealed CD-ROM drive\n\
    84         noresize  - your mountlist will not be adjusted to use your unallocated\n\
    85                     hard disk space\n\
    86         textonly  - do not call any Newt library routines; this is unattractive\n\
    87                     but valuable if you find your Newt library has bugs in it\n\n\
    88 e.g. Type 'nuke donteject textonly' if you have an unstable Newt library and \n\
    89 a PC whose CD-ROM drive tray would be damaged if it unexpectedly ejected.\n\
    90 "
     103BOOT_MEDIA_MESSAGE="$mindi_boot_msg"
    91104FDISK=$MINDI_SBIN/parted2fdisk
    92105
     
    14861499
    14871500
    1488 
    14891501OfferToCopyImagesToDisks() {
    14901502    local imagesdir i imagename dev count boot_dev data_dev
     
    26592671
    26602672
     2673if [ "$1" = "-printvar" ] ; then
     2674    shift
     2675    if [ _"$1" != _"" ] ; then
     2676        set | egrep "^$1" | cut -d= -f2
     2677    fi
     2678    exit 0
     2679fi
     2680
    26612681> $LOGFILE
    26622682echo "mindi v$MINDI_VERSION" >> $LOGFILE
     
    29782998[ "$YOUR_KERNEL_SUCKS" ] && [ ! "$FAILSAFE_KVER" ] && Die "Please install mindi-kernel package. You need it.\nGo to http://www.mondorescue.org and download it, then install it."
    29792999
    2980 rm -f /var/cache/mindi/{*img,*gz,*iso}
     3000rm -f $CACHE_LOC/{*img,*gz,*iso}
    29813001
    29823002PrepareDataDiskImages $CACHE_LOC
     
    30213041    [ ! -e "$boot_dev" ] && mknod $boot_dev b 2 60
    30223042    [ ! -e "$boot_dev" ] && boot_dev=/dev/fd0H1722
    3023     [ ! -e "$boot_dev" ] && Die "Oh Lord, will you PLEASE tell the vendor to create the 1.72MB devices in /dev?"
     3043    [ ! -e "$boot_dev" ] && Die "Will you PLEASE tell your distribution maker to create the 1.72MB devices in /dev?"
    30243044    if [ "$PROMPT_WRITE_BOOT_FLOPPIES" = "yes" ]; then
    30253045        OfferToCopyImagesToDisks $CACHE_LOC $boot_dev $FDDEVICE
     
    30283048    LogIt "Finished."
    30293049elif [ "$TAPEDEV" ] ; then
    3030     mkdir -p /var/cache/mindi
    3031     rm -f /var/cache/mindi/{*img,*gz,*iso}
     3050    rm -f $CACHE_LOC/{*img,*gz,*iso}
    30323051    OfferToMakeBootableISO $CACHE_LOC
    30333052    if [ -e "$CACHE_LOC/all.tar.gz" ] ; then
Note: See TracChangeset for help on using the changeset viewer.