Changeset 2704 in MondoRescue for branches/2.2.10/mindi/mindi
- Timestamp:
- Jan 27, 2011, 7:31:24 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.10/mindi/mindi
r2696 r2704 1413 1413 if [ "$ARCH" != "ia64" ] ; then 1414 1414 if [ _"$MONDO_SHARE" != _"" ]; then 1415 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?"1415 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?" 1416 1416 if [ $KERNEL_IS_XEN = "yes" ]; then 1417 cp -f $MINDI_TMP/iso/{mboot.c32,xen.gz} $MONDO_ ROOT 2>> $LOGFILE || Die "Cannot copy Xen core files to ramdisk for boot disk (under $MONDO_ROOT). Did you run out of disk space?"1417 cp -f $MINDI_TMP/iso/{mboot.c32,xen.gz} $MONDO_CACHE 2>> $LOGFILE || Die "Cannot copy Xen core files to ramdisk for boot disk (under $MONDO_CACHE). Did you run out of disk space?" 1418 1418 fi 1419 1419 cp -f $MONDO_SHARE/autorun $MINDI_TMP/iso 2>> $LOGFILE … … 2311 2311 done 2312 2312 2313 rm -f $MINDI_TMP/ungzip.lis2314 2313 for i in `echo $needed_modules | tr ' ' '\n' | sort -u`; do 2315 2314 grep -qE '^$i$' $MINDI_TMP/cp.lis … … 2318 2317 LogFile "Adding $i ($s KB) to the rootfs" 2319 2318 echo $i >> $MINDI_TMP/cp.lis 2320 2321 # Uncompress modules if not using udev and native modprobe2322 if [ ! -f $mountpoint/tmp/USE-UDEV ]; then2323 if [ "`echo "$i" | grep -F ".gz"`" ]; then2324 echo "$i" >> $MINDI_TMP/ungzip.lis2325 fi2326 fi2327 2319 fi 2328 2320 done … … 2340 2332 # Copy FW in case some drivers needs it 2341 2333 if [ -d "/lib/firmware" ]; then 2342 cp -rp /lib/firmware $mountpoint/lib 2334 echo "lib/firmware" >> $MINDI_TMP/mkdir.lis 2335 echo "/lib/firmware" >> $MINDI_TMP/cp.lis 2343 2336 fi 2344 2337 … … 2380 2373 # Then copy files needed 2381 2374 LANGUAGE=C tar cf - `cat $MINDI_TMP/cp.lis` 2> /dev/null | (cd $mountpoint ; tar xf - ) 2>&1 | grep -Ev "tar: Removing.*/\'" >> $LOGFILE 2382 2383 # Uncompress modules if not using udev and native modprobe2384 for f in `cat $MINDI_TMP/ungzip.lis`; do2385 echo "Uncompressing $f" >> $LOGFILE2386 gunzip -f $mountpoint/$f2387 done2388 rm -f $MINDI_TMP/ungzip.lis2389 2375 2390 2376 # Then handle links … … 2490 2476 LogFile "Start date : `date`" 2491 2477 LogFile "-----------------------------" 2492 2493 # TODO: Remove that2494 [ -e "/sbin/mkdosfs" ] && [ ! -e "/sbin/mkfs.vfat" ] && ln -sf /sbin/mkdosfs /sbin/mkfs.vfat2495 2478 2496 2479 # Log some capital variables … … 2630 2613 LogFile "-------------" 2631 2614 LogFile "Liste of extra modules is:" 2615 LogFile "-------------" 2632 2616 LogFile "$EXTRA_MODS" 2633 2617 LogFile "-------------" … … 2718 2702 Die "MONDO_TMP is /, aborting" 2719 2703 fi 2720 mv $MINDI_TMP/* $MINDI_TMP/.??* $MONDO_TMP 2>> $LOGFILE2721 2704 rmdir $MINDI_TMP 2722 2705 export MINDI_TMP=$MONDO_TMP
Note:
See TracChangeset
for help on using the changeset viewer.