Changes between Initial Version and Version 1 of Ticket #15579
- Timestamp:
- Jul 7, 2016 7:55:04 AM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #15579 – Description
initial v1 1 1 Tracked down failures to install guest additions on CentOS 7. Symptom was constant syslogs: 2 2 {{{ 3 3 dracut: Can't write to /boot/initramfs-: Directory /boot/initramfs- does not exist or is not accessible. 4 4 }}} 5 5 Upon rebooting, the system would be unbootable and required a rescue disk. 6 6 7 7 problem is on line 1042 of VBoxLinuxAdditions.sh: 8 8 {{{ 9 9 for i in /lib/modules/*; do 10 10 update_module_dependencies "${i#/lib/modules}" 11 11 done 12 12 }}} 13 13 14 14 running the following code illustrates the problem: 15 {{{ 15 16 # for i in /lib/modules/*; do 16 17 echo update_module_dependencies "${i#/lib/modules}" … … 18 19 19 20 update_module_dependencies /3.10.0-327.22.2.el7.x86_64 20 21 }}} 21 22 22 23 the correct code puts a trailing '/' after 'modules': 24 {{{ 23 25 for i in /lib/modules/*; do 24 26 update_module_dependencies "${i#/lib/modules/}" 25 27 done 26 28 }}} 27 29 To workaround this bug, do the following: 28 30 29 31 (mount GuestAdditions CD Image, cd to top level of CDROM). 30 32 {{{ 31 33 # sh ./VBoxLinuxAdditions.sh 32 34 }}} 33 35 (errors - define the following shell function taken from the script) 34 36 {{{ 35 37 # update_module_dependencies() 36 38 { … … 49 51 update_module_dependencies "${i#/lib/modules/}" 50 52 done 51 53 }}} 52 54 (the following files seem to be leftover and prevent my system from booting, delete them). 53 55 {{{ 54 56 # rm -rf /var/lib/VBoxGuestAdditions 55 56 57 }}}