Changeset 2731 in MondoRescue for branches/2.2.9/mindi/mindi


Ignore:
Timestamp:
Feb 26, 2011, 5:37:13 PM (13 years ago)
Author:
Bruno Cornec
Message:
  • Adds functions and /bin/loadkeys (new location) to minimal set of commands to have
  • provides a makemessage option to mindi and this function now works with pbdistrocheck
  • Do not create an error when a phys device has 0 size and is a /dev/dm-* device
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.9/mindi/mindi

    r2724 r2731  
    15981598    if [ -x "/bin/lsb_release" ]; then
    15991599        DESC=`/bin/lsb_release -d | cut -d: -f2 | sed "s/[ \t]*//"`
     1600    elif [ -r /etc/issue.net ]
     1601        DESC=`head -1 /etc/issue.net`
     1602    elif [ -r /etc/issue ]
     1603        DESC=`head -1 /etc/issue`
    16001604    elif [ -x "/usr/bin/pbdistrocheck" ]; then
    16011605        # For pb >= 0.9.8
    1602         DESC=`/usr/bin/pbdistrocheck -d`
    1603     else
    1604         iss="/dev/null"
    1605         [ -r /etc/issue.net ] && iss="/etc/issue.net"
    1606         [ -r /etc/issue ] && iss="/etc/issue"
    1607         DESC=`head -1 $iss`
     1606        DESC=`/usr/bin/pbdistrocheck -s | cut -d, -f1-4`
     1607    else
     1608        DESC="Unknown desc"
    16081609    fi
    16091610    sed "s/ZZZZZ/$MINDI_VERSION/" $MINDI_LIB/msg-txt | sed "s/KKKKK/Kernel $KERVER/" | sed "s/AAAAA/on a $ARCH architecture/" | sed "s/TTTTT/`LC_TIME=C date`/" | sed "s/MMMMM/`hostname`/" | sed "s/DDDDD/$DESC/"
     
    28672868        export MONDO_SHARE=""
    28682869        MindiExit $?
     2870    elif [ "$1" = "--makemessage" ] ; then
     2871        MakeMessageFile
     2872        MindiExit 0
    28692873    elif [ "$1" = "--makemountlist" ] ; then
    28702874        [ ! "$2" ] && Die "Please specify the output file"
Note: See TracChangeset for help on using the changeset viewer.