VirtualBox

Changeset 63889 in vbox


Ignore:
Timestamp:
Sep 19, 2016 2:19:48 PM (8 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
110759
Message:

bugref:3809: Linux installer maintenance: Additions installer more clean-ups.

Location:
trunk/src/VBox/Additions/linux
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/linux/Makefile.kmk

    r63877 r63889  
    4242VBOX_LNX_ADD_INST_SBIN_DIR        := $(VBOX_LNX_ADD_INST_OUT_DIR)sbin/
    4343VBOX_LNX_ADD_INST_LIB_DIR         := $(VBOX_LNX_ADD_INST_OUT_DIR)lib/
    44 VBOX_LNX_ADD_INST_SHARE_DIR       := $(VBOX_LNX_ADD_INST_OUT_DIR)share/
     44VBOX_LNX_ADD_INST_OTHER_DIR       := $(VBOX_LNX_ADD_INST_OUT_DIR)other/
    4545VBOX_LNX_ADD_INST_MOD_DIR         := $(VBOX_LNX_ADD_INST_OUT_DIR)lib/$(VBOX_LNX_ADD_PACKAGE_NAME)/
    4646VBOX_LNX_ADD_INST_KMOD_DIR        := $(VBOX_LNX_ADD_INST_OUT_DIR)src/
     
    172172        $(addprefix $(VBOX_LNX_ADD_INST_LIB_DIR),$(VBOX_LNX_ADD_STRIP_LIB)) \
    173173        $(addprefix $(VBOX_LNX_ADD_INST_MOD_DIR),$(VBOX_LNX_ADD_STRIP_MOD)) \
    174         $(addprefix $(VBOX_LNX_ADD_INST_MOD_DIR),$(VBOX_LNX_ADD_MOD)) \
     174        $(addprefix $(VBOX_LNX_ADD_INST_OTHER_DIR),$(VBOX_LNX_ADD_MOD)) \
    175175        $(addprefix $(VBOX_LNX_ADD_INST_MOD_DIR),$(VBOX_LNX_ADD_STRIP_OBJ)) \
    176176        $(addprefix $(VBOX_LNX_ADD_INST_KMOD_DIR),$(VBOX_LNX_ADD_KMOD_FILES)) \
     
    310310
    311311INSTALLS += lnx_add_inst-exec
    312 lnx_add_inst-exec_INST     = $(VBOX_LNX_ADD_INST_MOD_DIR)
     312lnx_add_inst-exec_INST     = $(VBOX_LNX_ADD_INST_OTHER_DIR)
    313313lnx_add_inst-exec_INSTTYPE = stage
    314314lnx_add_inst-exec_EXEC_SOURCES  = \
     
    318318
    319319INSTALLS += lnx_add_inst-noexec
    320 lnx_add_inst-noexec_INST     = $(VBOX_LNX_ADD_INST_SHARE_DIR)$(VBOX_LNX_ADD_PACKAGE_NAME)/
     320lnx_add_inst-noexec_INST     = $(VBOX_LNX_ADD_INST_OTHER_DIR)
    321321lnx_add_inst-noexec_INSTTYPE = stage
    322322lnx_add_inst-noexec_SOURCES  = \
     
    403403        $(QUIET)tar --dereference --owner 0 --group 0 -cRf $(patsubst %.bz2,%,$@) \
    404404                -C $(VBOX_LNX_ADD_INST_OUT_DIR) \
    405                 LICENSE bin init lib sbin share src \
     405                LICENSE bin init lib other sbin src \
    406406                $(if $(filter $(KBUILD_TYPE),debug),debug)
    407407        $(QUIET)pbzip2 $(patsubst %.bz2,%,$@)
     
    409409        $(QUIET)tar --dereference --owner 0 --group 0 --ignore-failed-read -cjRf $@ \
    410410                -C $(VBOX_LNX_ADD_INST_OUT_DIR) \
    411                 LICENSE bin init lib sbin share src \
     411                LICENSE bin init lib other sbin src \
    412412                $(if $(filter $(KBUILD_TYPE),debug),debug)
    413413endif
  • trunk/src/VBox/Additions/linux/installer/install.sh.in

    r63875 r63889  
    365365link_into_fs "lib" "$lib_path"
    366366add_symlink "$INSTALLATION_DIR/lib/$PACKAGE" /usr/lib/"$PACKAGE"
    367 link_into_fs "share" "/usr/share"
    368367link_into_fs "src" "/usr/src"
    369368
  • trunk/src/VBox/Additions/linux/installer/module-autologon.sh

    r48941 r63889  
    105105
    106106    # Link to required greeter files into $greeter_dir.
    107     add_symlink "$INSTALLATION_DIR/share/VBoxGuestAdditions/vbox-greeter.desktop" "$greeter_dir/vbox-greeter.desktop"
     107    add_symlink "$INSTALLATION_DIR/other/vbox-greeter.desktop" "$greeter_dir/vbox-greeter.desktop"
    108108
    109109    # Backup and activate greeter config.
  • trunk/src/VBox/Additions/linux/installer/vboxadd-x11.sh

    r63870 r63889  
    3232LOG="/var/log/vboxadd-install-x11.log"
    3333CONFIG_DIR="/var/lib/VBoxGuestAdditions"
    34 CONFIG="config"
     34CONFIG="${CONFIG_DIR}/config"
    3535MODPROBE=/sbin/modprobe
    3636
     
    170170setup()
    171171{
     172    if test -r "${CONFIG}"; then
     173      . "${CONFIG}"
     174    else
     175      fail "Configuration file ${CONFIG} not found"
     176    fi
     177    test -n "$INSTALL_DIR" -a -n "$INSTALL_VER" ||
     178      fail "Configuration file ${CONFIG} not complete"
    172179    lib_dir="$LIB/VBoxGuestAdditions"
    173     share_dir="/usr/share/VBoxGuestAdditions"
    174     test -x "$lib_dir" -a -x "$share_dir" ||
     180    res_dir="${INSTALL_DIR}/other"
     181    test -x "$lib_dir" -a -x "$res_dir" ||
    175182        fail "Invalid Guest Additions configuration found."
    176183    # By default we want to configure X
     
    381388        {
    382389            rm -f "/usr/share/xserver-xorg/pci/vboxvideo.ids"
    383             ln -s "$share_dir/vboxvideo.ids" /usr/share/xserver-xorg/pci 2>/dev/null
     390            ln -s "$res_dir/vboxvideo.ids" /usr/share/xserver-xorg/pci 2>/dev/null
    384391            test -n "$automouse" && setupxorgconf=""
    385392        }
     
    394401                        generated="$generated  `printf "$i\n"`"
    395402                    else
    396                         "$lib_dir/x11config.sh" $autokeyboard $automouse $nopsaux $vmsvga "$i"
     403                        "$res_dir/x11config.sh" $autokeyboard $automouse $nopsaux $vmsvga "$i"
    397404                    fi
    398405                    configured="true"
     
    407414            if test -z "$configured"; then
    408415                touch "$main_cfg"
    409                 "$lib_dir/x11config.sh" $autokeyboard $automouse $nopsaux $vmsvga --noBak "$main_cfg"
     416                "$res_dir/x11config.sh" $autokeyboard $automouse $nopsaux $vmsvga --noBak "$main_cfg"
    410417                touch "${nobak_cfg}"
    411418            fi
     
    430437        # open device files
    431438        Fedora\ release\ 7* | Fedora\ release\ 8* )
    432             semodule -i "$share_dir/vbox_x11.pp" > /dev/null 2>&1
     439            semodule -i "$res_dir/vbox_x11.pp" > /dev/null 2>&1
    433440            ;;
    434441        # Similar for the accelerated graphics check on Fedora 15
    435442        Fedora\ release\ 15* )
    436             semodule -i "$share_dir/vbox_accel.pp" > /dev/null 2>&1
     443            semodule -i "$res_dir/vbox_accel.pp" > /dev/null 2>&1
    437444            ;;
    438445    esac
     
    453460
    454461    # And set up VBoxClient to start when the X session does
    455     install_x11_startup_app "$lib_dir/98vboxadd-xclient" "$share_dir/vboxclient.desktop" VBoxClient VBoxClient-all ||
     462    install_x11_startup_app "$res_dir/98vboxadd-xclient" "$res_dir/vboxclient.desktop" VBoxClient VBoxClient-all ||
    456463        fail "See the log file $LOG for more information."
    457     ln -s "$lib_dir/98vboxadd-xclient" /usr/bin/VBoxClient-all 2>/dev/null
     464    ln -s "$res_dir/98vboxadd-xclient" /usr/bin/VBoxClient-all 2>/dev/null
    458465}
    459466
  • trunk/src/VBox/Additions/linux/installer/vboxadd.sh

    r63870 r63889  
    206206            setup
    207207            $MODPROBE vboxguest >/dev/null 2>&1 || {
    208                 "$lib_path/$PACKAGE/vboxadd-x11" cleanup 2>> "${LOG}"
     208                "${INSTALL_DIR}/init/vboxadd-x11" cleanup 2>> "${LOG}"
    209209                fail "modprobe vboxguest failed"
    210210            }
     
    229229
    230230    # Put the X.Org driver in place.  This is harmless if it is not needed.
    231     "$lib_path/$PACKAGE/vboxadd-x11" setup 2>> "${LOG}"
     231    "${INSTALL_DIR}/init/vboxadd-x11" setup 2>> "${LOG}"
    232232    # Install the guest OpenGL drivers.  For now we don't support
    233233    # multi-architecture installations
     
    383383    # Put mount.vboxsf in the right place
    384384    ln -sf "$lib_path/$PACKAGE/mount.vboxsf" /sbin
    385     # And an rc file to re-build the kernel modules and re-set-up the X server.
    386     ln -sf "$lib_path/$PACKAGE/vboxadd" /sbin/rcvboxadd
    387385    # And a post-installation script for rebuilding modules when a new kernel
    388386    # is installed.
     
    468466
    469467    # Clean-up X11-related bits
    470     "$lib_path/$PACKAGE/vboxadd-x11" cleanup 2>> "${LOG}"
     468    "${INSTALL_DIR}/init/vboxadd-x11" cleanup 2>> "${LOG}"
    471469
    472470    # Remove other files
    473471    rm /sbin/mount.vboxsf 2>/dev/null
    474     rm /sbin/rcvboxadd 2>/dev/null
    475472    rm -f /etc/kernel/postinst.d/vboxadd /etc/kernel/prerm.d/vboxadd
    476473    rmdir -p /etc/kernel/postinst.d /etc/kernel/prerm.d 2>/dev/null
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