Changeset 97539 in vbox for trunk/src/VBox/Additions
- Timestamp:
- Nov 14, 2022 8:17:06 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/linux/installer/vboxadd.sh
r97405 r97539 70 70 QUIET= 71 71 test -z "${TARGET_VER}" && TARGET_VER=`uname -r` 72 72 73 # Marker to ignore a particular kernel version which was already installed. 74 # 75 # This is needed in order to prevent modules rebuild on system start and do 76 # that on system shutdown instead. Modern Linux distributions might attempt 77 # to run Additions service in async mode. As a result, on system boot, modules 78 # not-by-us will be loaded while we will try to build our modules. This marker is: 79 # 80 # created -- in scope of setup_modules() when actual modules are built. 81 # checked -- in scope of stop() when system goes shutdown and if marker 82 # for certain kernel version does not exist, modules rebuild 83 # will be triggered for this kernel version. 84 # removed -- in scope of cleanup_modules() when modules are removed from 85 # system for all installed kernels. 73 86 SKIPFILE_BASE=/var/lib/VBoxGuestAdditions/skip 87 74 88 export VBOX_KBUILD_TYPE 75 89 export USERNAME … … 498 512 499 513 update_initramfs "${KERN_VER}" 514 515 # We have just built modules for KERN_VER kernel. Create a marker to indicate 516 # that modules for this kernel version should not be rebuilt on system shutdown. 517 touch "$SKIPFILE_BASE"-"$KERN_VER" 518 500 519 return 0 501 520 } … … 788 807 { 789 808 begin "Starting." 790 if test -z "${INSTALL_NO_MODULE_BUILDS}"; then 791 # We want to build modules for newly installed kernels on shutdown, so 792 # mark the ones already present. These will be ignored on shutdown. 793 rm -f "$SKIPFILE_BASE"-* 794 for setupi in /lib/modules/*; do 795 KERN_VER="${setupi##*/}" 796 # For a full setup, mark kernels we do not want to build. 797 touch "$SKIPFILE_BASE"-"$KERN_VER" 798 done 799 fi 809 810 # Check if kernel modules for currently running kernel are ready 811 # and rebuild them if needed. 800 812 setup 801 813
Note:
See TracChangeset
for help on using the changeset viewer.