Opened 7 years ago

Closed 7 years ago

#15579 closed defect (fixed)

Bug in 5.0.24_108355

Reported by: billR Owned by:
Component: guest additions Version: VirtualBox 5.0.24
Keywords: dracut Cc:
Guest type: Linux Host type: Windows

Description (last modified by Frank Mehnert)

Tracked down failures to install guest additions on CentOS 7. Symptom was constant syslogs:

 dracut: Can't write to /boot/initramfs-: Directory /boot/initramfs- does not exist or is not accessible. 

Upon rebooting, the system would be unbootable and required a rescue disk.

problem is on line 1042 of

   for i in /lib/modules/*; do
        update_module_dependencies "${i#/lib/modules}"

running the following code illustrates the problem:

   # for i in /lib/modules/*; do
        echo update_module_dependencies "${i#/lib/modules}"
   update_module_dependencies /3.10.0-327.22.2.el7.x86_64

the correct code puts a trailing '/' after 'modules':

    for i in /lib/modules/*; do
        update_module_dependencies "${i#/lib/modules/}"

To workaround this bug, do the following:

(mount GuestAdditions CD Image, cd to top level of CDROM).

# sh ./

(errors - define the following shell function taken from the script)

# update_module_dependencies()
    depmod "${1}"
    test -d "/lib/modules/${1}/initrd" &&
        touch "/lib/modules/${1}/initrd/vboxvideo"
    test -n "${QUICKSETUP}" && return
    if type dracut >/dev/null 2>&1; then
        dracut -f "/boot/initramfs-${1}.img"
    elif type update-initramfs >/dev/null 2>&1; then
        update-initramfs -u -k "${1}"

# for i in /lib/modules/*; do
        update_module_dependencies "${i#/lib/modules/}"

(the following files seem to be leftover and prevent my system from booting, delete them).

# rm -rf /var/lib/VBoxGuestAdditions

Change History (5)

comment:1 by Frank Mehnert, 7 years ago

Description: modified (diff)

comment:2 by Michael Thayer, 7 years ago

On the whole this report looks very reasonable, except that there is no file "". The code you mention exists in other places, and your change seems to make sense, but where did you find that file?

comment:3 by þorfinn, 7 years ago

confirmed the problem VB-5.1.0 and CentOS-7.7 fails with the default installation on CentOS-7 with /boot being read only to all, group and user # chmod u+w /boot and rerunning works. is supplied from the VBoxGuestAdditions.iso

comment:4 by Frank Mehnert, 7 years ago

Fix is part of VirtualBox 5.1 and will be also part of the next VirtualBox 5.0 maintenance release.

comment:5 by Frank Mehnert, 7 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use