Changeset 3000 in MondoRescue


Ignore:
Timestamp:
Apr 21, 2012, 2:08:18 AM (13 years ago)
Author:
Bruno Cornec
Message:
  • Fix #600 by linking /bin/sh to /bin/bash when it's in the initrd as the default sheel used. Adds support for pushd/popd at least.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.0/mindi/mindi

    r2999 r3000  
    25242524    # Initial / are trucated by tar
    25252525    tar cf - `sort -u $MINDI_TMP/minimal.lis` 2>> $MINDI_TMP/$$.log | tar xf - || LogIt "ERROR: Problem in minimal analysis" $MINDI_TMP/$$.log
     2526
     2527    # To improve support for distribution scripts, we now prefer to use bash as the std shell. Also fixes #600
     2528    grep -q bin/bash $MINDI_TMP/minimal.lis
     2529    if [ $? -eq 0 ]; then
     2530        ln -sf bin/bash bin/sh
     2531        LogIt "INFO: Using bash as default shell"
     2532    fi
    25262533    rm -f $MINDI_TMP/minimal.lis
    25272534
Note: See TracChangeset for help on using the changeset viewer.