VirtualBox

Changes between Initial Version and Version 1 of Ticket #15579


Ignore:
Timestamp:
Jul 7, 2016 7:55:04 AM (8 years ago)
Author:
Frank Mehnert
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #15579 – Description

    initial v1  
    11Tracked down failures to install guest additions on CentOS 7. Symptom was constant syslogs:
    2 
     2{{{
    33 dracut: Can't write to /boot/initramfs-: Directory /boot/initramfs- does not exist or is not accessible.
    4 
     4}}}
    55Upon rebooting, the system would be unbootable and required a rescue disk.
    66
    77problem is on line 1042 of VBoxLinuxAdditions.sh:
    8 
     8{{{
    99   for i in /lib/modules/*; do
    1010        update_module_dependencies "${i#/lib/modules}"
    1111    done
    12 
     12}}}
    1313
    1414running the following code illustrates the problem:
     15{{{
    1516   # for i in /lib/modules/*; do
    1617        echo update_module_dependencies "${i#/lib/modules}"
     
    1819   
    1920   update_module_dependencies /3.10.0-327.22.2.el7.x86_64
    20 
     21}}}
    2122
    2223the correct code puts a trailing '/' after 'modules':
     24{{{
    2325    for i in /lib/modules/*; do
    2426        update_module_dependencies "${i#/lib/modules/}"
    2527    done
    26 
     28}}}
    2729To workaround this bug, do the following:
    2830
    2931(mount GuestAdditions CD Image, cd to top level of CDROM).
    30 
     32{{{
    3133# sh ./VBoxLinuxAdditions.sh
    32 
     34}}}
    3335(errors - define the following shell function taken from the script)
    34 
     36{{{
    3537# update_module_dependencies()
    3638{
     
    4951        update_module_dependencies "${i#/lib/modules/}"
    5052  done
    51 
     53}}}
    5254(the following files seem to be leftover and prevent my system from booting, delete them).
    53 
     55{{{
    5456# rm -rf /var/lib/VBoxGuestAdditions
    55 
    56 
     57}}}

© 2023 Oracle
ContactPrivacy policyTerms of Use