Changeset 461 in MondoRescue for trunk/mindi


Ignore:
Timestamp:
Apr 4, 2006, 9:40:52 AM (18 years ago)
Author:
bcornec
Message:

merge -r447:460 $SVN_M/branches/stable

Location:
trunk/mindi
Files:
4 edited
1 copied

Legend:

Unmodified
Added
Removed
  • trunk/mindi/deplist.txt

    r322 r461  
    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'.
    11 # 6. All these worlds are yours except Europa. Attempt no landing there.
     10# 6. you can add also entries in a file inside the deplist.d subdirectory
    1211
    13 #------------------------- STUFF ADDED BY THE USER ----------------------------
    14 #---vvvv     vvvv     vvvv  list your stuff here!  vvvv     vvvv     vvvv
    15 #
    16 # bar
    17 # foo
    18 #
    19 #---^^^^     ^^^^     ^^^^  list your stuff here!  ^^^^     ^^^^     ^^^^
    20 #------------------------------------------------------------------------------
    21 
    22 #----- Covers a multitude of sins, including XFS, JFS, ReiserFS, and RAID -----
    23 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
    24 fsck fsck.ext2 fsck.reiserfs fsck.reiser fsck.xfs fsck.ext3 fsck.jfs badblocks
     12#----- Kept for compatibility -----
     13mkswapfs mkfs.swap mkfs.dos mkvfatfs mkfatfs mkfs.reiser mke3fs mkxfs mkjfs mkxfsfs mkjfsfs logdump logredo xchkdmp xchklog xpeek e2fsadm fsck.reiser
    2514
    2615#-------------------------------- ESSENTIAL -----------------------------------
    27 fstab raidtab modules.conf conf.modules mondorestore mt modules.conf.local
    28 afio star ntfsclone parted ms-sys file getfattr setfattr getfacl setfacl
    29 buffer
    30 awk gawk
    31 bzip2 bunzip2 lzop
    32 date ctrlaltdel
    33 dd
    34 eject
    35 grep ld-linux.so.2 ld-2.3.4.so
    36 hosts host.conf resolv.conf hosts.allow hosts.deny
    37 wc
    38 xargs
    39 gzip gunzip
    40 klogd sysklogd
    41 fdisk hdparm parted arch
    42 less less.bin less.dummy less.dupe less.hot.weather.in.texas.please
    43 loadkeys
    44 mount
    45 ping devfsd burnBX burnK6 burnK7 burnMMX burnP5 burnP6 lucifer tiobench tiotest bonnie++ mprime ide-smart
     16conf.modules modules.conf.local ms-sys
     17less.bin less.dummy less.dupe less.hot.weather.in.texas.please
     18burnBX burnK6 burnK7 burnMMX burnP5 burnP6 lucifer tiobench tiotest bonnie++ mprime ide-smart
    4619
    47 # ------------------------------- for X (Hugo) --------------------------------
    48 #tar
    49 #ldd lddlibc4
    50 #libXmu
    51 #libz
    52 #X
    53 #startx
    54 #xinitrc
    55 #xinit
    56 #/etc/X11/XF86Config
    57 #xauth
    58 #libXext
    59 # --- end of X stuff ---
    60 
    61 insmod insmod.static insmod.static.old lsmod
    62 
    63 #-------------------------- For mounting NFS volumes --------------------------
    64 ifconfig route /sbin/start-nfs
    65 #ifconfig host.conf resolv.conf ping ip portmap rpc.statd
    66 #rpc.lockd rpc.statd nfsstat rpc.nfsd rpc.mountd rpc.exportfs exportfs hosts exports hosts.allow hosts.deny showmount /etc/sysconfig/network /etc/sysconfig/network-scripts service usernetctl services protocols inetd inetd.conf /etc/rc.d ifup ifdown
    67 
    68 
     20insmod.static insmod.static.old
    6921
    7022#------------------------ Added for Stuart D. Gathman -------------------------
    7123#lc l lf netstat inetd tcpd in.telnetd route ldconfig ldd telnet rsh rcp services protocols rpc inetd.conf nsswitch.conf localtime security libresolv libutil libcrypt lbnss_compat libnss_files libnss_dns libpwdb libncurses
    7224
    73 
    74 
    75 #------------------------- Part of the Cuckoo Project -------------------------
    76 #mkisofs
    77 #cdrecord
    78 #losetup
    79 #fdformat
    80 #lilo grub
    81 #/usr/local/share/mondo
    82 #mondoarchive
    83 #mindi
    84 #/usr/local/share/mindi
    85 
    8625#----------------- For all you LVM users out there, much love -----------------
    8726LVMFILES:
    88 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
     27lvmiopversion  lvmcreate_initrd  pvdata
    8928#------------------------------------------------------------------------------
  • trunk/mindi/distributions/rpm/mindi.spec

    r426 r461  
    2121BuildRoot:  %{_tmppath}/%{name}-%{version}
    2222Requires:   %{addreq}
     23Epoch:      %(echo EEE | cut -d- -f1 | sed "s~M~~")
    2324# Not on all systems
    2425#Conflicts: bonnie++
     
    6061%files
    6162%defattr(644,root,root,755)
    62 %config(noreplace) %{_sysconfdir}/mindi/deplist.txt
     63%config(noreplace) %{_sysconfdir}/mindi/deplist.txt
     64%config(noreplace) %{_sysconfdir}/mindi/deplist.d/*
     65%config(noreplace) %{_sysconfdir}/mindi/mindi.conf
    6366%doc ChangeLog INSTALL COPYING README TODO README.ia64 README.pxe README.busybox svn.log
    6467%{_mandir}/man8/*
    6568%{_libdir}/mindi
     69%attr(755,root,root) %{_sysconfdir}/mindi/mindi.conf
    6670%attr(755,root,root) %{_sbindir}/*
    6771%attr(755,root,root) %{_libdir}/mindi/aux-tools/sbin/*
  • trunk/mindi/install.sh

    r317 r461  
    4141
    4242echo "Creating target directories ..."
    43 install -m 755 -d $conf $locallib/mindi $MANDIR $local/sbin $DOCDIR
     43install -m 755 -d $conf $conf/deplist.d $locallib/mindi $MANDIR $local/sbin $DOCDIR
    4444
    4545echo "Copying files ..."
    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/deplist.d/* $conf/deplist.d
     49install -m 755 distributions/conf/mindi.conf $conf
    4850
    4951cp -af rootfs aux-tools $locallib/mindi
     
    5153chmod 755 $locallib/mindi/rootfs/sbin/*
    5254chmod 755 $locallib/mindi/aux-tools/sbin/*
     55chmod 755 $conf/mindi.conf
    5356
    5457if [ "$RPMBUILDMINDI" = "true" ]; then
     
    109112fi
    110113
     114# Special case for SuSE family wher doc is put elsewhere in the RPM
     115if [ _"$dfam" != _"suse" ] then;
     116    rm -rf $DOCDIR
     117fi
     118
    111119exit 0
  • trunk/mindi/mindi

    r448 r461  
    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 prompted 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="$MINDI_CONF/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="\
     
    280328    biggienumber=$4
    281329
    282     [ -d "$filename" ] && Die "Cannot chop up $filename: it's a directory. Please amend deplist.txt accordingly."
     330    [ -d "$filename" ] && Die "Cannot chop up $filename: it's a directory. Please amend deplist file accordingly."
    283331    mkdir -p $outdir
    284332
     
    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
     
    826875    echo "$fname" >> $outfile.pre
    827876        cat $tempdepfile >> $outfile.pre
    828 #        echo "$fname ----> dependencies:-" >> $LOGFILE
    829 #        cat $tempdepfile | tr -s '/' '/' | sort -u >> $LOGFILE
    830 #        echo -en "(end of deplist of $fname)\n\n" >> $LOGFILE
    831877        rm -f $tempdepfile
    832878    progress=$(($progress+1))
     
    13151361    if [ -d "/proc/lvm" ] || [ -d "/dev/mapper" ]; then
    13161362    echo -en "\rAnalyzing LVM...\r"
    1317     all_partitions=`$MINDI_LIB/analyze-my-lvm | fgrep ">>>" | cut -d' ' -f2-32`
     1363    all_partitions=`$MINDI_SBIN/analyze-my-lvm | fgrep ">>>" | cut -d' ' -f2-32`
    13181364    fi
    13191365    all_partitions="$all_partitions `ListAllPartitions 2> /dev/null`"
     
    21202166    tardir=$TMP_ROOT/tardir
    21212167
    2122     lines=`grep -vx " *#.*" $MINDI_CONF/deplist.txt | grep -vx "" | wc -l`
    2123     cat $MINDI_CONF/deplist.txt | GenerateGiantDependencyList $needlist $lines
     2168    lines=`grep -vx " *#.*" $MINDI_CONF/deplist.txt $DEPLIST_DIR/* | grep -vx "" | wc -l`
     2169    cat $MINDI_CONF/deplist.txt $DEPLIST_DIR/* | GenerateGiantDependencyList $needlist $lines
    21242170    res=$?
    21252171    if [ "$YOUR_KERNEL_SUCKS" ]; then
     
    22212267    cp -f $TMP_ROOT/mountlist.txt $CACHE_LOC
    22222268    [ "`DidMondoCallMe`" ] && cp -f $minidir_root/$noof_disks/tmp/mountlist.txt $MONDO_TMP/.
    2223     [ -d "/proc/lvm" ] && $MINDI_LIB/analyze-my-lvm > $minidir_root/$noof_disks/tmp/i-want-my-lvm
    2224     [ -d "/dev/mapper" ] && $MINDI_LIB/analyze-my-lvm > $minidir_root/$noof_disks/tmp/i-want-my-lvm
     2269    [ -d "/proc/lvm" ] && $MINDI_SBIN/analyze-my-lvm > $minidir_root/$noof_disks/tmp/i-want-my-lvm
     2270    [ -d "/dev/mapper" ] && $MINDI_SBIN/analyze-my-lvm > $minidir_root/$noof_disks/tmp/i-want-my-lvm
    22252271    cat $minidir_root/$noof_disks/tmp/mountlist.txt >> $LOGFILE
    22262272    ZipMinidirsIntoTarballs $minidir_root $tardir $noof_disks
     
    29052951#----------------------------------- main -----------------------------------#
    29062952##############################################################################
    2907 
    2908 
    2909 #AWK=`which gawk`
    2910 #LocateDeps $1
    2911 #MakeModuleLoadingScript /tmp/load-modules.sh
    2912 #exit 0
    2913 
    2914 
    2915 #cat /etc/mindi/deplist.txt | GenerateGiantDependencyList /tmp/deplist.old 200
    2916 #exit 0
    2917 
    29182953
    29192954
Note: See TracChangeset for help on using the changeset viewer.