VirtualBox

Changeset 62397 in vbox


Ignore:
Timestamp:
Jul 21, 2016 1:20:16 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
108947
Message:

bugref:8087: Additions/Installer: On Debian-based systems we were trying to include vboxvideo in the initramfs even if we were uninstalling. I do not know if this was serious, but check for it. On dracut-based systems we were including the wrong (current) kernel modules and files in initrd files for non-current kernels. Fix by passing the kernel version in the right place.

File:
1 edited

Legend:

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

    r62394 r62397  
    308308{
    309309    depmod "${1}"
     310    rm -f "/lib/modules/${1}/initrd/vboxvideo"
    310311    test -d "/lib/modules/${1}/initrd" &&
     312        test -f "/lib/modules/${1}/misc/vboxvideo.ko" &&
    311313        touch "/lib/modules/${1}/initrd/vboxvideo"
    312314    test -n "${QUICKSETUP}" && return
    313315    if type dracut >/dev/null 2>&1; then
    314         dracut -f "/boot/initramfs-${1}.img"
     316        dracut -f "/boot/initramfs-${1}.img" "${1}"
    315317    elif type update-initramfs >/dev/null 2>&1; then
    316318        update-initramfs -u -k "${1}"
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