Changeset 74964 in vbox for trunk/src/VBox/Additions/linux
- Timestamp:
- Oct 22, 2018 8:57:20 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/linux/installer/vboxadd.sh
r74891 r74964 329 329 test -f "/lib/modules/${version}/misc/vboxvideo.ko" && 330 330 touch "/lib/modules/${version}/initrd/vboxvideo" 331 332 # Systems without systemd-inhibit probably don't need their initramfs 333 # rebuild here anyway. 334 type systemd-inhibit >/dev/null 2>&1 || return 331 335 if type dracut >/dev/null 2>&1; then 332 dracut -f --kver "${version}" 336 systemd-inhibit --why="Installing VirtualBox Guest Additions" \ 337 dracut -f --kver "${version}" 333 338 elif type update-initramfs >/dev/null 2>&1; then 334 update-initramfs -u -k "${version}" 339 systemd-inhibit --why="Installing VirtualBox Guest Additions" \ 340 update-initramfs -u -k "${version}" 335 341 fi 336 342 } … … 383 389 # installed. Package managers have been known to trigger module rebuilds 384 390 # before actually installing the headers. 385 for count in 1 2 3 4 5; do391 for delay in 60 60 60 60 60 300 30 300 300; do 386 392 test "x${QUICKSETUP}" = xyes || break 387 393 test -d "/lib/modules/${KERN_VER}/build" && break 388 printf "Kernel modules not yet installed, waiting five minutes (%s of 5)" "${count}"389 sleep 300394 printf "Kernel modules not yet installed, waiting %s seconds." "${delay}" 395 sleep "${delay}" 390 396 done 391 397 398 # Inhibit shutdown for up to ten minutes if possible. 399 systemd-inhibit 600 2>/dev/null & 392 400 log "Building the main Guest Additions module." 393 401 if ! myerr=`$BUILDINTMP \ … … 399 407 "${INSTALL_DIR}"/other/check_module_dependencies.sh 2>&1 && 400 408 info "Look at $LOG to find out what went wrong" 401 update_initramfs "${KERN_VER}"409 kill $! 2>/dev/null 402 410 return 0 403 411 fi … … 409 417 module_build_log "$myerr" 410 418 info "Look at $LOG to find out what went wrong" 411 update_initramfs "${KERN_VER}"419 kill $! 2>/dev/null 412 420 return 0 413 421 fi … … 426 434 update_initramfs "${KERN_VER}" 427 435 depmod 436 kill $! 2>/dev/null 428 437 return 0 429 438 }
Note:
See TracChangeset
for help on using the changeset viewer.