Changeset 3257 in MondoRescue
- Timestamp:
- Mar 6, 2014, 11:24:24 AM (11 years ago)
- Location:
- branches/3.2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.2/MondoRescue/lib/MondoRescue/Kernel.pm
r3254 r3257 94 94 next if (/^Module/); 95 95 ($module, $void) = split(/ /); 96 p rint "***$module***|***$void***\n";96 pb_log(2,"***$module***|***$void***\n"); 97 97 push @alllivemodules,$module; 98 98 } -
branches/3.2/mindi/mindi
r3255 r3257 388 388 LogFile "INFO: Red Hat-style config detected." 389 389 keyfile=/etc/sysconfig/keyboard 390 elif [ -e "/etc/vconsole.conf" ] ; then 391 LogFile "INFO: New Fedora style config detected." 392 keyfile=/etc/vconsole.conf 390 393 elif [ -e "/etc/rc.d/rc.keymap" ] ; then 391 394 LogFile "INFO: Slackware-style config detected." … … 446 449 locale=`grep -F KEYTABLE "$keyfile" | grep -v '^#' | tr -d '"' |cut -d'=' -f2 | sed 's/.map.gz$//'` 447 450 [ ! "$locale" ] && locale=`grep '.map$' "$keyfile" | sed 's/^.* //'` # Slackware 448 [ ! "$locale" ] && locale=`grep -E '^KEYMAP=' "$keyfile" | grep -v '^#' | tr -d '"' |cut -d'=' -f2` # Gentoo & ArchLinux451 [ ! "$locale" ] && locale=`grep -E '^KEYMAP=' "$keyfile" | grep -v '^#' | tr -d '"' |cut -d'=' -f2` # Gentoo, ArchLinux & New fedora 449 452 [ ! "$locale" ] && locale=`grep -E 'XkbLayout' "$keyfile" | grep -v '^#' | awk '{print $3}' | tr -d '"'` # Fedora 19 450 453 LogFile "INFO: locale=$locale" … … 711 714 local lcMagicExt2fs="EXT2-fs: blocksize too small for device." 712 715 local lcMagicExt3fs="<3>EXT3-fs: blocksize too small for journal device." 713 local lcMagicInitfs="<6>checking if image is initramfs...|[<] 6[>]Unpacking initramfs...|<6>Trying to unpack rootfs image as initramfs"716 local lcMagicInitfs="<6>checking if image is initramfs...|[<]*6[>]*Unpacking initramfs...|<6>Trying to unpack rootfs image as initramfs" 714 717 715 718 # local variables … … 2622 2625 echo "$i" >> $MINDI_TMP/udev.lis 2623 2626 done 2627 finallist="" 2628 # Remove directories from the list, as tar/cp will create them anyway 2629 # and it may hurt if /lib is in it as on Debian/Ubuntu 2630 # recent bash says that -d is true for a link to a dir ! 2631 for f in `sort -u $MINDI_TMP/udev.lis`; do 2632 if [ -e $f -a ! -d $f ] || [ -h $f ]; then 2633 finallist="$finallist $f" 2634 fi 2635 done 2624 2636 #tar cf - -C / $lis `sort -u $MINDI_TMP/udev.lis` 2>> $MINDI_TMP/$$.log | tar xf - || LogIt "ERROR: Problem in udev.lis analysis" $MINDI_TMP/$$.log 2625 echo "cp -a -n --parents `sort -u $MINDI_TMP/udev.lis`-t $mountpoint/" 2>&1 >> $MINDI_TMP/$$.log2626 cp -a -n --parents `sort -u $MINDI_TMP/udev.lis`-t $mountpoint/ 2>> $MINDI_TMP/$$.log || LogIt "ERROR: Problem in udev.lis analysis" $MINDI_TMP/$$.log2637 echo "cp -a -n --parents $finallist -t $mountpoint/" 2>&1 >> $MINDI_TMP/$$.log 2638 cp -a -n --parents $finallist -t $mountpoint/ 2>> $MINDI_TMP/$$.log || LogIt "ERROR: Problem in udev.lis analysis" $MINDI_TMP/$$.log 2627 2639 rm -f $MINDI_TMP/udev.lis 2628 2640 else … … 2681 2693 if [ "${kernelname}" != "" ]; then 2682 2694 needed_modules_path=lib/modules/${kernelname} 2683 mkgmopt="-k $ needed_modules_path"2695 mkgmopt="-k ${kernelname}" 2684 2696 else 2685 2697 needed_modules_path=lib/modules/$KERVERRUN … … 2690 2702 needed_modules=`mr-kernel-get-modules $mkgmopt $list_of_groovy_mods` 2691 2703 2692 LogFile "INFO: Adding $needed_modules to the rootfs "2704 LogFile "INFO: Adding $needed_modules to the rootfs with $mkgmopt" 2693 2705 cp --parents -aL $needed_modules $mountpoint/ 2>> $MINDI_TMP/$$.log || LogIt "ERROR: Unable to copy modules to $mountpoint" $MINDI_TMP/$$.log 2694 2706
Note:
See TracChangeset
for help on using the changeset viewer.