Skip to content

Commit 8d5591b

Browse files
committed
Update to 5.1.3
1 parent 99b20c9 commit 8d5591b

File tree

5 files changed

+153
-0
lines changed

5 files changed

+153
-0
lines changed

images/iso/autoinstall/README.md

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Ubuntu Autoinstall
2+
3+
Link: https://canonical-subiquity.readthedocs-hosted.com/en/latest/intro-to-autoinstall.html
4+
5+
## DHCP/Static IP
6+
7+
* Automated DHCP: `nocloud-dhcp/user-data`
8+
* Static IP: `nocloud-nodhcp/user-data` (there is
9+
*interactive-sections* which will invoke text UI to enter IP
10+
address manually or select the DHCP).
11+
12+
13+
## Note
14+
15+
The `autoinstall.yaml` is expected to be present in the root of ISO
16+
Image. Its format is missing main `autoinstall:` header in 22.04. In
17+
later version (>= 24) it is expected to have different indentation:
18+
19+
```yaml
20+
# Autoinstall configuration
21+
autoinstall:
22+
version: 1
23+
24+
# Storage configuration with LVM
25+
storage:
26+
layout:
27+
name: lvm
28+
...
29+
```
30+

images/iso/autoinstall/nocloud-dhcp/meta-data

Whitespace-only changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
#cloud-config
2+
# https://ubuntu.com/server/docs/install/autoinstall-reference
3+
autoinstall:
4+
version: 1
5+
6+
interactive-sections:
7+
- network
8+
- identity
9+
- locale
10+
- keyboard
11+
12+
13+
apt:
14+
fallback: offline-install
15+
preserve_sources_list: false
16+
17+
18+
19+
20+
source:
21+
search_drivers: false
22+
id: ubuntu-server
23+
24+
storage:
25+
layout:
26+
name: lvm
27+
28+
29+
30+
31+
users:
32+
- name: ubuntu
33+
groups: [adm, cdrom, dip, plugdev, lxd, sudo]
34+
lock-passwd: false
35+
sudo: ALL=(ALL) NOPASSWD:ALL
36+
shell: /bin/bash
37+
locale: en_US.UTF-8
38+
timezone: UTC
39+
40+
ssh:
41+
install-server: true
42+
allow-pw: true
43+
ssh_pwauth: true
44+
45+
resize_rootfs: false
46+
47+
# iptables-persistent settings
48+
early-commands:
49+
- echo 'iptables-persistent iptables-persistent/autosave_v6 boolean false' | debconf-set-selections
50+
- echo 'iptables-persistent iptables-persistent/autosave_v4 boolean false' | debconf-set-selections
51+
52+
53+
54+
late-commands:
55+
- rm -r /target/var/cache/apt
56+
- cp -r /cdrom/apt /target/var/cache/
57+
- curtin in-target --target /target -- apt-get -yy install apt-transport-https iptables-persistent ipset libjansson4 libltdl7 liblzo2-2 libnet1 libyaml-0-2 nano ntp ntpdate snmp tcpdump net-tools libsnappy1v5 python3-dateutil
58+
- |
59+
if [ -d /sys/firmware/efi ]; then
60+
apt-get install -y efibootmgr
61+
efibootmgr -o $(efibootmgr | perl -n -e '/Boot(.+)\* ubuntu/ && print $1')
62+
fi
63+
- cp -r /cdrom/ona/ /target/root/
64+
- curtin in-target --target=/target -- bash -xv /root/ona/configure.sh
65+
+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#!/bin/sh
2+
3+
# Copyright 2015 Observable Networks
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
17+
set -e
18+
19+
case "$1" in
20+
abort-upgrade|abort-remove|abort-deconfigure|configure)
21+
;;
22+
*)
23+
echo "postinst called with unknown argument \`$1'" >&2
24+
exit 1
25+
;;
26+
esac
27+
28+
29+
PYTHONPATH="/opt/obsrvbl-ona:/opt/obsrvbl-ona/system/python-packages" /usr/bin/python3 /opt/obsrvbl-ona/ona_service/installation/postinst.py "UbuntuNoble"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#!/bin/sh
2+
3+
# Copyright 2015 Observable Networks
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
17+
set -e
18+
19+
case "$1" in
20+
abort-upgrade|abort-remove|abort-deconfigure|configure)
21+
;;
22+
*)
23+
echo "postinst called with unknown argument \`$1'" >&2
24+
exit 1
25+
;;
26+
esac
27+
28+
29+
PYTHONPATH="/opt/obsrvbl-ona:/opt/obsrvbl-ona/system/python-packages" /usr/bin/python3 /opt/obsrvbl-ona/ona_service/installation/postinst.py "UbuntuNobleContainer"

0 commit comments

Comments
 (0)