- Timestamp:
- Jan 5, 2016, 1:25:29 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.2/mindi/mindi
r3491 r3493 1499 1499 cp $kernelpath $MINDI_TMP/iso/vmlinuz 2>> $LOGFILE || Die "Cannot copy vmlinuz ($kernelpath) to mindi tmp ($MINDI_TMP/iso/vmlinuz). Did you run out of disk space?" 1500 1500 cp $MINDI_TMP/initrd.img $MINDI_TMP/iso/initrd.img 2>> $LOGFILE || Die "Cannot copy initrd.img ($MINDI_TMP/initrd.img) to $MINDI_TMP/iso/initrd.img. Did you run out of disk space?" 1501 if [ "$ARCH" != "ia64" ] ; then1502 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?"1503 fi1504 1501 1505 1502 # copy boot stuff now generated in PrepareDataDiskImage … … 1511 1508 tbc="boot" 1512 1509 fi 1510 if [ "$ARCH" != "ia64" ] ; then 1511 cp $ISOLINUX $MINDI_TMP/iso/$tbc/isolinux.bin 2>> $LOGFILE || Die "Cannot copy isolinux.bin ($ISOLINUX) to $MINDI_TMP/iso - did you run out of disk space?" 1512 fi 1513 1513 1514 1514 if [ _"$MONDO_SHARE" != _"" ]; then … … 1528 1528 cd "$MINDI_TMP/iso" 1529 1529 if [ "$ARCH" != "ia64" ] ; then 1530 cfgf=`find $MINDI_TMP/iso -name 'syslinux.cfg' | head -1` 1531 cfgf2=`echo $cfgf | sed 's/syslinux.cfg/isolinux.cfg/'` 1532 mv $cfgf $cfgf2 1533 # For isolinux boot, name the directory correctly as well as the conf file 1534 if [ -e "$MINDI_TMP/iso/boot" ]; then 1535 mv $MINDI_TMP/iso/boot $MINDI_TMP/iso/isolinux 1536 tbc="isolinux" 1537 fi 1530 1538 if [ _"$MONDO_SHARE" != _"" ]; then 1531 cp -rf $MINDI_TMP/iso/{initrd.img,vmlinuz,isolinux.bin,message.txt,boot*.txt,pxe.txt,$tbc} $MONDO_ROOT 2>> $LOGFILE || Die "Cannot copy core files to ramdisk for boot disk (under $MONDO_ROOT). Did you run out of disk space?" 1532 cfgf=`find $MINDI_TMP/iso -name 'isolinux.cfg' | head -1` 1533 if [ -e "$cfgf" ]; then 1534 cp $cfgf $MONDO_ROOT 2>> $LOGFILE || Die "Cannot copy $cfgf to $MONDO_ROOT. Did you run out of disk space?" 1535 fi 1539 cp -rf $MINDI_TMP/iso/{initrd.img,vmlinuz,message.txt,boot*.txt,pxe.txt,$tbc} $MONDO_ROOT 2>> $LOGFILE || Die "Cannot copy core files to ramdisk for boot disk (under $MONDO_ROOT). Did you run out of disk space?" 1536 1540 if [ $KERNEL_IS_XEN = "yes" ]; then 1537 1541 cp -f $MINDI_TMP/iso/xen.gz $MONDO_ROOT 2>> $LOGFILE || Die "Cannot copy Xen kernel to $MONDO_ROOT. Did you run out of disk space?" … … 1539 1543 cp -f $MONDO_SHARE/autorun $MINDI_TMP/iso 2>> $LOGFILE 1540 1544 fi 1541 CMD="$ISO_CMD -U $ISO_OPT -V Mindi_Image -o $MINDI_CACHE/mindi.iso -b isolinux.bin -cboot.cat -no-emul-boot -boot-load-size 4 -boot-info-table"1545 CMD="$ISO_CMD -U $ISO_OPT -V Mindi_Image -o $MINDI_CACHE/mindi.iso -b $tbc/isolinux.bin -c $tbc/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table" 1542 1546 else 1543 1547 CMD="$ISO_CMD $ISO_OPT -V Mindi_Image -o $MINDI_CACHE/mindi.iso -b images/mindi-bootroot.img -c images/boot.cat -no-emul-boot" … … 2578 2582 fi 2579 2583 done 2584 LogAll "Processing all dependencies of required files..." 2580 2585 for f in `cat $MINDI_TMP/minimal.lis` `sort -u $MINDI_TMP/minimal2.lis`; do 2581 2586 mr-read-all-link $f >> $MINDI_TMP/minimal.lis … … 2707 2712 2708 2713 # Management of perl scripts delivered needed at restore time 2709 Log It "INFO: Analyzing perl modules dependencies"2714 LogAll "Analyzing perl modules dependencies..." 2710 2715 mindi-get-perl-modules `cat $MINDI_CONF/perl-scripts` /usr/[s]*bin/mr-* 2> $templog > $MINDI_TMP/perl.lis || LogIt "ERROR: Problem in mindi-get-perl-modules" $templog 2711 2716 LogFile "DBG4: Perl Modules found:" … … 2745 2750 2746 2751 [ -e "$needed_modules_path" ] || LogIt "WARNING: path $needed_modules_path does not exist.\n If you're not using a modular kernel then mindi won't probably work." 2752 LogAll "Analyzing kernel modules dependencies..." 2747 2753 needed_modules=`mr-kernel-get-modules $mkgmopt $list_of_groovy_mods` 2748 2754
Note:
See TracChangeset
for help on using the changeset viewer.