SHA256
1
0
forked from pool/systemd
Commit Graph

1045 Commits

Author SHA256 Message Date
Franck Bui
478cb79ec5 - 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
f3560138df - 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
885d7925a8 - 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
425b7c38bb - 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
f6340004a3 - 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
bac4d989f2 - 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
7cfb2ae59e - 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
d9c717c4a9 - 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
e54cd54d73 - 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
7168f25ef3 - 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
Franck Bui
7305ef9b6b - 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
d48ca6ce6d 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
e23c2b5f22 - 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
c702f266c0 document bsc#1211725 in the changelogs
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1431
2023-08-22 12:54:28 +00:00
Franck Bui
63944e4517 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
666f072db7 - 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
Franck Bui
1d4102b706 - Fix incorrect option name when calling pam-config for systemd-homed
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1426
2023-08-18 06:31:58 +00:00
Franck Bui
0aa9a9c312 reorder some comments for the testsuite (probably screwed up by the script called when commiting change :()
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1424
2023-08-17 09:11:10 +00:00
Franck Bui
590e93775a Accepting request 1104340 from home:jsegitz:branches:Base:System
- Recommend selinux-policy-devel instead of requiring it in line with
  other tests. Add Recommends for selinux-policy-targeted as this is
  also required to run the test (in general any SELinux policy should
  do)

OBS-URL: https://build.opensuse.org/request/show/1104340
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1423
2023-08-17 09:06:45 +00:00
Franck Bui
8a604abdb4 - systemd.spec: add journal translations to lang package
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1422
2023-08-16 17:01:33 +00:00
Franck Bui
f77f1ad695 - Import commmit 1f73719d67b9300c6bb75232d695d03410991098
1f73719d67 test-mountpoint-util: /root might be mounted
  a391ba4a8f test: testsuite-35.sh needs manual/test-session-properties to be installed on SUSE

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1421
2023-08-16 10:41:44 +00:00
Franck Bui
f9d0cf843b - Upgrade to v254.1 (commit 208a21833b6953a2517a6c3f8f4849c6664b01be)
See https://github.com/openSUSE/systemd/blob/SUSE/v254/NEWS for details.
  This includes the following bug fixes:
   - upstream commit 331aa7aa15ee5dd12b369b276f575d521435eb52 (bsc#1203141)
   - upstream commit 529ba8a1a3968564b67049a077f213e3a0d53070 (bsc#1209340)
   - upstream commit f1f331a252d22c15f37d03524cce967664358c5c (bsc#1186606)
   - upstream commit df1dccd25547b430258bd42ec60428fc9aff1370 (bsc#1213185)
  * Drop 5001-Revert-core-propagate-stop-too-if-restart-is-issued.patch. A fix
    for https://github.com/systemd/systemd/issues/26839 has been integrated in
    v254.
  * Drop 5002-Revert-core-service-when-resetting-PID-also-reset-kn.patch, it's
    part of v254.
  * Drop 0001-restore-var-run-and-var-lock-bind-mount-if-they-aren.patch, it's
    no more needed these days.
  * Rebase 0001-conf-parser-introduce-early-drop-ins.patch

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1420
2023-08-16 10:29:27 +00:00
Franck Bui
c41b3fd909 - Import commit fcdb2dd2c921db3c6b7c28465dbda314f4469d17 (merge of v253.8)
For a complete list of changes, visit:
  2dac0aff9c...fcdb2dd2c9

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1418
2023-08-11 08:48:02 +00:00
Franck Bui
367e962d5f - Drop 0003-strip-the-domain-part-from-etc-hostname-when-setting.patch
/etc/hostname is supposed to contain the static host name of the system. This
  patch was used to work around cases where users incorrectly save the FQDN
  instead. However this is incorrect and not consistent with what
  systemd-hostnamed does and what other distributions do. Also assuming that
  /etc/hostname will contain the system host name only removes any ambiguities
  since the host name can contain a period.
  /etc/hosts is usually where one sets the domain name by aliasing the host name
  to the FQDN.
  Note that the installer used to save the FQDN in /etc/hostname but this has
  been fixed since several years now (bsc#972463).

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1416
2023-07-28 14:57:10 +00:00
Franck Bui
5ae79415a2 Reference bsc#1213575 in the changelog
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1415
2023-07-25 14:19:41 +00:00
Franck Bui
c88822f78b - systemd-homed is no more considered as experimental
It's been moved to its own dedicated sub-package "systemd-homed".

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1414
2023-07-25 06:35:14 +00:00
Franck Bui
76eeee691b - systemd-userdb is no more considered as experimental (jsc#PED-2668)
As such it's been moved to the main package.

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1413
2023-07-24 14:38:08 +00:00
Franck Bui
4e51cc5e2f - Import commit 2dac0aff9ced1eca0cd11c24e264b33095ee5a5e (merge of v253.7)
For a complete list of changes, visit:
  6458c06654...2dac0aff9c

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1412
2023-07-18 08:57:49 +00:00
Franck Bui
0eb8a02c5a document the removal of 5002-Revert-core-service-when-resetting-PID-also-reset-kn.patch
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1411
2023-07-13 08:53:07 +00:00
Franck Bui
8964970f92 reference bsc#1212434 in the changelog
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1410
2023-07-11 16:38:41 +00:00
Franck Bui
4da1dd3843 - Import commit 6458c066547eaadf0e9709e441ea36ad03faa860 (merge of v253.6)
For a complete list of changes, visit:
  07bb12a282...6458c06654

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1409
2023-07-11 13:51:36 +00:00
Franck Bui
78595742b4 - Move a bunch of files from systemd to udev. These are pretty useless without
block devices.

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1408
2023-07-11 13:20:20 +00:00
Franck Bui
74b6393ed7 - Split off sd-boot into separate "systemd-boot" subpackage
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1407
2023-07-03 15:17:58 +00:00
Franck Bui
1807b846d5 Clarify some entries in the changelog
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1406
2023-06-27 15:07:34 +00:00
Franck Bui
781b64a6ba - Change the group owner of /run/lock from "lock" to "root" (bsc#1212674)
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1405
2023-06-27 13:08:31 +00:00
Franck Bui
1dd6f15943 - file-triggers: fix a typo that sneaked in the script dealing with tmpfiles
(bsc#1212733)

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1404
2023-06-26 14:28:56 +00:00
Franck Bui
2fd40c1327 fix a sentence in systemd.changes
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1403
2023-06-21 12:57:45 +00:00
Franck Bui
bf15b6e6e6 when the tmpfiles are run at package installation time. Theoretically with
only "Requires(pre): group()", rpm is allowed to drop the group at the end of
  the package installations hence let's keep "Requires: group()" dep.
  Note: this is also needed when (post)file-triggers are enabled due to the
  current limitation of the default libzypp transaction backend.

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1402
2023-06-21 12:38:22 +00:00
Franck Bui
9cfbe73b24 - Make sure to pre-install the groups systemd and udev rely on. This is needed
when the tmpfiles are run at package installation time (i.e. when
  file-triggers are disabled).

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1399
2023-06-21 10:33:46 +00:00
Franck Bui
d1bee00c93 - file-triggers: fix lua trigger priority for sysusers (bsc#1212376)
A single digit in the priority used for sysusers got dropped somehow and
  upstream commit cd621954ed643c6ee0d869132293e26056a48826 forgot to restore it
  in the lua implementation.

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1398
2023-06-21 09:32:38 +00:00
Franck Bui
6bdc7a067a - file-triggers: skip the call to systemd-tmpfiles in chroot too. That way we
ensure that packages that really need the tmpfiles in advance to use the right
  API which is %tmpfiles_create_package.
- file-triggers: to be consistent with what we already does with tmpfiles, we
  skip the call to systemd-sysusers and delay system user creations until the
  next reboot.

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1397
2023-06-20 15:55:18 +00:00
Franck Bui
f450a5fd76 - Temporarily add
5002-Revert-core-service-when-resetting-PID-also-reset-kn.patch until it's
  backported to the next stable release
  See https://github.com/systemd/systemd/pull/28000

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1396
2023-06-20 11:04:49 +00:00
Franck Bui
3dede0e3d9 - Make sure to skip the call to systemd-tmpfile in the file-triggers when
running on transaction systems

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1395
2023-06-16 14:42:32 +00:00
Franck Bui
fc3530d75c - Import commit 07bb12a282b0ea378850934c4a76008b448b8bad (merge of v253.5)
For a complete list of changes, visit:
  25aec15788...07bb12a282

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1394
2023-06-01 16:07:57 +00:00
Franck Bui
51ccc3bb3e - Reexecute user managers on package updates.
For now we send signal to user instances to trigger their reexecution. It's
  asynchronous but it shouldn't cause any problem in practice and it's probably
  safer than triggering reexecution with "systemctl --user -M 1000@
  daemon-reexec" command. The latter command creates a new PAM session behind
  the scene bringing with it the known issue (upstream issue #8598) with
  "(sd-pam)" helper process when the PAM session is being closed.

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1393
2023-06-01 15:56:32 +00:00
Franck Bui
4f8a2eddf8 - Move more packaging fixups in the fixlet script.
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1391
2023-05-09 14:28:15 +00:00
Franck Bui
7491f913dd - Provide (Lua-based) file triggers and adapt systemd.spec accordingly (boo#1133764)
More specifically, file triggers handle automatically installations or updates
  of files for sysusers, tmpfiles, hwdb, journal catalog, udev rules, sysctl and
  binfmt.
  Therefore it makes a bunch of systemd rpm macros (such as %udev_hwdb_update,
  %udev_rules_update, %journal_catalog_update, %tmpfiles_create,
  %sysusers_create and so on) not needed anymore. However before considering
  simplifying your spec files beware that these changes are not available in SLE
  yet and will probably never reach the current releases (latest one being
  SLE15-SP5 as of this writing).
  Macros dealing with unit restart/enabling (such as %systemd_pre,
  %service_add_pre, %service_del_postun, ...) are still needed though. However
  reloading of systemd instances (and thus restarting of units) are delayed
  until the very end of the package install/update transaction and is now done
  only once. 
  Nevertheless to fully take advantage of file triggers, users have to activate
  a specific zypper transaction backend which is still considered as
  experimental, see bsc#1041742 for details.
- Provide a (slighlty) customized version of systemd-update-helper. Some of the
  systemd rpm macros rely now on the helper and delegate their work to it. Hence
  we don't need to rebuild all packages anymore when the content of the rpm
  macros must be updated/fixed.

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1390
2023-05-09 14:01:32 +00:00
Franck Bui
5ee9189841 - Drop an old fix for the persistent net rules (only needed on SLE). Factory
(fortunately) dropped the persistent net rule generator long time ago.

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1389
2023-05-09 12:43:50 +00:00
Franck Bui
48d1d3188b Revert commit r1382 temporarily until bsc#1211104
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1387
2023-05-05 13:08:35 +00:00
Franck Bui
8fe8943179 - Rather than having one script per fix, use a single script (or "fixlet") per
(sub) package that contains all the fixups relative to a (sub) package. This
  has the advantage to limit the number of scripts but more importantly it will
  ease the sharing of the spec file between TW and SLE. We should also be able
  to compare the fixlets of two distros even if the spec files have diverged.
  Note that all the fixups are run just once now.

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1386
2023-05-05 13:03:20 +00:00