Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/VBox/Main/UnattendedTemplates/debian_postinstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,10 @@ log_command_in_target /bin/bash "${MY_CHROOT_CDROM}/vboxadditions/@@VBOX_INSERT_
log_command_in_target /bin/bash -c "udevadm control --reload-rules" # GAs doesn't yet do this.
log_command_in_target /bin/bash -c "udevadm trigger" # (ditto)
MY_IGNORE_EXITCODE=
# Currently in Ubuntu, the vboxsf group does not exist when this script executes.
# But if it does in the future, the --force option will ensure the command
# still succeeds.
log_command_in_target groupadd --force --system vboxsf
log_command_in_target usermod -a -G vboxsf "@@VBOX_INSERT_USER_LOGIN@@"
@@VBOX_COND_END@@

Expand Down
21 changes: 7 additions & 14 deletions src/VBox/Main/UnattendedTemplates/ubuntu_autoinstall_user_data
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ autoinstall:
keyboard:
layout: us

identity:
realname: '@@VBOX_INSERT_USER_FULL_NAME@@'
username: '@@VBOX_INSERT_USER_LOGIN@@'
password: '@@VBOX_INSERT_USER_PASSWORD_SHACRYPT512@@'
hostname: '@@VBOX_INSERT_HOSTNAME_WITHOUT_DOMAIN@@'

shutdown: reboot

storage:
Expand Down Expand Up @@ -40,7 +46,7 @@ autoinstall:
# Additional cloud-init configuration affecting the target system can be supplied
# underneath a user-data section inside of autoinstall.
user-data:
hostname: '@@VBOX_INSERT_HOSTNAME_WITHOUT_DOMAIN@@'

users:
- name: root
primary_group: root
Expand All @@ -49,19 +55,6 @@ autoinstall:
passwd: '@@VBOX_INSERT_USER_PASSWORD_SHACRYPT512@@'
uid: 0

- name: '@@VBOX_INSERT_USER_LOGIN@@'
gecos: '@@VBOX_INSERT_USER_LOGIN@@'
primary_group: '@@VBOX_INSERT_USER_LOGIN@@'
@@VBOX_COND_IS_INSTALLING_ADDITIONS@@
groups: sudo, vboxsf
@@VBOX_COND_END@@
@@VBOX_COND_IS_NOT_INSTALLING_ADDITIONS@@
groups: sudo
@@VBOX_COND_END@@
lock-passwd: false
shell: /bin/bash
passwd: '@@VBOX_INSERT_USER_PASSWORD_SHACRYPT512@@'

@@VBOX_COND_IS_RTC_USING_UTC@@
timezone: Etc/UTC
@@VBOX_COND_END@@
Expand Down