Changeset 3248 in MondoRescue
- Timestamp:
- Feb 26, 2014, 10:46:25 AM (11 years ago)
- Location:
- branches/3.2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.2/mindi/mindi
r3247 r3248 1858 1858 1859 1859 PrepareBootDiskImage_LILO() { 1860 local imagesdir dev imagefile mountpointfname i kernelpath cfg_file testpath options retval outstr old_pwd ooo max_kernel_size liloconf1860 local imagesdir dev imagefile fname i kernelpath cfg_file testpath options retval outstr old_pwd ooo max_kernel_size liloconf 1861 1861 imagesdir=$MINDI_CACHE 1862 1862 kernelpath=$1 … … 1870 1870 echo -en "..." 1871 1871 imagefile=$imagesdir/mindi-bootroot.$BOOT_SIZE.img 1872 mountpoint=$MINDI_TMP/mountpoint.$$1873 1872 mkdir -p $mountpoint 1874 1873 dd if=/dev/zero of=$imagefile bs=1k count=$BOOT_SIZE &> /dev/null || Die "Cannot dd blank file" … … 1968 1967 1969 1968 PrepareBootDiskImage_ISOLINUX() { 1970 local imagesdir dev imagefile mountpointfname i kernelpath cfg_file testpath options retval outstr old_pwd ooo max_kernel_size bootimage retval1969 local imagesdir dev imagefile fname i kernelpath cfg_file testpath options retval outstr old_pwd ooo max_kernel_size bootimage retval 1971 1970 imagesdir=$MINDI_CACHE 1972 1971 kernelpath=$1 … … 1980 1979 echo -en "..." 1981 1980 imagefile=$MINDI_TMP/mindi-bootroot.$BOOT_SIZE.img 1982 mountpoint=$MINDI_TMP/mountpoint.$$1983 1981 mkdir -p $mountpoint 1984 1982 dd if=/dev/zero of=$imagefile bs=1k count=$BOOT_SIZE &> /dev/null || Die "Cannot dd blank file" … … 2098 2096 mkdir -p $bigdir/usr/sbin 2099 2097 includefile=$MINDI_TMP/$$.includefile.txt 2100 2101 # Check whether /lib64 or /lib or /sbin or /bin is a link and if so explicitly create one in rootfs (Fedora 17 crazyness)2102 for d in bin sbin lib lib64; do2103 if [ -h "/$d" ]; then2104 thelink=`readlink /$d`2105 mkdir -p $mountpoint/$thelink || LogIt "ERROR: Unable to create $thelink in $mountpoint."2106 mv $mountpoint/$d/* $mountpoint/$d/.??* $mountpoint/$thelink 2> /dev/null2107 if [ -d "$mountpoint/$d" -a ! -h "$mountpoint/$d" ]; then2108 rmdir $mountpoint/$d2109 fi2110 if [ ! -h $mountpoint/$d ]; then2111 rm -f $mountpoint/$d 2> /dev/null2112 (cd $mountpoint ; ln -s $thelink $d) || LogIt "ERROR: /$d is a symbolic link, but I couldn't create it in $mountpoint."2113 fi2114 fi2115 done2116 2098 2117 2099 lfiles=`ls $DEPLIST_DIR/* | grep -v /minimal` … … 2343 2325 if [ "$?" -eq "0" ] ; then 2344 2326 # Used by ia64 2345 fkern_ver=`gzip -cd $fname | strings 2> /dev/null | grep "[2-9]+*[.][0-9]+*[.][0-9]+*[^\@]*@"`2327 fkern_ver=`gzip -cd $fname | strings 2> /dev/null | grep -E "[2-9]+\.[0-9]+\.[0-9]+[^\@]*@"` 2346 2328 else 2347 fkern_ver=`strings $fname 2> /dev/null | grep "[2-9]+*[.][0-9]+*[.][0-9]+*[^\@]*@"`2329 fkern_ver=`strings $fname 2> /dev/null | grep -E "[2-9]+\.[0-9]+\.[0-9]+[^\@]*@"` 2348 2330 fi 2349 2331 echo "$fkern_ver" … … 2495 2477 2496 2478 TurnTgzIntoRdz() { 2497 local tgz_dir_fname rdz_fname tempfile mountpoint old_pwd nodes kernelsize maxsize res currsize not_copied j k s w needed_modules_path2479 local tgz_dir_fname rdz_fname tempfile old_pwd nodes kernelsize maxsize res currsize not_copied j k s w needed_modules_path d thelink 2498 2480 2499 2481 tgz_dir_fname=$1 … … 2503 2485 maxsize=$(($maxsize*2)); # to allow for compression of 50% 2504 2486 tempfile=$MINDI_TMP/temp.rd 2505 mountpoint=$MINDI_TMP/mnt12506 2487 res=0 2507 2488 echo -en "..." … … 2517 2498 cd "$mountpoint" 2518 2499 2500 # Check whether /lib64 or /lib or /sbin or /bin is a link and if so explicitly create one in rootfs (Fedora 17 crazyness) 2501 for d in bin sbin lib lib64; do 2502 if [ -h "/$d" ]; then 2503 thelink=`readlink /$d` 2504 mkdir -p $mountpoint/$thelink || LogIt "ERROR: Unable to create $thelink in $mountpoint." 2505 mv $mountpoint/$d/* $mountpoint/$d/.??* $mountpoint/$thelink 2> /dev/null 2506 if [ -d "$mountpoint/$d" -a ! -h "$mountpoint/$d" ]; then 2507 rmdir $mountpoint/$d 2508 fi 2509 if [ ! -h $mountpoint/$d ]; then 2510 rm -f $mountpoint/$d 2> /dev/null 2511 (cd $mountpoint ; ln -s $thelink $d) || LogIt "ERROR: /$d is a symbolic link, but I couldn't create it in $mountpoint." 2512 fi 2513 fi 2514 done 2515 LogFile "INFO: what is now in $mountpoint" 2516 ls -alR $mountpoint >> $LOGFILE 2519 2517 2520 2518 # Check files before copying to discover configuration issues or McAfee preventing mindi reading these files … … 3334 3332 [ "$(($RANDOM%64))" -eq "0" ] && LogIt "INFO: Dude, I've looked inside your computer and it's really dusty..." 3335 3333 3334 mountpoint=$MINDI_TMP/mountpoint.$$ 3336 3335 PrepareDataDiskImages 3337 3336 -
branches/3.2/mondo-doc/mondoarchive.8
r3225 r3248 307 307 that afio is not free enough due to its age and old licenses (wrongly in our 308 308 opinion). Star can be used to have a better support of sparse file compared to 309 afio. Also star supports natively POSIX ACLs, where 309 afio. Also star supports natively POSIX ACLs, whereas afio requires a special 310 310 additional handlling. 311 311
Note:
See TracChangeset
for help on using the changeset viewer.