]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
mkosi: Update to latest
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 12 Apr 2023 15:27:06 +0000 (17:27 +0200)
committerLuca Boccassi <luca.boccassi@gmail.com>
Thu, 13 Apr 2023 12:49:30 +0000 (13:49 +0100)
The Bootable= option was removed and mkosi installs less packages
by default now, so let's adapt our configs to those changes.

.github/workflows/mkosi.yml
mkosi.conf.d/10-systemd.conf
mkosi.conf.d/20-arch.conf
mkosi.conf.d/20-centos.conf
mkosi.conf.d/20-debian.conf
mkosi.conf.d/20-fedora.conf
mkosi.conf.d/20-opensuse.conf
mkosi.conf.d/20-ubuntu.conf
mkosi.postinst

index 829d0c5c45438ffb01e6d4ca6262e4b09e10a9ce..e42f304115d086beacdf208fa5ac3709683258cc 100644 (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
index 2c7eb63e71c0c09e0c6684dfe53954d47955c790..b7175fb705fb9328a2b79156ce03878189cb694f 100644 (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
index c926c88c1a014f05a40a9a42f50f75bdb2114cc6..6dcbb9f6ab69c47aceaea66e3ca92ebc5a45f4bd 100644 (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
index 09b7973195252fad3bae23404d4d7256d106ccc9..a28167f8bf935bc727b746be23c3558d52f7a9c3 100644 (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=
index 5244194a01d1b032ba02f4de55e7b2a448eaa895..9e61b53eba673e3e5e2798a3f9845ad2dc7ae3aa 100644 (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=
index 5967c3670f3a383f86e14e87e6d64c2be0c0c3a2..c76c01f14bc6fc2254775d7eeb04295471d7a81c 100644 (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=
index 96093951e1d419719461751d85da9abc1702dd17..caf84ba0ab52599d60b427c4a9300fcfb57f7190 100644 (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
index 97deb7094735749c887ba4b5e02b4a911e9479c6..132f72a8d34ee630efe2467129cdc5b2fa05d1df 100644 (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=
index 43cc818393a245ac592e335f5920a14fb2ef6ea1..b84f034235573ee7ce3dd93caa39e74964c888c6 100755 (executable)
@@ -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 \