Changeset 3525 in MondoRescue for branches/3.2
- Timestamp:
- Mar 4, 2016, 12:14:33 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.2/mindi/mindi
r3524 r3525 2209 2209 fi 2210 2210 2211 # Here we need to know the ramdisk_size 2212 size_of_all_tools=`du -sk $bigdir | cut -f1` 2213 export ramdisk_size=$(($size_of_all_tools+$EXTRA_SPACE)) 2214 LogFile "INFO: Ramdisk will be $ramdisk_size KB" 2215 2211 2216 MakeBootConfFile $boottype > $bootconf 2212 2217 2213 2218 echo -en "INFO: Tarring and zipping the data content..." 2214 size_of_all_tools=`du -sk $bigdir | cut -f1`2215 2219 (cd "$bigdir" ; tar -b 4096 -cf - . 2>> $MINDI_TMP/$$.log | gzip -9 > $MINDI_CACHE/all.tar.gz || LogAll "ERROR: Problem creating all.tar.gz" $MINDI_TMP/$$.log) 2216 2220 LogFile "Size of the data content" … … 2596 2600 2597 2601 # For older distributions expecting /sbin/init provides it 2598 if [ ! -e " sbin/init" ]; then2602 if [ ! -e "$mountpoint/sbin/init" ]; then 2599 2603 (cd $mountpoint/sbin ; ln -sf ../usr/sbin/init .) 2600 2604 fi … … 2641 2645 done 2642 2646 lis="$lis $j" 2647 elif [ -d $i ]; then 2648 lis3="$lis3 $i" 2643 2649 elif [ -f $i ]; then 2644 2650 lis="$lis $i" … … 2666 2672 fi 2667 2673 done 2674 # But adds the directory useful for udev in $lis3 2668 2675 fnllist=`echo $finallist | tr ' ' '\n' | sort -u | tr '\n' ' '` 2669 2676 LogFile "INFO: Copying udev related files with cp -a --parents $fnllist -t $mountpoint/" 2670 cp -a --parents $fnllist -t $mountpoint/ 2> $templog || LogIt "ERROR: Problem in udev.lis analysis" $templog2677 cp -a --parents $fnllist $lis3 -t $mountpoint/ 2> $templog || LogIt "ERROR: Problem in udev.lis analysis" $templog 2671 2678 rm -f $MINDI_TMP/udev.lis 2672 2679 else … … 2864 2871 2865 2872 if [ "$res" -eq "0" ] ; then 2866 echo -en "\rINFO: MakeBootInitFile finished without error. \n"2873 LogAll "INFO: MakeBootInitFile finished without error." 2867 2874 else 2868 echo -en "\rWARNING: MakeBootInitFile exits WITH ERRORS. \n"2875 LogAll "WARNING: MakeBootInitFile exits WITH ERRORS." 2869 2876 fi 2870 2877 return 0 … … 3375 3382 PrepareDataDiskImages 3376 3383 3377 export ramdisk_size=$(($size_of_all_tools+$EXTRA_SPACE))3378 LogFile "INFO: Ramdisk will be $ramdisk_size KB"3379 3380 3384 MakeBootInitFile $MINDI_LIB/rootfs $MINDI_TMP/initrd.img `du -sk $kernelpath | cut -f1` || Die "Could not create initrd.img" 3381 3385
Note:
See TracChangeset
for help on using the changeset viewer.