Changeset 2603 in MondoRescue for branches/2.2.10/mindi/rootfs/sbin
- Timestamp:
- Mar 22, 2010, 1:56:30 PM (15 years ago)
- Location:
- branches/2.2.10/mindi/rootfs/sbin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.10/mindi/rootfs/sbin/hack-cfg-if-necessary
r2591 r2603 17 17 18 18 if [ -f $MINDI_CACHE/mondorestore.cfg ]; then 19 if [ ! grep "backup-media-type iso" $MINDI_CACHE/mondorestore.cfg 2 > /dev/null] ; then 19 grep -q "backup-media-type iso" $MINDI_CACHE/mondorestore.cfg 2> /dev/null 20 if [ $? -ne 0 ] ; then 20 21 LogIt "Config file is fine, BTW." 21 22 exit 0 22 23 fi 23 fi24 25 if [ -f $MINDI_CACHE/mondorestore.cfg ]; then26 24 LogIt "Re-jigging mondorestore.cfg because you backed up to ISOs and then burned them to CDs" 1 27 25 sed -i 's/backup-media-type iso/backup-media-type cdr/' $MINDI_CACHE/mondorestore.cfg -
branches/2.2.10/mindi/rootfs/sbin/init
r2597 r2603 91 91 openvt -l /bin/sh /sbin/wait-for-petris 92 92 openvt -l /usr/bin/tail -f $LOGFILE 93 serial="/foo" 93 94 # By default first serial line is configured as tty 94 95 # Required to have a correct serial console support (MP on ia64 or VSP with iLO2 e.g.) 95 for i in `cat /proc/cmdline` ; do96 for i in `cat $CMDLINE` ; do 96 97 echo $i | grep -qi serial= && serial=`echo $i | cut -d= -f2` 97 98 done … … 376 377 377 378 StartLvms() { 378 if [ "`grep -i nolvm /proc/cmdline`" ]; then379 if [ "`grep -i nolvm $CMDLINE`" ]; then 379 380 return; 380 381 fi … … 497 498 local raid_devices i 498 499 499 if [ "`grep -i noraid /proc/cmdline`" ]; then500 if [ "`grep -i noraid $CMDLINE`" ]; then 500 501 return; 501 502 fi … … 512 513 done 513 514 elif which mdrun > /dev/null 2> /dev/null ; then 514 if [ "`grep -i nomd /proc/cmdline`" ]; then515 if [ "`grep -i nomd $CMDLINE`" ]; then 515 516 return; 516 517 fi … … 518 519 mdrun 519 520 elif which mdadm > /dev/null 2> /dev/null ; then 520 if [ "`grep -i nomd /proc/cmdline`" ]; then521 if [ "`grep -i nomd $CMDLINE`" ]; then 521 522 return; 522 523 fi … … 636 637 ModprobeAllModules() { 637 638 638 lismod=`find /lib/modules -name '*\.ko*' -o -name '*\.o*'` 639 echo "Preparing to install modules..." 640 # Create a cache first time 641 if [ ! -f /tmp/lismod.txt ]; then 642 find /lib/modules -name '*\.ko*' -o -name '*\.o*' > /tmp/lismod.txt 643 fi 644 lismod=`cat /tmp/lismod.txt` 639 645 # loading forced modules first 640 646 for m in $lismod; do … … 650 656 k=`basename $m | sed 's/\.ko.*$//'` 651 657 j=`basename $k | sed 's/\.o.*$//'` 658 lsmod | grep -qE '^$j$' 659 if [ $? -eq 0 ];then 660 # Already loaded 661 continue 662 fi 652 663 echo "$DENY_MODS" | grep -q "$j " 653 664 if [ $? -eq 0 ]; then … … 730 741 export FORCE_MODS=" " 731 742 fi 732 if [ "`grep -i excludedevs /proc/cmdline`" ]; then733 export MINDI_EXCLUDE_DEVS="`cat /proc/cmdline| sed 's~.*excludedevs=\"\(.*\)\".*~\1~'` mondonone"743 if [ "`grep -i excludedevs $CMDLINE`" ]; then 744 export MINDI_EXCLUDE_DEVS="`cat $CMDLINE | sed 's~.*excludedevs=\"\(.*\)\".*~\1~'` mondonone" 734 745 for d in $MINDI_EXCLUDE_DEVS ; do 735 746 echo "Mountlist exclusion == $d"
Note:
See TracChangeset
for help on using the changeset viewer.