| 1 | sh -x /sbin/rcvboxadd start
|
|---|
| 2 | + export LC_ALL=C
|
|---|
| 3 | + LC_ALL=C
|
|---|
| 4 | + PATH=/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/root/bin:/bin:/sbin:/usr/sbin
|
|---|
| 5 | + PACKAGE=VBoxGuestAdditions
|
|---|
| 6 | + MODPROBE=/sbin/modprobe
|
|---|
| 7 | + OLDMODULES='vboxguest vboxadd vboxsf vboxvfs vboxvideo'
|
|---|
| 8 | + SERVICE='VirtualBox Guest Additions'
|
|---|
| 9 | + QUIET=
|
|---|
| 10 | + test -z ''
|
|---|
| 11 | ++ uname -r
|
|---|
| 12 | + TARGET_VER=4.1.12-124.26.7.el6uek.x86_64
|
|---|
| 13 | + SKIPFILE_BASE=/var/lib/VBoxGuestAdditions/skip
|
|---|
| 14 | + export BUILD_TYPE
|
|---|
| 15 | + export USERNAME
|
|---|
| 16 | + /sbin/modprobe -c
|
|---|
| 17 | + grep -q '^allow_unsupported_modules *0'
|
|---|
| 18 | ++ which /sbin/rcvboxadd
|
|---|
| 19 | + '[' /sbin/rcvboxadd = /sbin/rc ']'
|
|---|
| 20 | + dev=/dev/vboxguest
|
|---|
| 21 | + userdev=/dev/vboxuser
|
|---|
| 22 | + config=/var/lib/VBoxGuestAdditions/config
|
|---|
| 23 | + owner=vboxadd
|
|---|
| 24 | + group=1
|
|---|
| 25 | + test -r /var/lib/VBoxGuestAdditions/config
|
|---|
| 26 | + . /var/lib/VBoxGuestAdditions/config
|
|---|
| 27 | ++ INSTALL_DIR=/opt/VBoxGuestAdditions-6.0.6
|
|---|
| 28 | ++ INSTALL_MODULES_DIR=/opt/VBoxGuestAdditions-6.0.6/installer/
|
|---|
| 29 | ++ INSTALL_MODULES_LIST=
|
|---|
| 30 | ++ UNINSTALLER=uninstall.sh
|
|---|
| 31 | ++ INSTALL_VER=6.0.6
|
|---|
| 32 | ++ BUILD_TYPE=release
|
|---|
| 33 | ++ USERNAME=vbox
|
|---|
| 34 | + test -n /opt/VBoxGuestAdditions-6.0.6 -a -n 6.0.6
|
|---|
| 35 | + MODULE_SRC=/opt/VBoxGuestAdditions-6.0.6/src/vboxguest-6.0.6
|
|---|
| 36 | + BUILDINTMP=/opt/VBoxGuestAdditions-6.0.6/src/vboxguest-6.0.6/build_in_tmp
|
|---|
| 37 | + for i in '"$@"'
|
|---|
| 38 | + case "$i" in
|
|---|
| 39 | + case "$1" in
|
|---|
| 40 | + start
|
|---|
| 41 | + begin Starting.
|
|---|
| 42 | + test -n ''
|
|---|
| 43 | + echo 'VirtualBox Guest Additions: Starting.'
|
|---|
| 44 | VirtualBox Guest Additions: Starting.
|
|---|
| 45 | + test -z ''
|
|---|
| 46 | + rm -f /var/lib/VBoxGuestAdditions/skip-2.6.32-754.2.1.el6.x86_64 /var/lib/VBoxGuestAdditions/skip-2.6.32-754.3.5.el6.x86_64 /var/lib/VBoxGuestAdditions/skip-2.6.32-754.el6.x86_64 /var/lib/VBoxGuestAdditions/skip-4.1.12-124.26.3.el6uek.x86_64 /var/lib/VBoxGuestAdditions/skip-4.1.12-124.26.5.el6uek.x86_64 /var/lib/VBoxGuestAdditions/skip-4.1.12-124.26.7.el6uek.x86_64
|
|---|
| 47 | + for setupi in '/lib/modules/*'
|
|---|
| 48 | + KERN_VER=2.6.32-754.2.1.el6.x86_64
|
|---|
| 49 | + touch /var/lib/VBoxGuestAdditions/skip-2.6.32-754.2.1.el6.x86_64
|
|---|
| 50 | + for setupi in '/lib/modules/*'
|
|---|
| 51 | + KERN_VER=2.6.32-754.3.5.el6.x86_64
|
|---|
| 52 | + touch /var/lib/VBoxGuestAdditions/skip-2.6.32-754.3.5.el6.x86_64
|
|---|
| 53 | + for setupi in '/lib/modules/*'
|
|---|
| 54 | + KERN_VER=2.6.32-754.el6.x86_64
|
|---|
| 55 | + touch /var/lib/VBoxGuestAdditions/skip-2.6.32-754.el6.x86_64
|
|---|
| 56 | + for setupi in '/lib/modules/*'
|
|---|
| 57 | + KERN_VER=4.1.12-124.26.3.el6uek.x86_64
|
|---|
| 58 | + touch /var/lib/VBoxGuestAdditions/skip-4.1.12-124.26.3.el6uek.x86_64
|
|---|
| 59 | + for setupi in '/lib/modules/*'
|
|---|
| 60 | + KERN_VER=4.1.12-124.26.5.el6uek.x86_64
|
|---|
| 61 | + touch /var/lib/VBoxGuestAdditions/skip-4.1.12-124.26.5.el6uek.x86_64
|
|---|
| 62 | + for setupi in '/lib/modules/*'
|
|---|
| 63 | + KERN_VER=4.1.12-124.26.7.el6uek.x86_64
|
|---|
| 64 | + touch /var/lib/VBoxGuestAdditions/skip-4.1.12-124.26.7.el6uek.x86_64
|
|---|
| 65 | + setup
|
|---|
| 66 | + test '!' -e /etc/selinux/config
|
|---|
| 67 | + chcon -t bin_t /opt/VBoxGuestAdditions-6.0.6/src/vboxguest-6.0.6/build_in_tmp
|
|---|
| 68 | + test -z ''
|
|---|
| 69 | + info 'Building the VirtualBox Guest Additions kernel modules. This may take a while.'
|
|---|
| 70 | + test -z ''
|
|---|
| 71 | + echo 'VirtualBox Guest Additions: Building the VirtualBox Guest Additions kernel modules. This may take a while.'
|
|---|
| 72 | + fold -s
|
|---|
| 73 | VirtualBox Guest Additions: Building the VirtualBox Guest Additions kernel
|
|---|
| 74 | modules. This may take a while.
|
|---|
| 75 | + info 'To build modules for other installed kernels, run'
|
|---|
| 76 | + test -z ''
|
|---|
| 77 | + echo 'VirtualBox Guest Additions: To build modules for other installed kernels, run'
|
|---|
| 78 | + fold -s
|
|---|
| 79 | VirtualBox Guest Additions: To build modules for other installed kernels, run
|
|---|
| 80 | + info ' /sbin/rcvboxadd quicksetup <version>'
|
|---|
| 81 | + test -z ''
|
|---|
| 82 | + echo 'VirtualBox Guest Additions: /sbin/rcvboxadd quicksetup <version>'
|
|---|
| 83 | + fold -s
|
|---|
| 84 | VirtualBox Guest Additions: /sbin/rcvboxadd quicksetup <version>
|
|---|
| 85 | + info or
|
|---|
| 86 | + test -z ''
|
|---|
| 87 | + echo 'VirtualBox Guest Additions: or'
|
|---|
| 88 | + fold -s
|
|---|
| 89 | VirtualBox Guest Additions: or
|
|---|
| 90 | + info ' /sbin/rcvboxadd quicksetup all'
|
|---|
| 91 | + test -z ''
|
|---|
| 92 | + echo 'VirtualBox Guest Additions: /sbin/rcvboxadd quicksetup all'
|
|---|
| 93 | + fold -s
|
|---|
| 94 | VirtualBox Guest Additions: /sbin/rcvboxadd quicksetup all
|
|---|
| 95 | + test -d /lib/modules/4.1.12-124.26.7.el6uek.x86_64/build
|
|---|
| 96 | + setup_modules 4.1.12-124.26.7.el6uek.x86_64
|
|---|
| 97 | + KERN_VER=4.1.12-124.26.7.el6uek.x86_64
|
|---|
| 98 | + test -n 4.1.12-124.26.7.el6uek.x86_64
|
|---|
| 99 | + set /lib/modules/4.1.12-124.26.7.el6uek.x86_64/misc/vboxguest.ko
|
|---|
| 100 | + test '!' -f /lib/modules/4.1.12-124.26.7.el6uek.x86_64/misc/vboxguest.ko
|
|---|
| 101 | + return 0
|
|---|
| 102 | + depmod
|
|---|
| 103 | + create_vbox_user
|
|---|
| 104 | + useradd -d /var/run/vboxadd -g 1 -r -s /bin/false vboxadd
|
|---|
| 105 | + true
|
|---|
| 106 | + useradd -d /var/run/vboxadd -g 1 -u 501 -o -s /bin/false vboxadd
|
|---|
| 107 | + true
|
|---|
| 108 | + create_udev_rule
|
|---|
| 109 | + '[' -d /etc/udev/rules.d ']'
|
|---|
| 110 | + udev_call=
|
|---|
| 111 | ++ which udevadm
|
|---|
| 112 | + udev_app=/sbin/udevadm
|
|---|
| 113 | + '[' 0 -eq 0 ']'
|
|---|
| 114 | + udev_call='/sbin/udevadm version 2> /dev/null'
|
|---|
| 115 | + udev_fix==
|
|---|
| 116 | + '[' '/sbin/udevadm version 2> /dev/null' '!=' '' ']'
|
|---|
| 117 | ++ /sbin/udevadm version '2>' /dev/null
|
|---|
| 118 | + udev_out=147
|
|---|
| 119 | ++ expr 147 : '[^0-9]*\([0-9]*\)'
|
|---|
| 120 | + udev_ver=147
|
|---|
| 121 | + '[' 147 = '' -o 147 -lt 55 ']'
|
|---|
| 122 | + echo 'KERNEL=="vboxguest", NAME="vboxguest", OWNER="vboxadd", MODE="0660"'
|
|---|
| 123 | + echo 'KERNEL=="vboxuser", NAME="vboxuser", OWNER="vboxadd", MODE="0666"'
|
|---|
| 124 | + test -n ''
|
|---|
| 125 | + create_module_rebuild_script
|
|---|
| 126 | + mkdir -p /etc/kernel/postinst.d /etc/kernel/prerm.d
|
|---|
| 127 | + cat
|
|---|
| 128 | + cat
|
|---|
| 129 | + chmod 0755 /etc/kernel/postinst.d/vboxadd /etc/kernel/prerm.d/vboxadd
|
|---|
| 130 | + shared_folder_setup
|
|---|
| 131 | + groupadd -r -f vboxsf
|
|---|
| 132 | + ln -sf /opt/VBoxGuestAdditions-6.0.6/other/mount.vboxsf /sbin
|
|---|
| 133 | + test -e /etc/selinux/config
|
|---|
| 134 | + command -v semanage
|
|---|
| 135 | + semanage fcontext -a -t mount_exec_t /opt/VBoxGuestAdditions-6.0.6/other/mount.vboxsf
|
|---|
| 136 | + chcon -t mount_exec_t /opt/VBoxGuestAdditions-6.0.6/other/mount.vboxsf
|
|---|
| 137 | + running_vboxguest
|
|---|
| 138 | + lsmod
|
|---|
| 139 | + grep -q 'vboxguest[^_-]'
|
|---|
| 140 | + info 'Running kernel modules will not be replaced until the system is restarted'
|
|---|
| 141 | + test -z ''
|
|---|
| 142 | + echo 'VirtualBox Guest Additions: Running kernel modules will not be replaced until the system is restarted'
|
|---|
| 143 | + fold -s
|
|---|
| 144 | VirtualBox Guest Additions: Running kernel modules will not be replaced until
|
|---|
| 145 | the system is restarted
|
|---|
| 146 | ++ /opt/VBoxGuestAdditions-6.0.6/init/vboxadd-x11 setup
|
|---|
| 147 | + myerr='Installing X.Org Server 1.17 modules
|
|---|
| 148 | You may need to restart the Window System (or just restart the guest system)
|
|---|
| 149 | to enable the Guest Additions.'
|
|---|
| 150 | + test -z 'Installing X.Org Server 1.17 modules
|
|---|
| 151 | You may need to restart the Window System (or just restart the guest system)
|
|---|
| 152 | to enable the Guest Additions.'
|
|---|
| 153 | + log 'Installing X.Org Server 1.17 modules
|
|---|
| 154 | You may need to restart the Window System (or just restart the guest system)
|
|---|
| 155 | to enable the Guest Additions.'
|
|---|
| 156 | + setup_log
|
|---|
| 157 | + test -z ''
|
|---|
| 158 | + LOG=/var/log/vboxadd-setup.log
|
|---|
| 159 | + mv /var/log/vboxadd-setup.log.3 /var/log/vboxadd-setup.log.4
|
|---|
| 160 | + mv /var/log/vboxadd-setup.log.2 /var/log/vboxadd-setup.log.3
|
|---|
| 161 | + mv /var/log/vboxadd-setup.log.1 /var/log/vboxadd-setup.log.2
|
|---|
| 162 | + mv /var/log/vboxadd-setup.log /var/log/vboxadd-setup.log.1
|
|---|
| 163 | + echo 'Installing X.Org Server 1.17 modules
|
|---|
| 164 | You may need to restart the Window System (or just restart the guest system)
|
|---|
| 165 | to enable the Guest Additions.'
|
|---|
| 166 | + return 0
|
|---|
| 167 | + test -z ''
|
|---|
| 168 | + test -d /sys
|
|---|
| 169 | + ps -A -o comm
|
|---|
| 170 | + grep -q '/*udevd$'
|
|---|
| 171 | + running_vboxguest
|
|---|
| 172 | + lsmod
|
|---|
| 173 | + grep -q 'vboxguest[^_-]'
|
|---|
| 174 | + case "$no_udev" in
|
|---|
| 175 | + return 0
|
|---|
| 176 | + exit
|
|---|
| 177 |
|
|---|