VirtualBox

Changeset 12650 in vbox for trunk/src/VBox/Installer


Ignore:
Timestamp:
Sep 22, 2008 3:05:24 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
36939
Message:

Solaris/installer: Zone fixes - eliminated devlink.tab and webservice to load only in the global zone. Link creation is now done manually during postinstall.

Location:
trunk/src/VBox/Installer/solaris
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Installer/solaris/Makefile.kmk

    r12575 r12650  
    5555OTHER_CLEAN      = $(addprefix $(SOLARIS_INST_DIR)/,\
    5656        vbox.pkginfo vbox.copyright vbox.space vbox.pkgresponse \
    57         makepackage.sh prototype postinstall.sh preremove.sh etc/devlink.tab )
     57        makepackage.sh prototype postinstall.sh preremove.sh)
    5858
    5959#
     
    228228                $(VBOX_PATH_SOL_INST_SRC)/vbox.space \
    229229                $(VBOX_PATH_SOL_INST_SRC)/vbox.pkgresponse \
    230                 $(VBOX_PATH_SOL_INST_SRC)/vboxdevlink.sed \
    231230                $(VBOX_PATH_SOL_INST_SRC)/VBox.sh \
    232231                $(VBOX_PATH_SOL_INST_SRC)/virtualbox.desktop \
     
    392391        $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOL_INST_SRC)/makepackage.sh                                     $(SOLARIS_INST_DIR)/makepackage.sh
    393392        $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_SOL_INST_SRC)/vbox.pkgresponse                                   $(SOLARIS_INST_DIR)/autoresponse
    394         $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_SOL_INST_SRC)/vboxdevlink.sed                                    $(SOLARIS_INST_DIR)/etc/devlink.tab
    395393        $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_SOL_INST_SRC)/vbox.space                                         $(SOLARIS_INST_DIR)/vbox.space
    396394        $(QUIET)$(SED) \
  • trunk/src/VBox/Installer/solaris/makepackage.sh

    r11923 r12650  
    8787    echo 'i copyright=./vbox.copyright' >> prototype
    8888fi
    89 echo 'e sed /etc/devlink.tab ? ? ?' >> prototype
    9089find . -print | $VBOX_GGREP -v -E 'prototype|makepackage.sh|vbox.pkginfo|postinstall.sh|preremove.sh|ReadMe.txt|vbox.space|vbox.copyright|VirtualBoxKern' | pkgproto >> prototype
    9190
    92 # don't grok for the sed class files
     91# don't grok for the class files
    9392filelist_fixup prototype '$2 == "none"'                                                                 '$5 = "root"; $6 = "bin"'
    9493filelist_fixup prototype '$2 == "none"'                                                                 '$3 = "opt/VirtualBox/"$3"="$3'
  • trunk/src/VBox/Installer/solaris/postinstall.sh

    r11975 r12650  
    3030currentzone=`zonename`
    3131if test "$currentzone" = "global"; then
    32     echo "Configuring VirtualBox kernel module..."
     32    echo "Configuring VirtualBox Host kernel module..."
    3333    /opt/VirtualBox/vboxdrv.sh stopall silentunload
    3434    /opt/VirtualBox/vboxdrv.sh start
    3535
    36     echo "Configuring VirtualBox NetFilter kernel module..."
    3736    if test -f /platform/i86pc/kernel/drv/vboxflt.conf; then
     37        echo "Configuring VirtualBox NetFilter kernel module..."
    3838        /opt/VirtualBox/vboxdrv.sh fltstart
    3939    fi
     
    5555    fi
    5656fi
    57 if test -f /var/svc/manifest/application/virtualbox/webservice.xml; then
    58     /usr/sbin/svccfg import /var/svc/manifest/application/virtualbox/webservice.xml
    59     /usr/sbin/svcadm disable -s svc:/application/virtualbox/webservice:default
    60 fi
    61 /usr/sbin/removef $PKGINST /opt/VirtualBox/etc/devlink.tab 1>/dev/null
    62 /usr/sbin/removef $PKGINST /opt/VirtualBox/etc 1>/dev/null
    63 rm -rf /opt/VirtualBox/etc
    64 /usr/sbin/removef -f $PKGINST
    6557
    66 /usr/sbin/installf -f $PKGINST
     58if test "$currentzone" = "global"; then
     59    if test -f /var/svc/manifest/application/virtualbox/webservice.xml; then
     60        /usr/sbin/svccfg import /var/svc/manifest/application/virtualbox/webservice.xml
     61        /usr/sbin/svcadm disable -s svc:/application/virtualbox/webservice:default
     62    fi
    6763
    68 # We need to touch the desktop link in order to add it to the menu right away
    69 if test "$currentzone" = "global"; then
     64    # create /dev link for vboxdrv
     65    /usr/sbin/installf -c none $PKGINST /dev/vboxdrv=../devices/pseudo/vboxdrv@0:vboxdrv s
     66
     67    # We need to touch the desktop link in order to add it to the menu right away
    7068    if test -f "/usr/share/applications/virtualbox.desktop"; then
    7169        touch /usr/share/applications/virtualbox.desktop
    7270    fi
     71fi
    7372
    74     # create /dev link for vboxdrv (only possible from global zone)
    75     /usr/sbin/devfsadm -i vboxdrv
    76 fi
     73/usr/sbin/installf -f $PKGINST
    7774
    7875echo "Done."
  • trunk/src/VBox/Installer/solaris/preremove.sh

    r11975 r12650  
    2121echo "This script will unload the VirtualBox kernel module..."
    2222
    23 # vboxdrv.sh would've been installed, we just need to call it.
    24 /opt/VirtualBox/vboxdrv.sh stopall
    25 
    26 # remove /dev/vboxdrv
    2723currentzone=`zonename`
    2824if test "$currentzone" = "global"; then
    29     rm -f /dev/vboxdrv
     25    # stop and unregister webservice daemon
     26    /usr/sbin/svcadm disable -s svc:/application/virtualbox/webservice:default
     27    /usr/sbin/svccfg delete svc:/application/virtualbox/webservice:default
     28
     29    # vboxdrv.sh would've been installed, we just need to call it.
     30    /opt/VirtualBox/vboxdrv.sh stopall
    3031fi
    31 
    32 # stop and unregister webservice daemon
    33 /usr/sbin/svcadm disable -s svc:/application/virtualbox/webservice:default
    34 /usr/sbin/svccfg delete svc:/application/virtualbox/webservice:default
    35 
    3632
    3733echo "Done."
  • trunk/src/VBox/Installer/solaris/vboxdrv.sh

    r12452 r12650  
    6161    fi
    6262
    63     abort "## VirtualBox kernel module NOT installed."
     63    abort "## VirtualBox Host kernel module NOT installed."
    6464}
    6565
     
    100100{
    101101    if module_loaded; then
    102         info "VirtualBox kernel module already loaded."
     102        info "VirtualBox Host kernel module already loaded."
    103103    else
    104104        if test -n "_HARDENED_"; then
     
    108108        fi
    109109        if test ! module_loaded; then
    110             abort "## Failed to load VirtualBox kernel module."
     110            abort "## Failed to load VirtualBox Host kernel module."
    111111        elif test -c "/devices/pseudo/$MODNAME@0:$MODNAME"; then
    112             info "VirtualBox kernel module loaded."
     112            info "VirtualBox Host kernel module loaded."
    113113        else
    114114            abort "Aborting due to attach failure."
     
    120120{
    121121    if module_loaded; then
    122         /usr/sbin/rem_drv $MODNAME || abort "## Failed to unload VirtualBox kernel module."
    123         info "VirtualBox kernel module unloaded."
     122        /usr/sbin/rem_drv $MODNAME || abort "## Failed to unload VirtualBox Host kernel module."
     123        info "VirtualBox Host kernel module unloaded."
    124124    elif test -z "$SILENTUNLOAD"; then
    125         info "VirtualBox kernel module not loaded."
     125        info "VirtualBox Host kernel module not loaded."
    126126    fi
    127127
Note: See TracChangeset for help on using the changeset viewer.

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