VirtualBox

Ticket #4924: vboxadd-mount.patch

File vboxadd-mount.patch, 885 bytes (added by Michael Kromer, 15 years ago)
  • /etc/init.d/vboxadd

    old new start()  
    245245
    246246    # Mount all shared folders from /etc/fstab. Normally this is done by some
    247247    # other startup script but this requires the vboxdrv kernel module loaded.
    248     mount -a -t vboxsf
     248    for i in $( grep vboxsf /etc/fstab | awk '{print $2}' ) ; do
     249        mount $i
     250    done
    249251
    250252    succ_msg
    251253    return 0
    start()  
    254256stop()
    255257{
    256258    begin "Stopping VirtualBox Additions ";
    257     if !umount -a -t vboxsf 2>/dev/null; then
    258         fail "Cannot unmount vboxsf folders"
    259     fi
     259    for i in $( grep vboxsf /proc/mounts | awk '{print $2}' ) ; do
     260        umount -f $i
     261    done
     262
    260263    if [ -n "$BUILDVBOXVFS" ]; then
    261264        if running_vboxvfs; then
    262265            rmmod vboxvfs 2>/dev/null || fail "Cannot unload module vboxvfs"

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy