VirtualBox

Changeset 68189 in vbox for trunk/src


Ignore:
Timestamp:
Jul 31, 2017 9:39:12 AM (7 years ago)
Author:
vboxsync
Message:

Unattended/*postinstall.sh: new validation kit location (linux)

Location:
trunk/src/VBox/Main/UnattendedTemplates
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/UnattendedTemplates/debian_postinstall.sh

    r68164 r68189  
    206206echo '** Installing Test Execution Service...' | tee -a "${MY_LOGFILE}"
    207207log_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/"
     208log_command mkdir -p "${MY_TARGET}/opt/validationkit" "${MY_TARGET}/media/cdrom"
     209log_command cp -R ${MY_CDROM_NOCHROOT}/vboxvalidationkit/* "${MY_TARGET}/opt/validationkit/"
     210log_command chmod -R u+rw,a+xr "${MY_TARGET}/opt/validationkit/"
     211if [ -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=
     215fi
    211216
    212217# systemd service config:
     
    214219test -d "${MY_TARGET}/usr/lib/systemd/system" && MY_UNIT_PATH="${MY_TARGET}/usr/lib/systemd/system"
    215220if [ -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"
    217222    log_command chmod 644 "${MY_UNIT_PATH}/vboxtxs.service"
    218223    log_command_in_target systemctl -q enable vboxtxs
  • trunk/src/VBox/Main/UnattendedTemplates/redhat_postinstall.sh

    r68180 r68189  
    190190log_command chmod -R u+rw,a+xr "${MY_TARGET}/opt/validationkit/"
    191191if [ -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
    192193    log_command_in_target chcon -R -t usr_t "/opt/validationkit/"
     194    MY_IGNORE_EXITCODE=
    193195fi
    194196
     
    197199test -d "${MY_TARGET}/usr/lib/systemd/system" && MY_UNIT_PATH="${MY_TARGET}/usr/lib/systemd/system"
    198200if [ -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"
    201201    log_command cp "${MY_TARGET}/opt/validationkit/linux/vboxtxs.service" "${MY_UNIT_PATH}/vboxtxs.service"
    202202    log_command chmod 644 "${MY_UNIT_PATH}/vboxtxs.service"
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette