- Timestamp:
- Mar 17, 2010, 3:55:40 AM (15 years ago)
- Location:
- branches/2.2.10
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.10/mindi/mindi
r2597 r2598 1361 1361 cp -f $j $MINDI_TMP 2>> $LOGFILE || Die "Failed to copy $j to $MINDI_TMP" 1362 1362 if [ _"$MONDO_SHARE" != _"" ]; then 1363 cp -f $j $MONDO_ ROOT 2>> $LOGFILE || Die "Failed to copy $j to $MONDO_ROOT"1363 cp -f $j $MONDO_CACHE 2>> $LOGFILE || Die "Failed to copy $j to $MONDO_CACHE" 1364 1364 fi 1365 1365 fi … … 1369 1369 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?" 1370 1370 if [ _"$MONDO_SHARE" != _"" ]; then 1371 cp $kernelpath $MONDO_ ROOT/vmlinuz 2>> $LOGFILE || Die "Cannot copy vmlinuz ($kernelpath) to mondo root ($MONDO_ROOT/vmlinuz). Did you run out of disk space?"1372 cp $MINDI_TMP/initrd.img $MONDO_ ROOT/initrd.img 2>> $LOGFILE || Die "Cannot copy initrd.img ($MINDI_TMP/initrd.img) to $MONDO_ROOT/initrd.img. Did you run out of disk space?"1371 cp $kernelpath $MONDO_CACHE/vmlinuz 2>> $LOGFILE || Die "Cannot copy vmlinuz ($kernelpath) to mondo root ($MONDO_CACHE/vmlinuz). Did you run out of disk space?" 1372 cp $MINDI_TMP/initrd.img $MONDO_CACHE/initrd.img 2>> $LOGFILE || Die "Cannot copy initrd.img ($MINDI_TMP/initrd.img) to $MONDO_CACHE/initrd.img. Did you run out of disk space?" 1373 1373 fi 1374 1374 MakeBootConfFile isolinux > $MINDI_TMP/iso/isolinux.cfg … … 1380 1380 if [ "$ARCH" != "ia64" ] ; then 1381 1381 if [ _"$MONDO_SHARE" != _"" ]; then 1382 cp -f $MINDI_TMP/iso/{isolinux.cfg,initrd.img,vmlinuz,isolinux.bin,message.txt} $MONDO_ ROOT 2>> $LOGFILE || Die "Cannot copy core files to ramdisk for boot disk (under $MONDO_ROOT). Did you run out of disk space?"1382 cp -f $MINDI_TMP/iso/{isolinux.cfg,initrd.img,vmlinuz,isolinux.bin,message.txt} $MONDO_CACHE 2>> $LOGFILE || Die "Cannot copy core files to ramdisk for boot disk (under $MONDO_CACHE). Did you run out of disk space?" 1383 1383 cp -f $MONDO_SHARE/autorun $MINDI_TMP/iso 2>> $LOGFILE 1384 1384 fi … … 2448 2448 DONE="\r\t\t\t\t\t\t\t\tDone. " 2449 2449 kernelpath="" 2450 MONDO_ROOT=/var/cache/mondo2451 mkdir -p $MONDO_ROOT2452 2450 2453 2451 if [ -d "/proc/lvm" ]; then … … 2619 2617 mkdir -p $MINDI_TMP 2620 2618 2621 # This is the scratch dir in mondo - subdir images 2622 MINDI_CACHE=$3 2619 # This is the scratch dir in mondo - subdir images 2620 # Now useless 2621 #MINDI_CACHE=$3 2623 2622 2624 2623 kernelpath=$4; [ "$kernelpath" = "(null)" ] && kernelpath="" … … 2679 2678 LogAll "Using modules for kernel: ${kernelname}" 2680 2679 fi 2681 # MONDO_ROOT is the real scratchdir 2682 MONDO_ROOT=`echo $MINDI_CACHE | sed 's/\(.*\)\/.*/\1/'` 2683 if [ _"$MONDO_ROOT" != _"" ]; then 2684 mkdir -p $MONDO_ROOT 2685 else 2686 Die "MONDO_ROOT is undefined" 2687 fi 2680 2681 MONDO_CACHE=/var/cache/mondo 2682 mkdir -p $MONDO_CACHE 2688 2683 else 2689 2684 LogScreen "Syntax: mindi (--custom ....)" -
branches/2.2.10/mondo/src/common/libmondo-archive.c
r2595 r2598 839 839 if (!res) { 840 840 log_to_screen("Boot+data disks were created OK"); 841 mr_asprintf(command, "cp -f %s/images/mindi.iso %s/mondorescue.iso", bkpinfo->scratchdir, MINDI_CACHE);841 mr_asprintf(command, "cp -f /%s/images/mindi.iso %s/mondorescue.iso", MINDI_CACHE_REL, MINDI_CACHE); 842 842 log_msg(2, command); 843 843 run_program_and_log_output(command, FALSE); … … 858 858 mr_free(command); 859 859 } else { 860 mr_asprintf(tmp, "cp -f %s/images/all.tar.gz %s", bkpinfo->scratchdir, bkpinfo->tmpdir);860 mr_asprintf(tmp, "cp -f /%s/all.tar.gz %s", MINDI_CACHE_REL, bkpinfo->tmpdir); 861 861 if (system(tmp)) { 862 862 mr_free(tmp); … … 1582 1582 char *message_to_screen = NULL; 1583 1583 char *sz_blank_disk = NULL; 1584 char *tmp2 = NULL;1585 char *tmp3 = NULL;1586 1584 char *mds = NULL; 1587 1585 bool cd_is_mountable; … … 1591 1589 assert_string_is_neither_NULL_nor_zerolength(destfile); 1592 1590 1593 mr_asprintf(tmp, "%s/isolinux.bin", bkpinfo->scratchdir); 1594 mr_asprintf(tmp2, "%s/isolinux.bin", bkpinfo->tmpdir); 1595 if (does_file_exist(tmp)) { 1596 mr_asprintf(tmp3, "cp -f %s %s", tmp, tmp2); 1597 paranoid_system(tmp3); 1598 mr_free(tmp3); 1599 } 1600 if (!does_file_exist(tmp) && does_file_exist(tmp2)) { 1601 mr_asprintf(tmp3, "cp -f %s %s", tmp2, tmp); 1602 paranoid_system(tmp3); 1603 mr_free(tmp3); 1604 } 1605 mr_free(tmp2); 1591 /* Copy the files needed by isolinux in the right dir */ 1592 mr_asprintf(tmp, "mv "MONDO_CACHE"/{isolinux.cfg,isolinux.bin,message.txt,vmlinuz,initrd.img} %s", bkpinfo->scratchdir); 1593 paranoid_system(tmp); 1606 1594 mr_free(tmp); 1607 1595
Note:
See TracChangeset
for help on using the changeset viewer.