Commit graph

1,550 commits

Author SHA1 Message Date
121afb1ca3 Move code for tpm support to -udev subpackage
Previously, I tried to move getty-related stuff too. But that seems to
have been a wrong idea, since we want at least the getty-generator and
console-getty@.service in containers.
2026-02-06 11:06:49 +01:00
Adam Williamson
2e10d7da1e Revert getty changes a bit harder
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2026-02-04 11:04:54 -08:00
96c683c3de Revert all remaing changes to getty@.service
The previous commit fixed a lot of the test, but the '64bit cloud' and
'aarch64 cloud' tests still fail, there is no login prompt on the tty.

Also, make sure that the autovt@.service symlink is in -udev subpackage.
2026-02-04 18:13:41 +01:00
24a305a398 Revert to previous handling of getty@.service
OpenQA still fails. Now we get a graphical console on tty1 when the
needles expect a text login. And in other cases we get nothing, when
the tests expect a text login. Let's just manually recreate the
previous state. When kmsconvt@.service has an [Install] section with
Alias= and DefaultInstance=, then 'systemctl enable kmsconvt@' creates
the enablement symlinks as expected, hiding our symlink in
/usr/lib/systemd/, so we could proceed with the changes in kmscon if
systemd passes the tests.
2026-02-04 15:48:00 +01:00
6a500eb814 Create getty@tty1.service again and move autovt@.service alias to /usr/lib
1. Revert "Stop enabling getty@tty1.service"

This reverts commit e301db0151.

My assessment was wrong. We *did* create the symlink, probably through
the preset-all call. Also, this change didn't cause any change to the
OpenQA results.

2. Move the autovt@.service symlink to /usr/lib/ to make an
Lorax/Anaconda hack work again. If this works, kmscon will need to do
the same thing.
2026-02-04 13:34:16 +01:00
88bd4ab206 Properly enable systemd-tmpfiles-clear.service in scriptlets
Another unit that was forgotten.
2026-02-04 13:34:11 +01:00
d9f3f02206 Raise the number of placeholder sections in kernel and addon stubs
Fixes 'PEError: Not enough header space to add section .cmdline'
encountered when building complicated UKIs.
2026-01-29 15:32:26 +01:00
e301db0151 Stop enabling getty@tty1.service
Before the recent changes to fix scriptlets and do presets, we didn't
create this symlink, so let's drop it again to see if this fixes the
OpenQA failures.
2026-01-29 15:29:58 +01:00
a1c33507a2 Fix unit names in systemd-udev scriptlet
One level of escaping was consumed by rpm, one level was consumed by
the shell, we need one more for systemd. I saw the failure previously,
but didn't consider it important because we didn't need to do anything
for the affected units. But it turns out that the whole operation
failed, so we weren't presetting any of the units. This caused
getty@.service to not be enabled, even though presets specified that
it should. This code is being more robust in
https://github.com/systemd/systemd/pull/40504, but adding one more
level of escaping should resolve the issue too.
2026-01-29 08:58:31 +01:00
b7b3e024d6 Enable getty@.service through presets
Preparation for rhbz#2429626.
2026-01-27 15:15:43 +01:00
ec5e1b1ed7 Move tpm2 and getty support to -udev subpackage
We want getty@.service to be enabled through presets, so that the
autovt@.service alias is created (or not). See
https://fedoraproject.org/wiki/Changes/UseKmsconVTConsole.
getty@.service was changed upstream to have a full [Install] section,
but we need to handle installation of the unit here. This will now
create the autovt@.service alias when enabled.

While looking at this, I noticed that the getty units are in the main
package. They don't have to be, virtual terminals are only available
if we have "hardware", i.e. the -udev subpackage is appropriate.
Same for the tpm2 stuff.

List of affected files:
/etc/systemd/system/getty.target.wants
/usr/lib/systemd/system-generators/systemd-getty-generator
/usr/lib/systemd/system-generators/systemd-tpm2-generator
/usr/lib/systemd/system/console-getty.service
/usr/lib/systemd/system/container-getty@.service
/usr/lib/systemd/system/getty-pre.target
/usr/lib/systemd/system/getty.target
/usr/lib/systemd/system/getty@.service
/usr/lib/systemd/system/multi-user.target.wants/getty.target
/usr/lib/systemd/system/serial-getty@.service
/usr/lib/systemd/system/sysinit.target.wants/systemd-tpm2-setup-early.service
/usr/lib/systemd/system/sysinit.target.wants/systemd-tpm2-setup.service
/usr/lib/systemd/system/systemd-tpm2-clear.service
/usr/lib/systemd/system/systemd-tpm2-setup-early.service
/usr/lib/systemd/system/systemd-tpm2-setup.service
/usr/lib/systemd/system/tpm2.target
/usr/lib/systemd/systemd-tpm2-clear
/usr/lib/systemd/systemd-tpm2-setup
/usr/share/man/man8/systemd-getty-generator.8.gz
/usr/share/man/man8/systemd-tpm2-clear.service.8.gz
/usr/share/man/man8/systemd-tpm2-generator.8.gz
/usr/share/man/man8/systemd-tpm2-setup-early.service.8.gz
/usr/share/man/man8/systemd-tpm2-setup.8.gz
/usr/share/man/man8/systemd-tpm2-setup.service.8.gz

I considered leaving getty.target in the main package, so that
foreign units that refer to it don't generate a warning about missing
units, but I think that those packages should not be installed on
systems without systemd-udev, so it's fine if the warning appears.
2026-01-24 16:12:28 +01:00
Fedora Release Engineering
9c9976a7f8 Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild 2026-01-17 18:48:55 +00:00
Hans de Goede
f353d244fd Add 2 patches for automatic aarch64 DTB selection change 2026-01-12 16:22:10 +01:00
399885597c Revert "Disable sysinit-path for upstream builds"
This reverts commit 56377438ba. Dropping
of the option currently doesn't disable anything, it just moves the
file. I don't think we gain anything by moving the file and actually
this causes problems [1], so let's just return to status quo ante.

[1] file /etc/init.d conflicts between attempted installs of systemd-259.999+69+g6ceb76bfc-2548.1.x86_64 and chkconfig-1.33-3.fc44.x86_64

[skip changelog]
2025-12-20 20:09:31 +01:00
Daan De Meyer
67538c79f2 Make dbus and systemd-pam recommended dependencies
Neither dbus nor pam are required in the initrd so
let's make both recommended dependencies instead
of required dependencies so that we can build
initrds without either of them getting pulled in.
2025-12-19 16:40:55 +01:00
Daan De Meyer
c052029197 Drop libcap-devel BuildRequires
Not required anymore since v259.
2025-12-19 16:17:01 +01:00
Daan De Meyer
cac8dde28a test: Allow passing in extra tests to skip via TEST_SKIP
[skip changelog]
2025-12-19 11:22:34 +00:00
Luca Boccassi
56377438ba Disable sysinit-path for upstream builds
[skip changelog]
2025-12-19 11:45:00 +01:00
Daan De Meyer
0c8ea706f9 Fix links to patches
These patches were modified downstream yet the links
were never updated

[skip changelog]
2025-12-19 10:43:34 +00:00
4f5b5a9615 Version 259
- Some bugfixes since -rc3, in particular in the area of
  image creation and loading of libraries
2025-12-18 10:34:39 +01:00
bf8019c840 Version 259~rc3
Various fixes for various issues reported with -rc2.
2025-12-10 23:06:32 +01:00
Daan De Meyer
ef777d6572 Check if --max-lines is supported by meson 2025-11-28 14:55:02 +01:00
Daan De Meyer
b562e38e22 Fix use of removed $LOCAL_CONF variable
Follow up for f8932309d9

[skip changelog]
2025-11-28 11:52:44 +00:00
0289127dae Patch machined to continue after selinux denial 2025-11-26 22:35:50 +01:00
7e409130ee Version 259~rc2
This has a bunch of fixes for various issues reported with -rc1,
in particular varlink socket communication.
2025-11-26 15:47:05 +01:00
33b38cdbc7 Suppress errors from tar
Without this, 'spectool -g …' will print to the console.

[skip changelog]
2025-11-26 15:29:29 +01:00
David Tardon
ddb6474e94 Drop provides for removed sysvinit tools
... (rhbz#2413557)
2025-11-21 15:07:07 +01:00
Daan De Meyer
9ac8c36307 Set meson auto features to auto when building for upstream
We don't want new options to be forcefully enabled if we don't have
the dependencies available.
2025-11-20 14:24:55 +00:00
Daan De Meyer
12f95f807f Wrap %autosetup in %_build_in_place check
The shell expansion we use to determine the top-level directory will
get expanded even if we don't execute %prep, so add a %_build_in_place
check to make sure we don't try to search for the top-level directory
if --build-in-place is set.
2025-11-20 14:59:09 +01:00
Daan De Meyer
f9916b6fd1 Revert "Use %autosetup -C"
This effectively reverts commit b17d9c3474.
2025-11-20 14:58:53 +01:00
044cff4700 Allow empower group
This will need to be patched into setup.
2025-11-17 21:21:03 +01:00
a0acca210d Version 259~rc1
- See https://raw.githubusercontent.com/systemd/systemd/v259-rc1/NEWS.
  Too many changes to list or discuss here.
2025-11-17 20:57:35 +01:00
Daan De Meyer
e455d82fd8 Add various extra explicit Requires
Upstream is moving towards making a lot more libraries dlopen() style
dependencies. Let's make sure to add these as Requires to corresponding
packages so they still get pulled in.
2025-11-17 19:32:55 +00:00
1a7506a105 Version 258.2
- A bunch of fixes in many components.
- Stop creating user namespace for system services (rhbz#2391343)
- Systemd trigger scriptlets are updated
2025-11-07 14:13:36 +01:00
256463d690 Restore runlevelX.target units
... (rhbz#2411195)
2025-11-05 17:55:32 +01:00
b17d9c3474 Use %autosetup -C
This is supported since rpm 4.20 but not advertised much.
2025-11-04 16:18:12 +01:00
Daan De Meyer
fe18084a05 Remove hack to stop systemd-networkd-resolve-hook.socket
This didn't end up working, so drop the hack as we have a better
fix coming up in https://github.com/systemd/systemd/pull/39415.
2025-11-03 22:01:55 +00:00
8e2833a5b6 Automatically figure out the name of the top-level tar dir 2025-11-03 12:13:23 +01:00
Daan De Meyer
dffbf2beba Make sure fallback source is listed first
2ace9416e8 broke packit as the fallback
url wasn't listed first anymore. Make sure the fallback URL is listed
first again as clearly documented just above the conditionals.
2025-11-03 11:18:11 +01:00
1d3b892105 Enable sysupdate and sysupdated
The files will land in the -udev subpackage.
2025-10-31 13:11:29 +00:00
Daan De Meyer
ea1d871ecd Add missing networkd socket units
systemd-networkd-resolve-hook.socket will be introduced by
https://github.com/systemd/systemd/pull/39293 but we need the spec
to handle the socket for the upgrade/downgrade test to pass so adding
it early behind the upstream bcond.
2025-10-29 10:32:12 +01:00
Daan De Meyer
b76b5da2e6 Merge #214 Drop backwards compat logic from integration tests script 2025-10-25 07:33:02 +00:00
7208fa2b1b Require systemd-rpm-macros for build
We use our own macros. They get pulled into the buildroot in Fedora
builds, but we shouldn't rely on this. In OBS builds, they are not
pulled in and the build fails.
2025-10-23 20:40:58 +02:00
Daan De Meyer
f8932309d9 Drop backwards compat logic from integration tests script 2025-10-22 14:04:23 +02:00
Lukáš Zaoral
2e1a6c7474
Require python3-zstandard in ELN
Related: https://issues.redhat.com/browse/RHEL-103523
2025-10-20 16:00:31 +02:00
79c9db1bc8 Require systemd-libs and systemd-shared to be in the same version
... (rhbz#2404143)
2025-10-15 13:54:29 +02:00
db38445a7e Drop two patches with workaround (selinux, kernel) 2025-10-13 17:15:42 +02:00
593a204189 Version 258.1
- This is the first (large) batch of fixes after v258:
  - fixes for boot loader and early boot code
  - fixes for systemd itself, systemd-udevd, systemd-logind,
    systemd-machined, and library code
  - unprivileged operation in systemd-machined is disabled for now
  - lots of documentation and shell-completion fixes
  - includes an hwdb update
2025-10-13 17:09:52 +02:00
a3e9e27982 Change '%{systemd}' to systemd in Conflicts/Provides/Requires/Recommends
We were using both styles… Having a macro creates some mental overhead
for little gain. Switch to the fixed string everywhere.

[skip changelog]
2025-09-27 14:41:06 +03:00
88877a4184 Require systemd-networkd and systemd-udev to be in the same version
... (rhbz#2397579)

In https://bugzilla.redhat.com/show_bug.cgi?id=2397579 users are doing
a partial upgrade (seemingly) and that fails because of a file conflict.
Add Conflicts to prevent such partial upgrades.
2025-09-27 14:40:45 +03:00