Last change
on this file since 102414 was 102414, checked in by vboxsync, 12 months ago |
Main/Unattended: Added fallback to performing an offline install to ubuntu_autoinstall_user, if for whatever reason no internet connection is available (instead of aborting). bugref:10551
|
-
Property svn:eol-style
set to
native
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
1.6 KB
|
Line | |
---|
1 | #cloud-config
|
---|
2 | autoinstall:
|
---|
3 | # version is an Autoinstall required field.
|
---|
4 | version: 1
|
---|
5 |
|
---|
6 | apt:
|
---|
7 | fallback: offline-install
|
---|
8 |
|
---|
9 | locale: @@VBOX_INSERT_LOCALE@@
|
---|
10 | keyboard:
|
---|
11 | layout: us
|
---|
12 |
|
---|
13 | identity:
|
---|
14 | realname: '@@VBOX_INSERT_USER_FULL_NAME@@'
|
---|
15 | username: '@@VBOX_INSERT_USER_LOGIN@@'
|
---|
16 | password: '@@VBOX_INSERT_USER_PASSWORD_SHACRYPT512@@'
|
---|
17 | hostname: '@@VBOX_INSERT_HOSTNAME_WITHOUT_DOMAIN@@'
|
---|
18 |
|
---|
19 | shutdown: reboot
|
---|
20 |
|
---|
21 | storage:
|
---|
22 | layout:
|
---|
23 | name: direct
|
---|
24 | swap:
|
---|
25 | size: 0
|
---|
26 |
|
---|
27 | @@VBOX_COND_HAS_PROXY@@
|
---|
28 | proxy: @@VBOX_INSERT_PROXY@@
|
---|
29 | @@VBOX_COND_END@@
|
---|
30 |
|
---|
31 | @@VBOX_COND_IS_INSTALLING_ADDITIONS@@
|
---|
32 | # Stuff we need to build Guest Additions modules.
|
---|
33 | packages:
|
---|
34 | - build-essential
|
---|
35 | - linux-headers-generic
|
---|
36 | - perl
|
---|
37 | - make
|
---|
38 | @@VBOX_COND_END@@
|
---|
39 |
|
---|
40 | # Custom Commands.
|
---|
41 | late-commands:
|
---|
42 | - cp /cdrom/vboxpostinstall.sh /target/root/vboxpostinstall.sh
|
---|
43 | - chmod +x /target/root/vboxpostinstall.sh
|
---|
44 | - curtin in-target --target=/target -- /bin/bash /root/vboxpostinstall.sh --direct
|
---|
45 |
|
---|
46 | # Additional cloud-init configuration affecting the target system can be supplied
|
---|
47 | # underneath a user-data section inside of autoinstall.
|
---|
48 | user-data:
|
---|
49 |
|
---|
50 | users:
|
---|
51 | - name: root
|
---|
52 | primary_group: root
|
---|
53 | groups: sudo
|
---|
54 | lock-passwd: false
|
---|
55 | passwd: '@@VBOX_INSERT_USER_PASSWORD_SHACRYPT512@@'
|
---|
56 | uid: 0
|
---|
57 |
|
---|
58 | @@VBOX_COND_IS_RTC_USING_UTC@@
|
---|
59 | timezone: Etc/UTC
|
---|
60 | @@VBOX_COND_END@@
|
---|
61 | @@VBOX_COND_IS_NOT_RTC_USING_UTC@@
|
---|
62 | timezone: @@VBOX_INSERT_TIME_ZONE_UX@@
|
---|
63 | @@VBOX_COND_END@@
|
---|
64 |
|
---|
65 | ntp:
|
---|
66 | @@VBOX_COND_IS_INSTALLING_ADDITIONS@@
|
---|
67 | enabled: false
|
---|
68 | @@VBOX_COND_END@@
|
---|
69 | @@VBOX_COND_IS_NOT_INSTALLING_ADDITIONS@@
|
---|
70 | enabled: true
|
---|
71 | @@VBOX_COND_END@@
|
---|
Note:
See
TracBrowser
for help on using the repository browser.