VirtualBox

Changeset 67882 in vbox for trunk/src/VBox/Installer/common


Ignore:
Timestamp:
Jul 10, 2017 3:29:49 PM (8 years ago)
Author:
vboxsync
Message:

UnattendedScript: Converted preseed editor and templates to mad libs too.

Location:
trunk/src/VBox/Installer/common/unattended_templates
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Installer/common/unattended_templates/debian_preseed.cfg

    r67881 r67882  
    3939
    4040# Users
    41 d-i passwd/user-fullname string VBox user
    42 [change]d-i passwd/username string $user
    43 [change]d-i passwd/user-password password $password
    44 [change]d-i passwd/user-password-again password $password
     41d-i passwd/user-fullname string @@VBOX_INSERT_USER_FULL_NAME@@
     42d-i passwd/username string @@VBOX_INSERT_USER_LOGIN@@
     43d-i passwd/user-password password @@VBOX_INSERT_USER_PASSWORD@@
     44d-i passwd/user-password-again password @@VBOX_INSERT_USER_PASSWORD@@
    4545d-i passwd/root-login boolean true
    46 [change]d-i passwd/root-password password $password
    47 [change]d-i passwd/root-password-again password $password
     46d-i passwd/root-password password @@VBOX_INSERT_ROOT_PASSWORD@@
     47d-i passwd/root-password-again password @@VBOX_INSERT_ROOT_PASSWORD@@
    4848d-i user-setup/allow-password-weak boolean true
    4949d-i passwd/user-default-groups string admin
     
    6969echo 'apt-get -y install build-essential' >> post-install.sh; \
    7070echo 'apt-get -y install linux-headers-$(uname -r)' >> post-install.sh; \
    71 echo 'mkdir /mnt/cdrom' >> post-install.sh; \
     71@@VBOX_COND_IS_INSTALLING_ADDITIONS@@echo 'mkdir /mnt/cdrom' >> post-install.sh; \
    7272echo 'echo' >> post-install.sh; \
    7373echo 'echo "Installing VirtualBox Guest Additions..."' >> post-install.sh; \
    7474echo 'mount -t iso9660 -o ro /dev/sr1 /mnt/cdrom' >> post-install.sh; \
    7575echo 'bash /mnt/cdrom/VBoxLinuxAdditions.run' >> post-install.sh; \
     76echo 'usermod -a -G vboxsf @@VBOX_INSERT_USER_LOGIN@@' >> post-install.sh; \
    7677echo 'eject /dev/sr0' >> post-install.sh; \
    77 [change]echo 'usermod -a -G vboxsf $user' >> post-install.sh; \
    78 echo 'exit 0' >> post-install.sh; \
     78@@VBOX_COND_END@@echo 'exit 0' >> post-install.sh; \
    7979chroot /target chmod +x /postinstall/post-install.sh; \
    8080chroot /target /bin/bash /postinstall/post-install.sh
  • trunk/src/VBox/Installer/common/unattended_templates/ubuntu_preseed.cfg

    r67881 r67882  
    3939
    4040# Users
    41 d-i passwd/user-fullname string VBox user
    42 [change]d-i passwd/username string $user
    43 [change]d-i passwd/user-password password $password
    44 [change]d-i passwd/user-password-again password $password
     41d-i passwd/user-fullname string @@VBOX_INSERT_USER_FULL_NAME@@
     42d-i passwd/username string @@VBOX_INSERT_USER_LOGIN@@
     43d-i passwd/user-password password @@VBOX_INSERT_USER_PASSWORD@@
     44d-i passwd/user-password-again password @@VBOX_INSERT_USER_PASSWORD@@
    4545d-i passwd/root-login boolean true
    46 [change]d-i passwd/root-password password $password
    47 [change]d-i passwd/root-password-again password $password
     46d-i passwd/root-password password @@VBOX_INSERT_ROOT_PASSWORD@@
     47d-i passwd/root-password-again password @@VBOX_INSERT_ROOT_PASSWORD@@
    4848d-i user-setup/allow-password-weak boolean true
    4949d-i passwd/user-default-groups string admin
     
    6969echo 'apt-get -y install build-essential' >> post-install.sh; \
    7070echo 'apt-get -y install linux-headers-$(uname -r)' >> post-install.sh; \
    71 echo 'mkdir /mnt/cdrom' >> post-install.sh; \
     71@@VBOX_COND_IS_INSTALLING_ADDITIONS@@echo 'mkdir /mnt/cdrom' >> post-install.sh; \
    7272echo 'echo' >> post-install.sh; \
    7373echo 'echo "Installing VirtualBox Guest Additions..."' >> post-install.sh; \
    7474echo 'mount -t iso9660 -o ro /dev/sr1 /mnt/cdrom' >> post-install.sh; \
    7575echo 'bash /mnt/cdrom/VBoxLinuxAdditions.run' >> post-install.sh; \
     76echo 'usermod -a -G vboxsf @@VBOX_INSERT_USER_LOGIN@@' >> post-install.sh; \
    7677echo 'eject /dev/sr0' >> post-install.sh; \
    77 [change]echo 'usermod -a -G vboxsf $user' >> post-install.sh; \
    78 echo 'exit 0' >> post-install.sh; \
     78@@VBOX_COND_END@@echo 'exit 0' >> post-install.sh; \
    7979chroot /target chmod +x /postinstall/post-install.sh; \
    8080chroot /target /bin/bash /postinstall/post-install.sh
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