Changeset 3795 in MondoRescue for branches/3.0
- Timestamp:
- Feb 15, 2024, 3:55:18 PM (2 months ago)
- Location:
- branches/3.0/mindi
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.0/mindi/deplist.d/minimal.conf
r3366 r3795 120 120 /etc/conf.modules 121 121 /etc/modules.conf.local 122 /etc/depmod.d/hpvsa.conf 122 123 # Debian 7 123 124 /bin/kmod -
branches/3.0/mindi/mindi
r3360 r3795 39 39 TMPDIR=/tmp 40 40 41 EXTRA_SPACE=1 20000 # increase if you run out of ramdisk space42 BOOT_SIZE= 65600 # size of the boot disk41 EXTRA_SPACE=140000 # increase if you run out of ramdisk space 42 BOOT_SIZE=75600 # size of the boot disk 43 43 44 44 PROMPT_MAKE_CD_IMAGE="yes" … … 221 221 trap SIGHUP SIGTERM SIGTRAP SIGINT 222 222 [ "$MINDI_CACHE" != "" ] && rm -f $MINDI_CACHE/mindi*img $MINDI_CACHE/*gz $MINDI_CACHE/mindi.iso 223 [ "$minidir_root" != "" ] && rm -Rf $minidir_root/*224 223 Die "User abort." 225 224 } … … 655 654 if [ -e "$MINDI_TMP/post-nuke.tgz" ] ; then 656 655 LogAll "\nINFO: Incorporating post-nuke tarball" 657 old_pwd=`pwd` 658 cd "$bigdir" 659 tar -zxf $MINDI_TMP/post-nuke.tgz 2>> $MINDI_TMP/$$.log || LogAll "ERROR: when untarring post-nuke tarball" $MINDI_TMP/$$.log 660 cd "$old_pwd" 656 (cd "$bigdir" ; tar -zxf $MINDI_TMP/post-nuke.tgz 2>> $MINDI_TMP/$$.log ) || LogAll "ERROR: when untarring post-nuke tarball" $MINDI_TMP/$$.log 661 657 fi 662 658 if cp -f $MINDI_TMP/mondo*restore $bigdir/usr/bin 2>> $LOGFILE ; then … … 1498 1494 1499 1495 OfferToMakeBootableISO() { 1500 local i old_pwd1496 local i 1501 1497 if [ -z "$ISO_CMD" ]; then 1502 1498 LogAll "ERROR: Neither mkisofs nor genisoimage found, unable to make CD image" … … 1553 1549 cp $ISOLINUX $MINDI_TMP/iso/isolinux.bin 2>> $LOGFILE || Die "Cannot copy isolinux.bin ($ISOLINUX) to $MINDI_TMP/iso - did you run out of disk space?" 1554 1550 fi 1555 old_pwd=`pwd`1556 cd "$MINDI_TMP/iso"1557 1551 if [ "$ARCH" != "ia64" ] ; then 1558 1552 if [ _"$MONDO_SHARE" != _"" ]; then … … 1566 1560 cp -f $MONDO_SHARE/autorun $MINDI_TMP/iso 2>> $LOGFILE 1567 1561 fi 1568 $ISO_CMD -U $ISO_OPT -V Mindi_Image -o $MINDI_CACHE/mindi.iso -b isolinux.bin -c boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table . > /dev/null 2> $MINDI_TMP/mkisofs.log1569 else 1570 $ISO_CMD $ISO_OPT -V Mindi_Image -o $MINDI_CACHE/mindi.iso -b images/mindi-bootroot.$BOOT_SIZE.img -c images/boot.cat -no-emul-boot . > /dev/null 2> $MINDI_TMP/mkisofs.log1562 (cd $MINDI_TMP/iso ; $ISO_CMD -U $ISO_OPT -V Mindi_Image -o $MINDI_CACHE/mindi.iso -b isolinux.bin -c boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table . > /dev/null 2> $MINDI_TMP/mkisofs.log) 1563 else 1564 (cd $MINDI_TMP/iso ; $ISO_CMD $ISO_OPT -V Mindi_Image -o $MINDI_CACHE/mindi.iso -b images/mindi-bootroot.$BOOT_SIZE.img -c images/boot.cat -no-emul-boot . > /dev/null 2> $MINDI_TMP/mkisofs.log) 1571 1565 fi 1572 1566 if [ "$?" -ne "0" ] ; then … … 1579 1573 fi 1580 1574 rm -f $MINDI_TMP/mkisofs.log 1581 cd "$old_pwd"1582 1575 } 1583 1576 … … 2601 2594 Die "ERROR: Unable to copy $f to the target dir. Check your installation or McAfee presence" 2602 2595 else 2603 cp -Rdf $f . 2>&1 >> $LOGFILE 2596 if [ -d $f ]; then 2597 # Allow to suport target dirs being a symlink 2598 td=`basename $f` 2599 if [ ! -e $td ]; then 2600 mkdir -p $td 2601 fi 2602 cp -Rdf $f/* $td 2>&1 >> $LOGFILE 2603 else 2604 cp -df $f . 2>&1 >> $LOGFILE 2605 fi 2604 2606 fi 2605 2607 done … … 2637 2639 if [ $? -eq 0 ]; then 2638 2640 # We want to use the real mount and all the supported variants (nfs, cifs, ...) 2639 rm -f bin/mount2641 rm -f $mountpoint/bin/mount 2640 2642 fi 2641 2643 … … 2686 2688 tar cf - -C / /etc/udev 2>> $MINDI_TMP/$$.log | tar xf - || LogIt "ERROR: Problem in /etc/udev analysis" $MINDI_TMP/$$.log 2687 2689 # This avoids NIC remapping if on another machine at restore time on Debian/Ubuntu at least 2688 rm -f ./etc/udev/rules.d/[z]*[0-9][0-9][-_]persistent-net.rules2690 rm -f $mountpoint/etc/udev/rules.d/[z]*[0-9][0-9][-_]persistent-net.rules 2689 2691 # Do not do it if it's a link (Ubuntu 64 bits #503) 2690 2692 if [ -e "/lib64/udev" ] && [ ! -h "/lib64" ] && [ ! -h "/lib64/udev" ]; then
Note:
See TracChangeset
for help on using the changeset viewer.