Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync image definitions with lxc-ci #69

Closed
wants to merge 43 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
789ddbe
images/debian: Add Debian trixie
monstermunchkin Nov 2, 2023
5723377
images/centos: Fix mirror for 9-Stream
monstermunchkin Nov 7, 2023
e27e988
images/ubuntu: Ubuntu noble container netplan missing
agowa Nov 19, 2023
72b186f
images/debian: Fix debian/sid build for LXC
liberodark Jan 2, 2024
834be5a
images: Always use MAC identifier for networkd
stgraber Feb 10, 2024
96c58e2
images/debian: Cleanup grub install
stgraber Feb 14, 2024
33e9cee
images/ubuntu: Align grub-install with Debian
stgraber Feb 14, 2024
d5b7dec
images/centos: Switch to dnf
stgraber Sep 6, 2023
0ebeb03
images/fedora: Re-order package blocks
stgraber Sep 20, 2023
f0fe7fa
images/fedora: Tweak fedora packages
stgraber Sep 20, 2023
3cfe839
images/alpine: Add 3.19
stgraber Dec 28, 2023
1e8a500
images/archlinux: Disable colord in desktop image
stgraber Jan 27, 2024
6bb5a7e
images/alpine: Fix Alpine boot hang in VM
stgraber Aug 3, 2023
2c18ba8
images/ubuntu: Drop kinetic images
stgraber Jul 19, 2023
11891f6
images/ubuntu: Fix path to growpart
stgraber Jul 27, 2023
5cdcc08
images/ubuntu: Disable geoclue
stgraber Jul 27, 2023
fe17eda
images/ubuntu: Re-enable legacy cloud-init in Ubuntu
stgraber Oct 7, 2023
452407a
images: Skip welcome tour in desktop images
stgraber Jul 28, 2023
7c551a1
images/ubuntu: Add Ubuntu Noble Numbat (24.04)
monstermunchkin Nov 2, 2023
f8c4b7c
images/ubuntu: Disable UA auto-attach
stgraber Feb 19, 2024
ce266d6
images/fedora: Update mirror
MusicDin Feb 20, 2024
c32422a
images/ubuntu: Drop lunar images
MusicDin Feb 20, 2024
e623968
images/opensuse: Workaround EFI issue on OpenSUSE
stgraber Jul 19, 2023
eb5cebc
images/opensuse: Fix opensuse cloud-init builds
stgraber Jul 27, 2023
7bee851
images/opensuse: Fix growpart on opensuse
stgraber Jul 29, 2023
8fa6d69
images/openwrt: Fix openwrt dnsmasq/dhcp on boot
mgziminsky Jul 13, 2023
74a970a
images/openwrt: Update openwrt.yaml for 23.05
tew42 Oct 15, 2023
4d2347f
images/openwrt: Disable sysntpd service
tew42 Oct 20, 2023
4f017ec
images/openwrt: Formatting cleanup
tew42 Oct 20, 2023
a46a414
images/openwrt: Fix bad OpenWRT yaml
stgraber Oct 23, 2023
8b0fd34
images/funtoo: Review specs
geaaru Dec 24, 2023
00b235e
images/apertis: Change base image
stgraber Sep 6, 2023
cb2c004
images/apertis: Switch to sysroot
stgraber Sep 6, 2023
cd1c867
images/gentoo: Fix missing locale-gen in musl base profile
liangyongxiang Dec 28, 2023
9517958
images/gentoo: Initialize machine-id for kernel install
stgraber Jan 28, 2024
e8353e5
images/gentoo: Use systemd-boot for systemd image
stgraber Jan 29, 2024
d851bff
images/gentoo: More systemd-boot logic
stgraber Jan 29, 2024
07c3fc3
images/gentoo: Split post-unpack/post-files
stgraber Jan 29, 2024
a2fe466
images/gentoo: Generate machine-id before installing kernel
stgraber Jan 29, 2024
4a689a5
images/gentoo: Install kernel late
stgraber Jan 29, 2024
060e661
images/gentoo: Add installkernel tweak
stgraber Jan 29, 2024
6837a1c
images/gentoo: vm and installkernel related updates
juippis Jan 31, 2024
0265307
images/gentoo: installkernel >=20 updates
juippis Feb 3, 2024
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 images/alpine.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,7 @@ packages:
releases:
- 3.17
- 3.18
- 3.19
- edge

- packages:
Expand Down Expand Up @@ -405,6 +406,9 @@ actions:
for svc_name in sshd; do
ln -fs /etc/init.d/${svc_name} /etc/runlevels/default/${svc_name}
done

# Tweak to prevent cloud-init from getting stuck.
echo "datasource_list: ['NoCloud', 'ConfigDrive', 'LXD', 'None']" > /etc/cloud/cloud.cfg.d/99_lxc.cfg
types:
- vm
variants:
Expand Down
3 changes: 3 additions & 0 deletions images/alt.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ files:

[Network]
DHCP=ipv4

[DHCP]
ClientIdentifier=mac
variants:
- default

Expand Down
2 changes: 2 additions & 0 deletions images/amazonlinux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ files:
[Network]
DHCP=ipv4

[DHCP]
ClientIdentifier=mac
- path: /etc/fstab
generator: dump

Expand Down
4 changes: 3 additions & 1 deletion images/apertis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ image:
distribution: Apertis
description: |-
Apertis {{ image.architecture }} {{ image.variant }} {{ image.release }} {{ image.serial }}
variant: minimal
variant: sysroot

source:
downloader: apertis-http
Expand Down Expand Up @@ -61,6 +61,8 @@ files:
[Network]
DHCP=ipv4

[DHCP]
ClientIdentifier=mac
packages:
manager: apt
update: true
Expand Down
12 changes: 12 additions & 0 deletions images/archlinux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,9 @@ files:

[Network]
DHCP=ipv4

[DHCP]
ClientIdentifier=mac
types:
- container

Expand All @@ -494,6 +497,9 @@ files:

[Network]
DHCP=ipv4

[DHCP]
ClientIdentifier=mac
types:
- vm

Expand Down Expand Up @@ -730,6 +736,9 @@ actions:
# Enable GDM
systemctl enable gdm

# Disable colord
systemctl mask colord

cat << EOF > /home/archlinux/firstboot.sh
#!/bin/sh

Expand All @@ -744,6 +753,9 @@ actions:
# Disable 60-second logout prompt when `lxc stop` is called.
gsettings set org.gnome.SessionManager logout-prompt false

# Disable welcome tour.
gsettings set org.gnome.shell welcome-dialog-last-shown-version '4294967295'

# Delete this script
rm /home/archlinux/firstboot.sh
EOF
Expand Down
8 changes: 4 additions & 4 deletions images/centos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ files:
- 8-Stream

packages:
manager: yum
manager: dnf
update: true
cleanup: true
sets:
Expand Down Expand Up @@ -742,7 +742,7 @@ actions:
cat << "EOF" > /etc/yum.repos.d/centos.repo
[baseos]
name=CentOS Stream $releasever - BaseOS
baseurl=https://mirror.xenyth.net/centos-stream/$stream/BaseOS/$basearch/os/
baseurl=https://mirror1.hs-esslingen.de/pub/Mirrors/centos-stream/$stream/BaseOS/$basearch/os/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
gpgcheck=1
repo_gpgcheck=0
Expand All @@ -752,7 +752,7 @@ actions:

[appstream]
name=CentOS Stream $releasever - AppStream
baseurl=https://mirror.xenyth.net/centos-stream/$stream/AppStream/$basearch/os/
baseurl=https://mirror1.hs-esslingen.de/pub/Mirrors/centos-stream/$stream/AppStream/$basearch/os/
metalink=https://mirrors.centos.org/metalink?repo=centos-appstream-$stream&arch=$basearch&protocol=https,http
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
gpgcheck=1
Expand All @@ -765,7 +765,7 @@ actions:
cat << "EOF" > /etc/yum.repos.d/centos-addons.repo
[extras-common]
name=CentOS Stream $releasever - Extras packages
baseurl=https://mirror.xenyth.net/centos-stream/SIGs/$stream/extras/$basearch/extras-common
baseurl=https://mirror1.hs-esslingen.de/pub/Mirrors/centos-stream/SIGs/$stream/extras/$basearch/extras-common
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-Extras-SHA512
gpgcheck=1
repo_gpgcheck=0
Expand Down
28 changes: 26 additions & 2 deletions images/debian.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1061,26 +1061,37 @@ files:
content: |-
[Match]
Name=eth0

[Network]
DHCP=true

[DHCPv4]
UseDomains=true

[DHCP]
ClientIdentifier=mac
types:
- container
releases:
- bullseye
- bookworm
- sid
- trixie

- path: /etc/systemd/network/enp5s0.network
generator: dump
content: |-
[Match]
Name=enp5s0

[Network]
DHCP=true

[DHCPv4]
UseDomains=true

[DHCP]
ClientIdentifier=mac
types:
- vm
variants:
Expand All @@ -1089,6 +1100,7 @@ files:
- bullseye
- bookworm
- sid
- trixie

- path: /etc/default/grub.d/50-lxd.cfg
generator: dump
Expand Down Expand Up @@ -1176,6 +1188,7 @@ packages:
- bullseye
- bookworm
- sid
- trixie

- packages:
- dbus
Expand All @@ -1185,6 +1198,7 @@ packages:
releases:
- bookworm
- sid
- trixie

- packages:
- cloud-init
Expand Down Expand Up @@ -1231,6 +1245,7 @@ packages:
- bullseye
- sid
- bookworm
- trixie

- packages:
- grub-efi-arm64
Expand All @@ -1251,6 +1266,7 @@ packages:
- bullseye
- sid
- bookworm
- trixie

repositories:
- name: sources.list
Expand All @@ -1269,8 +1285,7 @@ packages:
- s390x
- name: sources.list
url: |-
deb http://ftp.ports.debian.org/debian-ports unstable main
deb http://ftp.ports.debian.org/debian-ports unreleased main
deb http://deb.debian.org/debian sid main
architectures:
- riscv64

Expand Down Expand Up @@ -1341,6 +1356,7 @@ actions:
releases:
- bookworm
- sid
- trixie

- trigger: post-packages
action: |-
Expand All @@ -1357,6 +1373,7 @@ actions:
- bullseye
- bookworm
- sid
- trixie

- trigger: post-packages
action: |-
Expand All @@ -1372,6 +1389,7 @@ actions:
releases:
- bookworm
- sid
- trixie

- trigger: post-packages
action: |-
Expand All @@ -1397,6 +1415,7 @@ actions:
releases:
- bookworm
- sid
- trixie

- trigger: post-packages
action: |-
Expand Down Expand Up @@ -1449,10 +1468,13 @@ actions:
[ "$(uname -m)" = "aarch64" ] && TARGET="arm64"

update-grub

# This will create EFI/BOOT
grub-install --uefi-secure-boot --target="${TARGET}-efi" --no-nvram --removable

# This will create EFI/debian
grub-install --uefi-secure-boot --target="${TARGET}-efi" --no-nvram

update-grub
sed -i "s#root=[^ ]*#root=/dev/sda2#g" /boot/grub/grub.cfg
types:
Expand All @@ -1462,6 +1484,7 @@ actions:
- bullseye
- sid
- bookworm
- trixie

- trigger: post-files
action: |-
Expand All @@ -1473,6 +1496,7 @@ actions:
releases:
- bookworm
- sid
- trixie

- trigger: post-files
action: |-
Expand Down
21 changes: 20 additions & 1 deletion images/fedora.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ files:

[Network]
DHCP=ipv4

[DHCP]
ClientIdentifier=mac
variants:
- default
types:
Expand All @@ -106,6 +109,9 @@ files:

[Network]
DHCP=ipv4

[DHCP]
ClientIdentifier=mac
variants:
- default
types:
Expand Down Expand Up @@ -221,6 +227,19 @@ packages:
types:
- vm

- packages:
- lvm2
- lvm2-libs
action: remove
types:
- vm

- packages:
- libsss_idmap
- libsss_nss_idmap
- sssd-client
action: remove

actions:
- trigger: post-unpack
action: |-
Expand Down Expand Up @@ -249,7 +268,7 @@ actions:
for repo in $(ls /etc/yum.repos.d/*.repo); do
grep -q '^#baseurl' "${repo}" || continue

sed -ri 's/^metalink=.*/#\0/g;s@^#(baseurl=)http://download.example/pub(.*)@\1https://mirror.csclub.uwaterloo.ca/\2@g' "${repo}"
sed -ri 's/^metalink=.*/#\0/g;s@^#(baseurl=)http://download.example/pub(.*)@\1http://fedora.mirror.constant.com/\2@g' "${repo}"
done
architectures:
- aarch64
Expand Down
9 changes: 8 additions & 1 deletion images/funtoo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ files:

packages:
manager: egoportage
update: false
update: true
cleanup: true
sets:
- packages:
Expand All @@ -280,5 +280,12 @@ actions:
rc-update add netif.eth0 default
echo template=dhcpcd > /etc/conf.d/netif.eth0

- trigger: post-packages
action: |-
#!/bin/bash
# Configure LXD/LXC tty
sed -e 's|^#x1|x1|g' -e '/^c[0-9].*/d' -i /etc/inittab


mappings:
architecture_map: funtoo
Loading
Loading