Changeset 2878 in MondoRescue for branches/2.2.9/mindi/rootfs/sbin/init


Ignore:
Timestamp:
Oct 5, 2011, 1:20:58 AM (13 years ago)
Author:
Bruno Cornec
Message:
  • Uses the -d option of the mount command to avoid leaving loop devices in use. Probably provoked by the usage of a more recent busybox, but anyway that option doesn't hurt, and does nothing for non-loop devices. Should fix the problems reported on the ML with NFS and more than 8 ISO images (8 being the default number of loop devices available)
File:
1 edited

Legend:

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

    r2846 r2878  
    825825ConfigureLoggingDaemons
    826826if [ -e "/tmp/USE-DEVFS" ] ; then
    827     umount /mnt/cdrom 2> /dev/null
     827    umount -d /mnt/cdrom 2> /dev/null
    828828    mv /dev/cdrom /cdrom.lnk 2> /dev/null
    829829    CD_MOUNTED_OK=""
     
    963963else
    964964    echo -en "Type 'exit' to reboot the PC\n"
    965     umount /mnt/cdrom 2> /dev/null
     965    umount -d /mnt/cdrom 2> /dev/null
    966966    mount / -o rw,remount > /dev/null 2> /dev/null
    967967    LogIt "Launching Shell"
Note: See TracChangeset for help on using the changeset viewer.