Commit Graph

1022 Commits

Author SHA256 Message Date
Franck Bui
67b0425c56 - 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
c16b32b607 - 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
f82e4b89da - 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
6e24e31f3e - 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
aca11a0f41 - 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
a1e55a6a5d - 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
68be13eaf4 - 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
8c1e61d6e6 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
331bbaffd8 disable kmod support for the mini flavor, this complements the previous change
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1479
2023-12-21 08:24:37 +00:00
Franck Bui
59790ec273 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
55b8993e34 - 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
96d4d1f746 - 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
cb3cf58ad1 - 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
42f24ebcb2 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
32dc326f1a - 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
34fde78bf9 - 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
d5015df114 Drop min_kernel_version rpm variable. It's outdated and not used anyways.
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1470
2023-10-25 07:50:55 +00:00
Franck Bui
f28508f65c - 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
7a5d227e46 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
93786e2e0c - 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
e70ff7b0ea - 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
7707a7fd9a - 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
73e7ae6051 - 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
5f3964a842 - 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
6601106791 - 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
a3b98501d5 Revert "Rename libudev-mini1 into libudev1-mini for consistency with libsystemd0-mini"
The name "libudev-mini1" is hardcoded in multiple OBS project configs.

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1458
2023-10-05 09:08:59 +00:00
Franck Bui
9db2ee771e Rename libudev-mini1 into libudev1-mini for consistency with libsystemd0-mini
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1455
2023-10-04 10:36:20 +00:00
Franck Bui
e61bca8b96 - 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
2c2997f0b0 replace -Dukify=no with -Dukify=false
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1452
2023-09-27 15:05:09 +00:00
Franck Bui
1a29b9a650 ukify is disabled when -Dbootloader=no
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1451
2023-09-27 14:56:42 +00:00
Franck Bui
7f8720dd6d - 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
930780d088 - 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
7c4b739d55 - 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
60127ab253 - 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
ebc969dcfc - 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
fc6785ff39 for consistency with the other sub-packages, always run %systemd_{pre,post} for the main package
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1445
2023-09-22 15:25:11 +00:00
Franck Bui
7780893ce3 - 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
f2e273fd91 add missing '%systemd_preun systemd-timesyncd.service'
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1443
2023-09-22 14:46:21 +00:00
Franck Bui
1d3cb74474 timesyncd is shipped in udev, move the related calls to %systemd_* in the udev scriptlets
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1442
2023-09-22 14:43:05 +00:00
Franck Bui
40ce276b0c - 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
d594b5f7ef reword one comment
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1440
2023-09-22 08:36:42 +00:00
Franck Bui
b5adfb7ac3 explicitely enable/disable ukify
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1439
2023-09-14 12:40:59 +00:00
Franck Bui
b9cbd98460 - 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
24c75ba3bb - 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
14597e6c16 only set build option rc-local= when necessary (ie 'sysvcompt' is enabled)
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1436
2023-09-12 18:35:09 +00:00
Franck Bui
7b4c7367be - Import commit b6b4e5a8a82d1f13f265a4ef170f2d13be82789a (merge of v254.3)
For a complete list of changes, visit:
  1f73719d67...b6b4e5a8a8

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1434
2023-09-11 08:44:08 +00:00
Franck Bui
517f9f75b6 Accepting request 1105855 from home:kukuk:no-utmp
- Make utmp support per project configureable [jsc#PED-3144]
- Make apparmor and selinux per project configureable [jsc#PED-2736]

OBS-URL: https://build.opensuse.org/request/show/1105855
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1433
2023-08-24 13:26:27 +00:00
Franck Bui
c10a1a22e0 - systemd.spec: don't use build conditionals (%bcond_with/%bcond_without) with
the mini flavor to make sure that all the features remain disabled for this
  flavor regardless of what is enabled in the prjconf.

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1432
2023-08-24 10:50:22 +00:00
Franck Bui
fc10ef7e72 Accepting request 1104676 from home:dimstar:Factory
- Explicitly require group(lp) by udev: this used to be provided by
  system-group-hardware, but with the introduction of
  system-user-lp (and systemd-users auto-generating groups) is now
  actually provided by system-user-lp. Latest versions of
  system-group-hardware clean this up and no longer also provide
  this group.

OBS-URL: https://build.opensuse.org/request/show/1104676
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1429
2023-08-18 13:23:39 +00:00
Franck Bui
33b9f62243 - Don't build systemd-doc with the mini flavor
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1428
2023-08-18 13:20:40 +00:00