Merge pull request #27049 from DaanDeMeyer/update-mkosi
mkosi: Update to latest
This commit is contained in:
@@ -10,6 +10,7 @@ if install_tests
|
||||
'test-path',
|
||||
'test-path-util',
|
||||
'test-umount',
|
||||
'test-network',
|
||||
'test-network-generator-conversion',
|
||||
'testsuite-03.units',
|
||||
'testsuite-04.units',
|
||||
|
||||
@@ -1,25 +0,0 @@
|
||||
#!/bin/sh
|
||||
# SPDX-License-Identifier: LGPL-2.1-or-later
|
||||
set -ex
|
||||
|
||||
# First, source in the main build script
|
||||
. "$SRCDIR"/mkosi.build
|
||||
|
||||
mkdir -p "$DESTDIR"/usr/local/bin
|
||||
cp "$SRCDIR"/test/networkd-test.py "$DESTDIR"/usr/local/bin/networkd-test.py
|
||||
|
||||
mkdir -p "$DESTDIR"/etc/systemd/system
|
||||
cat >"$DESTDIR"/etc/systemd/system/networkd-test.service <<EOF
|
||||
[Unit]
|
||||
Description=networkd test service
|
||||
SuccessAction=exit
|
||||
FailureAction=exit
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/local/bin/networkd-test.py
|
||||
EOF
|
||||
|
||||
mkdir -p "$DESTDIR"/etc/systemd/system/multi-user.target.wants/
|
||||
ln -s ../networkd-test.service "$DESTDIR"/etc/systemd/system/multi-user.target.wants/
|
||||
|
||||
systemctl --root="$DESTDIR" disable systemd-networkd.service
|
||||
@@ -1,82 +0,0 @@
|
||||
# SPDX-License-Identifier: LGPL-2.1-or-later
|
||||
#
|
||||
# Puts together an nspawn container and runs networkd-test.py in it, inside a
|
||||
# network namespace and everything. Run this with
|
||||
#
|
||||
# mkosi -C test --default=mkosi.default.networkd-test boot
|
||||
#
|
||||
# This will start the test and eventually exit with success in case the test
|
||||
# succeeded.
|
||||
|
||||
[Distribution]
|
||||
Distribution=fedora
|
||||
Release=33
|
||||
|
||||
[Output]
|
||||
Format=raw_btrfs
|
||||
Bootable=yes
|
||||
OutputDirectory=../mkosi.output
|
||||
Output=networkd-test.raw
|
||||
|
||||
[Partitions]
|
||||
RootSize=3G
|
||||
|
||||
[Content]
|
||||
BuildPackages=
|
||||
audit-libs-devel
|
||||
bzip2-devel
|
||||
cryptsetup-devel
|
||||
dbus-devel
|
||||
diffutils
|
||||
docbook-style-xsl
|
||||
elfutils-devel
|
||||
gcc
|
||||
gettext
|
||||
git
|
||||
gnutls-devel
|
||||
gperf
|
||||
hostname
|
||||
iptables-devel
|
||||
kmod-devel
|
||||
libacl-devel
|
||||
libblkid-devel
|
||||
libcap-devel
|
||||
libcurl-devel
|
||||
libgcrypt-devel
|
||||
libidn2-devel
|
||||
libmicrohttpd-devel
|
||||
libmount-devel
|
||||
libseccomp-devel
|
||||
libselinux-devel
|
||||
libxkbcommon-devel
|
||||
libxslt
|
||||
lz4
|
||||
lz4-devel
|
||||
meson
|
||||
ninja-build
|
||||
pam-devel
|
||||
pcre2-devel
|
||||
perl(IPC::SysV)
|
||||
perl(Time::HiRes)
|
||||
pkgconfig
|
||||
python3-devel
|
||||
python3-lxml
|
||||
qrencode-devel
|
||||
tree
|
||||
|
||||
Packages=
|
||||
dnsmasq
|
||||
iproute
|
||||
libidn2
|
||||
polkit
|
||||
python3
|
||||
|
||||
# Share caches with the top-level mkosi
|
||||
BuildDirectory=../mkosi/mkosi.builddir
|
||||
Cache=../mkosi/mkosi.cache
|
||||
|
||||
# Run our own script
|
||||
BuildScript=mkosi.build.networkd-test
|
||||
|
||||
BuildSources=..
|
||||
NSpawnSettings=mkosi.nspawn.networkd-test
|
||||
@@ -1,4 +0,0 @@
|
||||
# SPDX-License-Identifier: LGPL-2.1-or-later
|
||||
|
||||
[Network]
|
||||
Private=yes
|
||||
@@ -6,7 +6,7 @@
|
||||
# systemd-networkd tests
|
||||
|
||||
# These tests can be executed in the systemd mkosi image when booted in QEMU. After booting the QEMU VM,
|
||||
# simply run this file which can be found in the VM at /root/src/test/test-network/systemd-networkd-tests.py.
|
||||
# simply run this file which can be found in the VM at /usr/lib/systemd/tests/testdata/test-network/systemd-networkd-tests.py.
|
||||
|
||||
import argparse
|
||||
import errno
|
||||
|
||||
Reference in New Issue
Block a user