VirtualBox

Changeset 76912 in vbox for trunk/src/VBox/Additions


Ignore:
Timestamp:
Jan 21, 2019 11:21:43 AM (6 years ago)
Author:
vboxsync
Message:

Additions/linux: report if the current kernel headers are not installed.
bugref:9364: GAs fail to build and fail to report the failure on a Debian 9.6.
This fixes a regression from previous changes to Additions kernel module
rebuilding. When the code was generalised to rebuild kernel modules for all
newly installed kernels, not just the current one, the warning when the
headers were not installed was lost, as we do not want to warn when headers
for a random newly installed kernel are missing. Add an extra check for the
current one to fix this.

File:
1 edited

Legend:

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

    r76553 r76912  
    113113{
    114114    if test -z "${QUIET}"; then
    115         echo "${SERVICE}: $1"
     115        echo "${SERVICE}: $1" | fold -s
    116116    else
    117         echo "$1"
     117        echo "$1" | fold -s
    118118    fi
    119119}
     
    505505        # That is, we mark all but the requested kernel.
    506506        rm -f "$SKIPFILE_BASE"-"$TARGET_VER"
     507        test -d /lib/modules/"TARGET_VER"/build || test -n "$QUICKSETUP" ||
     508            info "Kernel headers not found for target kernel $TARGET_VER. \
     509Please install them and execute
     510  /sbin/rcvboxadd setup"
    507511        for setupi in /lib/modules/*; do
    508512            KERN_VER="${setupi##*/}"
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