- Timestamp:
- Jul 31, 2017 9:39:12 AM (7 years ago)
- Location:
- trunk/src/VBox/Main/UnattendedTemplates
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/UnattendedTemplates/debian_postinstall.sh
r68164 r68189 206 206 echo '** Installing Test Execution Service...' | tee -a "${MY_LOGFILE}" 207 207 log_command_in_target test "${MY_CHROOT_CDROM}/vboxvalidationkit/linux/@@VBOX_INSERT_OS_ARCH@@/TestExecService" 208 log_command mkdir -p "${MY_TARGET}/root/validationkit" "${MY_TARGET}/media/cdrom" 209 log_command cp -R ${MY_CDROM_NOCHROOT}/vboxvalidationkit/* "${MY_TARGET}/root/validationkit/" 210 log_command chmod -R u+rw,a+xr "${MY_TARGET}/root/validationkit/" 208 log_command mkdir -p "${MY_TARGET}/opt/validationkit" "${MY_TARGET}/media/cdrom" 209 log_command cp -R ${MY_CDROM_NOCHROOT}/vboxvalidationkit/* "${MY_TARGET}/opt/validationkit/" 210 log_command chmod -R u+rw,a+xr "${MY_TARGET}/opt/validationkit/" 211 if [ -e "${MY_TARGET}/usr/bin/chcon" -o -e "${MY_TARGET}/bin/chcon" -o -e "${MY_TARGET}/usr/sbin/chcon" -o -e "${MY_TARGET}/sbin/chcon" ]; then 212 MY_IGNORE_EXITCODE=1 213 log_command_in_target chcon -R -t usr_t "/opt/validationkit/" 214 MY_IGNORE_EXITCODE= 215 fi 211 216 212 217 # systemd service config: … … 214 219 test -d "${MY_TARGET}/usr/lib/systemd/system" && MY_UNIT_PATH="${MY_TARGET}/usr/lib/systemd/system" 215 220 if [ -d "${MY_UNIT_PATH}" ]; then 216 log_command cp "${MY_ CDROM_NOCHROOT}/vboxvalidationkit/linux/vboxtxs.service" "${MY_UNIT_PATH}/vboxtxs.service"221 log_command cp "${MY_TARGET}/opt/validationkit/linux/vboxtxs.service" "${MY_UNIT_PATH}/vboxtxs.service" 217 222 log_command chmod 644 "${MY_UNIT_PATH}/vboxtxs.service" 218 223 log_command_in_target systemctl -q enable vboxtxs -
trunk/src/VBox/Main/UnattendedTemplates/redhat_postinstall.sh
r68180 r68189 190 190 log_command chmod -R u+rw,a+xr "${MY_TARGET}/opt/validationkit/" 191 191 if [ -e "${MY_TARGET}/usr/bin/chcon" -o -e "${MY_TARGET}/bin/chcon" -o -e "${MY_TARGET}/usr/sbin/chcon" -o -e "${MY_TARGET}/sbin/chcon" ]; then 192 MY_IGNORE_EXITCODE=1 192 193 log_command_in_target chcon -R -t usr_t "/opt/validationkit/" 194 MY_IGNORE_EXITCODE= 193 195 fi 194 196 … … 197 199 test -d "${MY_TARGET}/usr/lib/systemd/system" && MY_UNIT_PATH="${MY_TARGET}/usr/lib/systemd/system" 198 200 if [ -d "${MY_UNIT_PATH}" ]; then 199 log_command sed -e "s,/root/,/opt/,g" -i .bak "${MY_TARGET}/opt/validationkit/linux/vboxtxs"200 log_command sed -e "s,/root/,/opt/,g" -i .bak "${MY_TARGET}/opt/validationkit/linux/vboxtxs.service"201 201 log_command cp "${MY_TARGET}/opt/validationkit/linux/vboxtxs.service" "${MY_UNIT_PATH}/vboxtxs.service" 202 202 log_command chmod 644 "${MY_UNIT_PATH}/vboxtxs.service"
Note:
See TracChangeset
for help on using the changeset viewer.