VirtualBox

Changeset 66413 in vbox


Ignore:
Timestamp:
Apr 4, 2017 9:42:44 AM (8 years ago)
Author:
vboxsync
Message:

bugref:7498: create guest additions in rpm format for Oracle Linux
Re-arrange the vboxadd.sh/rcvboxadd script to make it easier for the kernel module rpm package to run the kernel parts (essentially, vboxadd.sh udev) and the non-kernel part to do the rest, by setting INSTALL_NO_MODULE_BUILDS=1 in /var/lib/VBoxGuestAdditions/config. Now added forgotten changes to cleanup as well. Normal setup and cleanup will take care of the shared folder parts only (including user group) if INSTALL_NO_MODULE_BUILDS=1 is set. In addition, the udevsetup (was: udev) and udevcleanup commands will put in place or remove the udev rule for the kernel and create the Additions user.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/linux/installer/vboxadd.sh

    r66401 r66413  
    3838# * Shared folders can be mounted and auto-mounts accessible to vboxsf group,
    3939#   including on recent Fedoras with SELinux.
    40 # * Setting INSTALL_NO_MODULE_BUILDS does not set up modules, users, udev.
    41 # * rcvboxadd udev sets up udev but not modules, users, shared folders.
     40# * Setting INSTALL_NO_MODULE_BUILDS inhibits modules, users, udev in setup and
     41#   cleanup but not the shared folder group creation.
     42# * rcvboxadd udev[cleanup] sets up udev and creates the user but skips modules,
     43#   shared folders and group creation.
     44# * Uninstalling the Additions and re-installing them does not trigger warnings.
    4245
    4346PATH=$PATH:/bin:/sbin:/usr/sbin
     
    517520    setup
    518521    ;;
    519 udev)
     522cleanup)
     523    if test -z "${INSTALL_NO_MODULE_BUILDS}"; then
     524        cleanup
     525    else
     526        rm /sbin/mount.vboxsf 2>/dev/null
     527    fi
     528    ;;
     529udevsetup)
     530    create_vbox_user
    520531    create_udev_rule
    521532    ;;
    522 cleanup)
    523     cleanup
     533udevcleanup)
     534    rm /etc/udev/rules.d/60-vboxadd.rules 2>/dev/null
    524535    ;;
    525536status)
     
    527538    ;;
    528539*)
    529     echo "Usage: $0 {start|stop|restart|status|setup|quicksetup|cleanup} [quiet]"
     540    echo "Usage: $0 {start|stop|restart|status|setup|quicksetup|cleanup|udevsetup|udevcleanup} [quiet]"
    530541    exit 1
    531542esac
Note: See TracChangeset for help on using the changeset viewer.

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