Commit Graph

1085 Commits

Author SHA256 Message Date
Thomas Blume
1aa4f2d9eb Accepting request 1150660 from home:afeijoo:branches:Base:System
- Fix syntax required for OBS source validator

OBS-URL: https://build.opensuse.org/request/show/1150660
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1498
2024-02-27 10:47:44 +00:00
Franck Bui
2c20aa55cd - Upgrade to v255.3 (commit 96edf7ad1866172b994cafb4df49e27d68ce8e87)
See https://github.com/openSUSE/systemd/blob/SUSE/v255/NEWS for details.
  - This includes the following bug fixes:
    - commit 6e10405aa25fe5e76b740d9ec59730e3f4470c7a (bsc#1219766)
  - The following patches have been rebased:
    - 0002-rc-local-fix-ordering-startup-for-etc-init.d-boot.lo.patch
    - 0008-sysv-generator-translate-Required-Start-into-a-Wants.patch
    - 0009-pid1-handle-console-specificities-weirdness-for-s390.patch
    - 5001-Revert-udev-update-devlink-with-the-newer-device-nod.patch
    - 5002-Revert-udev-revert-workarounds-for-issues-caused-by-.patch
  - The following patches have been removed since they're part of v255:
    - 5003-cgroup-rename-TasksMax-structure-to-CGroupTasksMax.patch
    - 5004-bus-print-properties-ignore-CGROUP_LIMIT_MAX-for-Mem.patch
    - 5005-bus-print-properties-prettify-more-unset-properties.patch
  - systemd-boot has been added to the list of the dependencies of the
    systemd-testsuite package as the installation of the bootloader is now
    tested.
  - the following patches have been backported on top of v255.3:
    96edf7ad18 service: Demote log level of NotifyAccess= messages to debug (bsc#1210113 jsc#PED-6214)
    fdde7f26d6 vconsole-setup: don't fail if the only found vc is already used by plymouth (bsc#1218618)
    f96c587d41 rules: set up tty permissions and group for /dev/hvc* nodes (bsc#1218137)
    63a41b8899 vconsole-setup: remember the correct error value when open_terminal() fails
    f51a2e038c vconsole-setup: handle the case where the vc is in KD_GRAPHICS mode more gracefully (bsc#1215282)
    15025a04c4 test: make sure to install the filesystem package in the test image on SUSE
    06fecfb635 test: make sure that sd-boot is installed before testing bootctl
    1e8788ea68 test: install systemd-boot in openSUSE test images
    6e2875ad43 test/test-shutdown.py: optionally display the test I/Os in a dedicated log file
    4be1a801b4 test-69: send SIGTERM to ask systemd-nspawn to properly stop the container
    7bdab7b7c7 man: Document ranges for distributions config files and local config files
    3f12a6c22f test: systemd-update-utmp is optional

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1497
2024-02-23 16:24:26 +00:00
Franck Bui
9f837dd6c9 - When building systemd rpms in place (i.e. rpmbuild --build-in-place), the
version of systemd is now retrieved from the file "meson.version" by
  default. This file is supposed to contain a string that described the full
  version of the systemd project.
- Overriding of %systemd_version/%systemd_release is now limited to builds of
  rpms in place cases.

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1496
2024-02-23 08:10:09 +00:00
Franck Bui
df12ead6e9 - Import commit 31f1148f75a1155d3eb37fd1a450096d669ec65b
31f1148f75 seccomp: include `fchmodat2` in `@file-system` (bsc#1219766)
  001f349c57 service: Demote log level of NotifyAccess= messages to debug (bsc#1210113 jsc#PED-6214)

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1495
2024-02-22 10:10:39 +00:00
Franck Bui
5a5908b9fa Accepting request 1148086 from home:daandemeyer:branches:Base:System
- Add a new %upstream macro to support building from upstream sources. This
  will allow upstream to build systemd rpms using the opensuse systemd packaging
  specs. These rpms will be built and used in upstream's mkosi based hacking and
  testing environment to test changes and in the future to run integration tests
  as well. By building the rpms using the opensuse packaging specs, the idea is
  to catch more issues ahead of time as the mkosi environment will behave more
  like a regular opensuse system.
- Add new %version_override and %version_release macros to allow overriding the
  version and release of the rpm respectively.

OBS-URL: https://build.opensuse.org/request/show/1148086
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1494
2024-02-20 14:38:41 +00:00
Franck Bui
edb8aeaf20 - Import commit 53e2aaaf9d69fb1c8f6ae2c9f8a99b02d70d318f
53e2aaaf9d vconsole-setup: don't fail if the only found vc is already used by plymouth (bsc#1218618)
  22c4878430 vconsole-setup: port to main-func.h boilerplate

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1493
2024-02-19 09:13:14 +00:00
Franck Bui
a869253c77 - systemd-testsuite: depend on "qemu" instead of "qemu-kvm", the latter is
obsolete. (bsc#1218684)

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1492
2024-02-19 08:29:19 +00:00
Franck Bui
53715392d0 - Import commit fbf9f32eb774ba6ec54e0d5d53b36baaf3e6b146
fbf9f32eb7 test/test-shutdown.py: optionally display the test I/Os in a dedicated log file
  cd012774df test-69: send SIGTERM to ask systemd-nspawn to properly stop the container
  d883b83244 man: Document ranges for distributions config files and local config files

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1491
2024-02-14 09:39:26 +00:00
Franck Bui
54ff00c1ec - Import commit fa94ab006d09686cef121aaa3baa10cf5ca95e19 (merge of v254.9)
For a complete list of changes, visit:
  67a5ac1043...fa94ab006d

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1490
2024-02-14 08:07:41 +00:00
Franck Bui
e6bbfcd7a9 - Update the version of libbpf dlopened by systemd (weak dependency) (bsc#1219440)
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1489
2024-02-13 14:43:36 +00:00
Franck Bui
9a20e717b2 - Drop python3-pefile dependency from the experimental package. MicroOs is fond
of the experimental stuff but OTOH it doesn't ship python3. Let's drop the
  dependency for now, users of ukify are invited to install python3-pe manually.

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1488
2024-02-07 13:27:55 +00:00
Franck Bui
f6ae21b7fd - Move systemd-reboot.service from udev to the main package as this service is
useful in containers.

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1487
2024-02-06 13:32:34 +00:00
Franck Bui
bd28d567a5 reference bsc#1218297 in the changelog
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1486
2024-02-05 13:57:41 +00:00
Franck Bui
108c0daa07 - Add patches that implement [jsc#PED-5659]
5003-cgroup-rename-TasksMax-structure-to-CGroupTasksMax.patch
  5004-bus-print-properties-ignore-CGROUP_LIMIT_MAX-for-Mem.patch
  5005-bus-print-properties-prettify-more-unset-properties.patch
  5006-cgroup-Add-EffectiveMemoryMax-EffectiveMemoryHigh-an.patch
  5007-test-Convert-rlimit-test-to-subtest-of-generic-limit.patch
  5008-test-Add-effective-cgroup-limits-testing.patch
  5009-cgroup-Restrict-effective-limits-with-global-resourc.patch
  5010-cgroup-Rename-effective-limits-internal-table.patch
  They are temporarily put in quarantine to get broader testing but should be
  eventually moved to the git repo.

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1485
2024-01-23 13:52:53 +00:00
Franck Bui
9bb723a3cc Accepting request 1140337 from home:gcomes.obs
- remove pam-config call from post scriptlet of systemd-32bit
  * the full package already does that

OBS-URL: https://build.opensuse.org/request/show/1140337
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1484
2024-01-22 07:44:07 +00:00
Franck Bui
c1e3517dad - Add 5001-Revert-udev-update-devlink-with-the-newer-device-nod.patch
5002-Revert-udev-revert-workarounds-for-issues-caused-by-.patch
  It seems that systemd upstream has a dubious way to fix broken code these
  days... let's revert these hacks until a final decision is taken to solve
  https://github.com/systemd/systemd/issues/28141. See also
  https://github.com/systemd/systemd/pull/30075.

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1483
2024-01-12 10:19:47 +00:00
Franck Bui
a5f3d589be - Import commit 67a5ac1043417d900bf417a884372ae14a96ef69 (merge of v254.8)
For a complete list of changes, visit:
  071ac409a0...67a5ac1043

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1482
2024-01-12 09:56:05 +00:00
Franck Bui
1281545611 Accepting request 1134609 from home:dimstar:Factory
- udev(-mini)?: ensure %_modulesloaddir exists and is owned
  properly. Allows other packages to install modules without worry
  of the parent directory. We do not ensure /etc/modules-load.d
  exists in the -mini flavor, as that directory is not meant to be
  used by packages.

OBS-URL: https://build.opensuse.org/request/show/1134609
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1481
2023-12-22 10:27:31 +00:00
Franck Bui
b512749c0e document bsc#1218137 in the changelogs
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1480
2023-12-21 10:22:01 +00:00
Franck Bui
0f85c35149 Accepting request 1134210 from home:dimstar:Factory
- udev: only require kmod in the full flavor. udev-mini is only
  used inside OBS in a strictly defined setup and udev will never
  have to load device drivers there.

This should allow us to remove system-module-tools from almost all buildroots.

OBS-URL: https://build.opensuse.org/request/show/1134210
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1478
2023-12-20 12:58:01 +00:00
Franck Bui
e8e77d00a9 - Import commit 071ac409a0564863657d8f8a5a35e6a4f914695f
071ac409a0 rules: set up tty permissions and group for /dev/hvc* nodes
  f693b3ed8a vconsole-setup: remember the correct error value when open_terminal() fails
  963d838bad vconsole-setup: handle the case where the vc is in KD_GRAPHICS mode more gracefully (bsc#1215282)
  6f53f71d2d vconsole-setup: simplify error handling

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1477
2023-12-20 12:50:37 +00:00
Franck Bui
8bdf43ed4d - Explicitely provide 'group(systemd-journal)' from the main package (bsc#1217852)
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1476
2023-12-12 08:43:35 +00:00
Franck Bui
b5431bbfd2 - Import commit ce08cd5f66e1a661c2b9ed764ad7036decd76503
ce08cd5f66 man/standard-conf: directory paths should end with '/'
  8324cbfde7 config files: update their header to reflect that they can be installed in /usr
  bc36846ad2 Reflect the fact that main config files can be installed in /usr
  e304a11f33 config files: more recommendations of `systemd-analyze cat-config`
  c45cecf279 meson: add build option for install path of main config files
  cc61b052c6 vconsole-setup: use a consistent log level when setfont fails with EX_OSERR (bsc#1212970)
  4fe3653dab tmpfiles: ignore EINVAL with --graceful (bsc#1216628)

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1475
2023-12-12 07:46:24 +00:00
Franck Bui
42f222bd41 Append a link of the announcement of the previous change on the factory mailing list
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1474
2023-12-01 08:07:48 +00:00
Franck Bui
b7d9150dab Accepting request 1128161 from home:wfrisch:branches:Base:System
- udev: Tighten permissions for DRM render nodes (bsc#1217118). Note that this
  implicitly enables `uaccess`, so any logged-in user still gets access
  regardless of group membership. Some use cases, e.g. remote access via ssh,
  might require you to add the desired user to the `render` group.

OBS-URL: https://build.opensuse.org/request/show/1128161
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1473
2023-12-01 08:01:25 +00:00
Franck Bui
f42bc5255b - Disable utmp support
The announcement can be found at:
  https://lists.opensuse.org/archives/list/factory@lists.opensuse.org/thread/MYIWGQEE54VJDBYXMQCEY7XKEAIUFLAU/
  The user visible consequence of it is that /run/utmp file is no more created.
  systemd itself doesn't depend on utmp anymore since "shared/wall: use logind
  if build without utmp support" has been backported.

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1472
2023-11-02 09:29:16 +00:00
Franck Bui
e331f8731d - Fix typo in /etc/systemd/user.confd.d (bsc#1216676)
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1471
2023-10-30 09:18:31 +00:00
Franck Bui
adf94d70cf - Import commit b53f364c264cd598d4210b64285a55d362b47b89
b53f364c26 test: install af_packet kernel module on openSUSE
  86b7521a3c shared/wall: use logind if build without utmp support
  65aac5858f errno-util: allow ERRNO_IS_* to accept types wider than int
  8f93b89db4 basic/errno-util: add wrappers which only accept negative errno
  1b815b3e76 Introduce RET_GATHER and use it in src/shared/

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1469
2023-10-24 14:29:00 +00:00
Franck Bui
693029cdf6 Revert "systemd.spec: disable transfiletriggers" (rev 1462)
transfiletriggers is actually only broken with 'rpm --root'. This shouldn't
affect you since --root applies only to installations. In this case the services
needn't to be restarted and the tmpfiles stuff can wait until the firstboot.

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1468
2023-10-24 14:08:54 +00:00
Franck Bui
1893dc5bf5 Document bsc#1191502 in .changelog
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1467
2023-10-20 12:40:40 +00:00
Franck Bui
aab0b46b91 Document some old bsc/PED numbers in the changelog
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1466
2023-10-20 09:38:40 +00:00
Franck Bui
1d6c7b2013 - Drop 0001-conf-parser-introduce-early-drop-ins.patch
The usage of drop-ins is now the official way for configuring systemd and its
  various daemons on Factory/ALP.
  See: https://lists.opensuse.org/archives/list/factory@lists.opensuse.org/thread/KWRBTAVQ6MGHVAHKDZZ6GIRX4RMHKHQ6/

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1465
2023-10-20 08:11:45 +00:00
Franck Bui
0dbe11f521 - Ship the main configuration files in /usr/lib/
Besides the fact that shipping files in /etc is not recommended anymore, this
  change will hopefully encourage users to customize the defaults via the mean
  of drop-ins hence removing the risk of conflicts with downstream
  customization.
  In contrary, shipping empty directories *.conf.d/ in /etc is not a concern and
  should suggest users to create drop-ins (bsc#1207056).

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1464
2023-10-19 14:27:22 +00:00
Franck Bui
5e9878ed1a - systemd.spec: add files.portable and files.journal-remote
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1463
2023-10-19 12:14:32 +00:00
Franck Bui
c77c397ce4 - systemd.spec: disable transfiletriggers
Unforunately bsc#1041742 has been re-opened so it's again not safe to rely on
  transfiletriggers until rpm-4.19 is released.

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1462
2023-10-18 08:34:32 +00:00
Franck Bui
a15f9813c4 - Don't include entries listed in kbd-model-map.xkb-generated (provided by kbd
package) in kbd-model-map anymore. Yast, the only user of these entries,
  directly parses kbd-model-map.xkb-generated now (bsc#1211104).

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1461
2023-10-13 11:28:05 +00:00
Franck Bui
86bffb3572 - tmpfiles-suse.conf: drop entries for /run/lock and /var/log/wtmp
/run/lock is now defined by filesystem package and wtmp has been replaced by
  wtmpdb on TW.

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1460
2023-10-13 09:36:13 +00:00
Franck Bui
228ff50b1d - rpmlintrc: allow systemd-network and systemd-container sub-packages to ship
shared libs. These are actually NSS plugins and are not really subject to
  shlib policy.

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1459
2023-10-05 15:07:08 +00:00
Franck Bui
49534f130f - Drop 5000-core-manager-run-generators-directly-when-we-are-in-.patch
Since dracut-059+suse.447.g9d1fc722, this workaround is not needed anymore.

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1454
2023-10-04 09:03:05 +00:00
Franck Bui
8f99cbd1be document bsc#1215241 in systemd.changes
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1453
2023-09-29 06:37:16 +00:00
Franck Bui
8e9ab1a8da - Import commit 9674bb256205e6c643feadbcccfd1ee8feeee684 (merge of v254.5)
For a complete list of changes, visit:
  6ed5b11298...9674bb2562

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1450
2023-09-27 13:16:32 +00:00
Franck Bui
556b0c5d67 - Make sure to call %sysusers_create only when transfiletrigger is disabled.
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1449
2023-09-27 10:15:58 +00:00
Franck Bui
8333594c77 - systemd.spec: switch to %ldconfig_scriptlets
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1448
2023-09-27 10:02:08 +00:00
Franck Bui
79bf9d5a52 - systemd.spec: add %tmpfiles_create systemd-resolve
It's only needed by SLE distros since systemd packages rely on
  transtriggerfiles in Factory.

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1447
2023-09-27 09:24:14 +00:00
Franck Bui
dc2fc56d2d - Import commit 6ed5b11298005e07509832881a0c5ff1a80bf225 (merge of v254.4)
For a complete list of changes, visit:
  b6b4e5a8a8...6ed5b11298

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1446
2023-09-25 08:30:24 +00:00
Franck Bui
6db18e4102 - systemd.spec: during package updates, restart localed, timedated and hostnamed
if they're running.

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1444
2023-09-22 15:05:44 +00:00
Franck Bui
121eb704ca - systemd.spec: when enabling units prefer enabling service units over socket
ones for socket activable services. The services shipped by systemd
  automatically redirect the enablement request to the socket unit.

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1441
2023-09-22 14:28:05 +00:00
Franck Bui
aeaa59e0d3 - systemd.spec: %regenerate_initrd_post is only used by udev sub-package hence
move the build requirement pulling this macro in in the list of udev BRs.

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1438
2023-09-14 06:36:30 +00:00
Franck Bui
72d9a23fb5 - Don't ship after-local.service anymore. This was mostly a hack for people
wanting to execute any random things once the boot was finished. We shouldn't
  encourage such practice and it actually conflicts with the sysv-generator
  which believes that /etc/init.d/after.local is SysV init script that needs to
  be converted into a native unit file.
  We still install a copy of this service in /etc if the user is relying on
  it, for backward compatibility.

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1437
2023-09-12 19:31:58 +00:00
Franck Bui
739a022cc8 - fixlet-systemd-post.sh: fix invalid use of rpm macro %{_localstatedir}
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1435
2023-09-12 18:29:08 +00:00