mkosi: Update to latest

The Bootable= option was removed and mkosi installs less packages
by default now, so let's adapt our configs to those changes.
This commit is contained in:
Daan De Meyer 2023-04-12 17:27:06 +02:00 committed by Luca Boccassi
parent 96ead603b8
commit fde55f3a32
9 changed files with 33 additions and 5 deletions

View File

@ -73,7 +73,7 @@ jobs:
steps:
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c
- uses: systemd/mkosi@ee7f2950a25fdaaa7027937c5d9f3df6761e9fd9
- uses: systemd/mkosi@779484101987048b820b07a6111bcb0e8d5ebc1d
- name: Configure
run: |
@ -92,6 +92,9 @@ jobs:
systemd.journald.max_level_console=debug
# udev's debug log output is very verbose, so up it to info in CI.
udev.log_level=info
[Host]
ExtraSearchPaths=!*
EOF
- name: Generate secure boot key

View File

@ -1,7 +1,6 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Output]
Bootable=yes
# Prevent ASAN warnings when building the image and ship the real ASAN options prefixed with MKOSI_.
Environment=ASAN_OPTIONS=verify_asan_link_order=false
MKOSI_ASAN_OPTIONS=strict_string_checks=1:detect_stack_use_after_return=1:check_initialization_order=1:strict_init_order=1:disable_coredump=0:use_madv_dontdump=1
@ -19,6 +18,7 @@ Packages=
diffutils
dnsmasq
dosfstools
dracut
e2fsprogs
findutils
gcc # For sanitizer libraries
@ -36,7 +36,9 @@ Packages=
qrencode
sed
strace
systemd
tree
udev
util-linux
valgrind
wireguard-tools

View File

@ -8,6 +8,7 @@ Distribution=arch
[Content]
Packages=
alsa-lib
base
btrfs-progs
compsize
dhcp
@ -22,9 +23,11 @@ Packages=
libmnl
libpwquality
libxkbcommon
linux
man-db
numactl
openbsd-netcat
openssh
polkit
popt
python-pefile

View File

@ -20,6 +20,7 @@ Packages=
gnutls
iproute
iproute-tc
kernel
kernel-modules-extra
libasan
libbpf
@ -33,6 +34,7 @@ Packages=
libxkbcommon
netcat
numactl-libs
openssh-server
p11-kit
pam
passwd
@ -42,6 +44,7 @@ Packages=
python3-docutils
quota
tpm2-tss
util-linux
vim-common
BuildPackages=

View File

@ -10,6 +10,8 @@ Release=testing
Packages=
btrfs-progs
cryptsetup-bin
dbus
default-dbus-session-bus
f2fs-tools
fdisk
fuse
@ -34,7 +36,9 @@ Packages=
libpwquality1
libqrencode4
libtss2-dev # Use the -dev package to avoid churn in updating version numbers
linux-image-cloud-amd64
netcat-openbsd
openssh-server
passwd
policykit-1
procps
@ -42,6 +46,7 @@ Packages=
python3-psutil
python3-pytest
quota
systemd-sysv
xxd
BuildPackages=

View File

@ -21,6 +21,7 @@ Packages=
gnutls
iproute
iproute-tc
kernel
libasan
libbpf
libcap-ng
@ -34,6 +35,7 @@ Packages=
libxkbcommon
netcat
numactl-libs
openssh-server
pam
passwd
polkit
@ -44,6 +46,7 @@ Packages=
python3dist(pytest)
quota
tpm2-tss
util-linux
vim-common
BuildPackages=

View File

@ -15,6 +15,7 @@ Packages=
gcc # Provides libasan/libubsan
glibc-32bit
glibc-locale-base
kernel-default
libasound2
libbpf1
libcap-ng-utils
@ -36,6 +37,7 @@ Packages=
libqrencode4
libseccomp2
libxkbcommon0
openssh-server
pam
python3-pefile
python3-psutil

View File

@ -5,12 +5,14 @@ Distribution=ubuntu
[Distribution]
Release=jammy
Repositories=main,universe
Repositories=universe
[Content]
Packages=
btrfs-progs
cryptsetup-bin
dbus
default-dbus-session-bus
f2fs-tools
fdisk
fuse
@ -36,7 +38,9 @@ Packages=
libtss2-dev # Use the -dev package to avoid churn in updating version numbers
linux-tools-common
linux-tools-generic
linux-virtual
netcat-openbsd
openssh-server
passwd
policykit-1
procps
@ -44,6 +48,7 @@ Packages=
python3-psutil
python3-pytest
quota
systemd-sysv
xxd
BuildPackages=

View File

@ -47,8 +47,10 @@ EOF
systemctl mask systemd-hwdb-update.service
fi
# Make sure dnsmasq.service doesn't start on boot on Debian/Ubuntu.
rm -f /etc/systemd/system/multi-user.target.wants/dnsmasq.service
# Make sure dnsmasq doesn't start on boot on Debian/Ubuntu.
systemctl disable dnsmasq
# Make sure sshd doesn't start on Opensuse.
echo "disable sshd.service" > /usr/lib/systemd/system-preset/00-mkosi.preset
if [ -n "$IMAGE_ID" ] ; then
sed -n \