Changeset 2488 in MondoRescue for branches/2.2.10/mindi/rootfs/sbin


Ignore:
Timestamp:
Nov 18, 2009, 9:41:00 PM (15 years ago)
Author:
Bruno Cornec
Message:

r3621@localhost: bruno | 2009-11-18 10:53:33 +0100

  • PrepareBootDiskImage replaces previously duplicated functions for lilo/isolinux handling and completely re-written
  • remove useless rootfs files
  • Use MINDI_CACHE instead of /tmp globally
Location:
branches/2.2.10/mindi/rootfs/sbin
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.10/mindi/rootfs/sbin/find-and-mount-cdrom

    r2462 r2488  
    7070    [ "$SECOND_TRY" ] && add="At 2nd attempt, " || add=""
    7171    LogIt $add"CD-ROM found and mounted at $device" 3
    72     echo "$device" > /tmp/CDROM-LIVES-HERE
     72    echo "$device" > $MINDI_CACHE/CDROM-LIVES-HERE
    7373    LogIt "find-and-mount-cdrom --- leaving (0)"
    7474    exit 0
  • branches/2.2.10/mindi/rootfs/sbin/ide-opt

    r1983 r2488  
    88    echo -e -n "Optimizing IDE drive access..."
    99
    10     cdrom_lives_here=`cat /tmp/CDROM-LIVES-HERE`
     10    cdrom_lives_here=`cat $MINDI_CACHE/CDROM-LIVES-HERE`
    1111    if [ "$?" -ne "0" ] ; then
    1212    echo "I don't know where the CDROM lives. Optimization cancelled."
  • branches/2.2.10/mindi/rootfs/sbin/init

    r2487 r2488  
    8484
    8585LaunchTerminals() {
    86     openvt 2 /bin/sh
    87     openvt 3 /bin/sh
    88     openvt 4 /bin/sh
    89     openvt 5 /bin/sh
    90     openvt 6 /bin/sh
    91     openvt 7 /bin/sh /sbin/wait-for-petris
    92     openvt 8 /usr/bin/tail -f $LOGFILE
     86    openvt -l /bin/sh
     87    openvt -l /bin/sh
     88    openvt -l /bin/sh
     89    openvt -l /bin/sh
     90    openvt -l /bin/sh
     91    openvt -l /bin/sh /sbin/wait-for-petris
     92    openvt -l /usr/bin/tail -f $LOGFILE
    9393    # May avoid shell error messages
    94     chmod 666 /dev/tty* /dev/console
     94    # chmod 666 /dev/tty* /dev/console
    9595    # By default first serial line is configured as tty
    9696    # Required to have a correct serial console support (MP on ia64 or VSP with iLO2 e.g.)
  • branches/2.2.10/mindi/rootfs/sbin/install-additional-tools

    r2445 r2488  
    1515# ------------ main -----------
    1616
    17 # if the file '/tmp/CDROM-LIVES-HERE' exists then we should use the CD
     17# if the file '$MINDI_CACHE/CDROM-LIVES-HERE' exists then we should use the CD
    1818
    1919LogIt "Starting install-additional-tools"
     
    4040
    4141    mountpoint=/dev/null
    42     [ -e "/tmp/CDROM-LIVES-HERE" ] && mountpoint=/mnt/cdrom/images
     42    [ -e "$MINDI_CACHE/CDROM-LIVES-HERE" ] && mountpoint=/mnt/cdrom/images
    4343    tarball=$mountpoint/all.tar.gz
    44     if [ -e "/tmp/CDROM-LIVES-HERE" ] ; then
     44    if [ -e "$MINDI_CACHE/CDROM-LIVES-HERE" ] ; then
    4545        [ -e "$tarball" ] || LogIt "Can't find CD's $tarball" 1
    4646    fi
     
    5858    cd $old_pwd
    5959    echo -e -n "\r"
    60     [ ! -e "/tmp/CDROM-LIVES-HERE" ] && umount $mountpoint
     60    [ ! -e "$MINDI_CACHE/CDROM-LIVES-HERE" ] && umount $mountpoint
    6161    sleep 1
    6262fi
Note: See TracChangeset for help on using the changeset viewer.