VirtualBox

Changeset 68057 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
Jul 20, 2017 10:38:12 AM (8 years ago)
Author:
vboxsync
Message:

Unattended: Moved the unattended templates into Main where they belong and renamed their installation directory to 'UnattendedTemplates' (was 'unattended_templates'). Added them to the solaris and darwin installers. Corrected the ubuntu template to with a ubiquity/success_command line duplicating preseed/late_command so the commands actually get executed.

Location:
trunk/src/VBox/Main
Files:
3 edited
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/Makefile.kmk

    r67753 r68057  
    3434include $(PATH_SUB_CURRENT)/testcase/Makefile.kmk
    3535include $(PATH_SUB_CURRENT)/cbinding/Makefile.kmk
     36include $(PATH_SUB_CURRENT)/UnattendedTemplates/Makefile.kmk
    3637
    3738
  • trunk/src/VBox/Main/UnattendedTemplates/debian_preseed.cfg

    r67882 r68057  
    6363# Custom Commands
    6464d-i preseed/late_command string \
    65 mkdir /target/postinstall; \
    66 cd /target/postinstall; \
    67 touch post-install.sh; \
    68 echo '#!/bin/bash' >> post-install.sh; \
    69 echo 'apt-get -y install build-essential' >> post-install.sh; \
    70 echo 'apt-get -y install linux-headers-$(uname -r)' >> post-install.sh; \
    71 @@VBOX_COND_IS_INSTALLING_ADDITIONS@@echo 'mkdir /mnt/cdrom' >> post-install.sh; \
    72 echo 'echo' >> post-install.sh; \
    73 echo 'echo "Installing VirtualBox Guest Additions..."' >> post-install.sh; \
    74 echo 'mount -t iso9660 -o ro /dev/sr1 /mnt/cdrom' >> post-install.sh; \
    75 echo 'bash /mnt/cdrom/VBoxLinuxAdditions.run' >> post-install.sh; \
    76 echo 'usermod -a -G vboxsf @@VBOX_INSERT_USER_LOGIN@@' >> post-install.sh; \
    77 echo 'eject /dev/sr0' >> post-install.sh; \
    78 @@VBOX_COND_END@@echo 'exit 0' >> post-install.sh; \
    79 chroot /target chmod +x /postinstall/post-install.sh; \
     65mkdir -p /target/postinstall && \
     66cd /target/postinstall && \
     67echo '#!/bin/bash' > post-install.sh && \
     68echo 'apt-get -y install build-essential' >> post-install.sh && \
     69echo 'apt-get -y install linux-headers-$(uname -r)' >> post-install.sh && \
     70@@VBOX_COND_IS_INSTALLING_ADDITIONS@@echo 'echo' >> post-install.sh && \
     71echo 'echo "Installing VirtualBox Guest Additions..."' >> post-install.sh && \
     72echo 'bash /cdrom/VBoxAdditions/VBoxLinuxAdditions.run' >> post-install.sh && \
     73echo 'usermod -a -G vboxsf "@@VBOX_INSERT_USER_LOGIN@@"' >> post-install.sh && \
     74@@VBOX_COND_END@@@@VBOX_COND_IS_INSTALLING_TEST_EXEC_SERVICE@@echo 'echo' >> post-install.sh && \
     75echo 'echo "TODO: Installing Test Execution Service..."' >> post-install.sh && \
     76@@VBOX_COND_END@@echo exit 0' >> post-install.sh && \
     77chmod +x /target/postinstall/post-install.sh && \
    8078chroot /target /bin/bash /postinstall/post-install.sh
     79
  • trunk/src/VBox/Main/UnattendedTemplates/ubuntu_preseed.cfg

    r67882 r68057  
    6363# Custom Commands
    6464d-i preseed/late_command string \
    65 mkdir /target/postinstall; \
    66 cd /target/postinstall; \
    67 touch post-install.sh; \
    68 echo '#!/bin/bash' >> post-install.sh; \
    69 echo 'apt-get -y install build-essential' >> post-install.sh; \
    70 echo 'apt-get -y install linux-headers-$(uname -r)' >> post-install.sh; \
    71 @@VBOX_COND_IS_INSTALLING_ADDITIONS@@echo 'mkdir /mnt/cdrom' >> post-install.sh; \
    72 echo 'echo' >> post-install.sh; \
    73 echo 'echo "Installing VirtualBox Guest Additions..."' >> post-install.sh; \
    74 echo 'mount -t iso9660 -o ro /dev/sr1 /mnt/cdrom' >> post-install.sh; \
    75 echo 'bash /mnt/cdrom/VBoxLinuxAdditions.run' >> post-install.sh; \
    76 echo 'usermod -a -G vboxsf @@VBOX_INSERT_USER_LOGIN@@' >> post-install.sh; \
    77 echo 'eject /dev/sr0' >> post-install.sh; \
    78 @@VBOX_COND_END@@echo 'exit 0' >> post-install.sh; \
    79 chroot /target chmod +x /postinstall/post-install.sh; \
     65mkdir -p /target/postinstall && \
     66cd /target/postinstall && \
     67echo '#!/bin/bash' > post-install.sh && \
     68echo 'apt-get -y install build-essential' >> post-install.sh && \
     69echo 'apt-get -y install linux-headers-$(uname -r)' >> post-install.sh && \
     70@@VBOX_COND_IS_INSTALLING_ADDITIONS@@echo 'echo' >> post-install.sh && \
     71echo 'echo "Installing VirtualBox Guest Additions..."' >> post-install.sh && \
     72echo 'bash /cdrom/VBoxAdditions/VBoxLinuxAdditions.run' >> post-install.sh && \
     73echo 'usermod -a -G vboxsf "@@VBOX_INSERT_USER_LOGIN@@"' >> post-install.sh && \
     74@@VBOX_COND_END@@@@VBOX_COND_IS_INSTALLING_TEST_EXEC_SERVICE@@echo 'echo' >> post-install.sh && \
     75echo 'echo "TODO: Installing Test Execution Service..."' >> post-install.sh && \
     76@@VBOX_COND_END@@echo exit 0' >> post-install.sh && \
     77chmod +x /target/postinstall/post-install.sh && \
    8078chroot /target /bin/bash /postinstall/post-install.sh
     79
     80# Same as above, but for ubiquity.
     81ubiquity ubiquity/success_command string \
     82mkdir -p /target/postinstall && \
     83cd /target/postinstall && \
     84echo '#!/bin/bash' > post-install.sh && \
     85echo 'apt-get -y install build-essential' >> post-install.sh && \
     86echo 'apt-get -y install linux-headers-$(uname -r)' >> post-install.sh && \
     87@@VBOX_COND_IS_INSTALLING_ADDITIONS@@echo 'echo' >> post-install.sh && \
     88echo 'echo "Installing VirtualBox Guest Additions..."' >> post-install.sh && \
     89echo 'bash /cdrom/VBoxAdditions/VBoxLinuxAdditions.run' >> post-install.sh && \
     90echo 'usermod -a -G vboxsf "@@VBOX_INSERT_USER_LOGIN@@"' >> post-install.sh && \
     91@@VBOX_COND_END@@@@VBOX_COND_IS_INSTALLING_TEST_EXEC_SERVICE@@echo 'echo' >> post-install.sh && \
     92echo 'echo "TODO: Installing Test Execution Service..."' >> post-install.sh && \
     93@@VBOX_COND_END@@echo exit 0' >> post-install.sh && \
     94chmod +x /target/postinstall/post-install.sh && \
     95chroot /target /bin/bash /postinstall/post-install.sh
     96
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