Changeset 229


Ignore:
Timestamp:
Dec 17, 2005, 1:44:25 AM (14 years ago)
Author:
bcornec
Message:

Fix another bug for PXE and the new busybox around mv which doesn't want to move inexistant symlinks. Replaced by tar.
Bug fix in init on dirimg
Preparation of use of udhcpc by adding a symlink

Location:
branches/2.05/mindi/rootfs
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/2.05/mindi/rootfs/sbin/init

    r227 r229  
    642642        dirimg=`grep nfs-server-path /tmp/mondo-restore.cfg | cut -d' ' -f2-`
    643643        if [ "$dirimg" = "" ]; then
    644             imgname="/"
     644            dirimg="/"
    645645        fi
    646646        LogIt "Mounting NFS image $imgname-1.iso in $dirimg on /mnt/cdrom in loopback"
  • branches/2.05/mindi/rootfs/sbin/install-additional-tools

    r116 r229  
    110110
    111111# Was disabled in mid-March 2002 (?). Dunno why. Re-enabled July 11th, 2002.
    112 for path in /sbin /bin /usr/bin /usr/sbin /lib /usr/lib /lib/* /usr/lib/* ; do
    113     [ ! -e "$path" ] && mkdir -p "$path"
    114     for i in `ls $mountdir/$path 2> /dev/null` ; do
    115     rm -f $path/$i 2> /dev/null
    116         mv $mountdir/$path/$i $path 2> /dev/null
    117     done   
    118 done
     112# BERLIOS: This doesn't work for symlink with new busybox in PXE mode
     113#for path in /sbin /bin /usr/bin /usr/sbin /lib /usr/lib /lib/* /usr/lib/* ; do
     114    #[ ! -e "$path" ] && mkdir -p "$path"
     115    #for i in `ls $mountdir/$path 2> /dev/null` ; do
     116    #rm -f $path/$i 2> /dev/null
     117        #mv $mountdir/$path/$i $path 2> /dev/null
     118    #done   
     119#done
     120
     121cd $mountdir
     122tar cf - sbin bin usr/bin usr/sbin lib usr/lib | (cd / ; tar xf -)
     123cd /
    119124
    120125
Note: See TracChangeset for help on using the changeset viewer.