Commit Graph

1971 Commits

Author SHA256 Message Date
Ana Guerrero
883e2bf0dc Accepting request 1099230 from Base:System
- Import commit 2dac0aff9ced1eca0cd11c24e264b33095ee5a5e (merge of v253.7)
  For a complete list of changes, visit:
  6458c06654...2dac0aff9c

- Import commit 6458c066547eaadf0e9709e441ea36ad03faa860 (merge of v253.6)
  For a complete list of changes, visit:
  07bb12a282...6458c06654
- Drop 5002-Revert-core-service-when-resetting-PID-also-reset-kn.patch, it's
  been backported to v253.6.

- Move a bunch of files from systemd to udev. These are pretty useless without
  block devices.

    - upstream commit 3a3b022d2cc112803ea7b9beea98bbcad110368a (bsc#1212434)

OBS-URL: https://build.opensuse.org/request/show/1099230
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd?expand=0&rev=397
2023-07-19 17:10:10 +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
Dominique Leuenberger
7470c7527c Accepting request 1096633 from Base:System
- Split off sd-boot into separate "systemd-boot" subpackage

OBS-URL: https://build.opensuse.org/request/show/1096633
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd?expand=0&rev=396
2023-07-04 13:21:44 +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
Dominique Leuenberger
9bb71df935 Accepting request 1095850 from Base:System
- Change the group owner of /run/lock from "lock" to "root" (bsc#1212674)
  This allows to drop the dependency "Requires: group(lock)" that was introduced
  previously to make sure that the "lock" group will be kept around. This
  dependency introduced a dependency cycle.

- file-triggers: fix a typo that sneaked in the script dealing with tmpfiles
  (bsc#1212733)

- Make sure to keep the groups systemd and udev rely on installed. Theoretically
  with only "Requires(pre): group(x)", rpm is allowed to drop group 'x' at the
  end of the package installations.
  Note: this is also needed when (trans)file-triggers are enabled due to the

OBS-URL: https://build.opensuse.org/request/show/1095850
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd?expand=0&rev=395
2023-06-29 15:27:27 +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
Dominique Leuenberger
482626da80 Accepting request 1094372 from Base:System
- Make sure to pre-install the groups systemd and udev rely on. This is needed
  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.

- 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.

- file-triggers: skip the call to systemd-tmpfiles in chroot too. That way we
  ensure that packages that really need the tmpfiles in advance 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.

- 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

- file-triggers: make sure to skip the call to systemd-tmpfile in the
  file-triggers when running on transaction systems (bsc#1212449)
  systemd-tmpfiles usually modifies paths that are not supposed to change during
  transactional updates (e.g. /var, /run). On transaction systems changes will
  happen on the next reboot.

OBS-URL: https://build.opensuse.org/request/show/1094372
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd?expand=0&rev=394
2023-06-23 19:52:20 +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
71b2d07e91 fixlet-container-post.sh and systemd-nspawn.conf are only shipped when machined is enabled
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1401
2023-06-21 11:34:13 +00:00
Franck Bui
7cf9a2fc29 re-enable file-triggers which was mistakenly disabled by the previous commit
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1400
2023-06-21 11:30:56 +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
Dominique Leuenberger
195789fc91 Accepting request 1093507 from Base:System
- Make sure to skip the call to systemd-tmpfile in the file-triggers when
  running on transaction systems

OBS-URL: https://build.opensuse.org/request/show/1093507
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd?expand=0&rev=393
2023-06-16 14:53:14 +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
Dominique Leuenberger
3754051e6e Accepting request 1090446 from Base:System
- Import commit 07bb12a282b0ea378850934c4a76008b448b8bad (merge of v253.5)
  For a complete list of changes, visit:
  25aec15788...07bb12a282

- 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/request/show/1090446
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd?expand=0&rev=392
2023-06-12 13:25:00 +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
Dominique Leuenberger
f3a843e9a6 Accepting request 1088562 from Base:System
- Move more packaging fixups in the fixlet script.

- 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.

- 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/request/show/1088562
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd?expand=0&rev=391
2023-05-24 18:21:27 +00:00
Franck Bui
fdc1c67320 really enable file trigger (sigh)
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1392
2023-05-23 08:03:15 +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
Dominique Leuenberger
99a49e028a Accepting request 1085215 from Base:System
- 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.

- Make use of %_systemd_util_dir in the spec file.
- Rename the SUSE specific scripts used to fix up the system where systemd is
  installed on. Also rename the directory where these scripts are stored.

- kbd-model-map.legacy: drop entry for 'ruwin_alt-UTF-8' as yast doesn't rely on
  it anymore, see https://github.com/yast/yast-country/pull/307

- Import commit 25aec157888f7aa9a36726962fcbbf2c74ead440 (merge of v253.4)
  For a complete list of changes, visit:
  3ce9610975...25aec15788

- Import commit 3ce9610975b5239a21c0c886cb893bb172966de7
  3ce9610975 test: dont use anchor char '$' to match a part of a string
  03ede3eaa2 locale: when no xvariant match select the entry with an empty xvariant
  f08017efd5 locale: convert generated vconsole keymap to x11 layout automatically
  e8cf56459b localed-util: make use of strdupcspn()
  821c684440 test: use kbd-mode-map we ship in TEST-73-LOCALE

OBS-URL: https://build.opensuse.org/request/show/1085215
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd?expand=0&rev=390
2023-05-08 15:23:42 +00:00
Franck Bui
75c2b43fcc fix duplicate %post container
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1388
2023-05-05 16:43:41 +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
Franck Bui
932bbabfac - Make use of %_systemd_util_dir in the spec file.
- Rename the SUSE specific scripts used to fix up the system where systemd is
  installed on. Also rename the directory where these scripts are stored.

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1385
2023-05-04 10:06:44 +00:00
Franck Bui
d6badd1a2e - kbd-model-map.legacy: drop entry for 'ruwin_alt-UTF-8' as yast doesn't rely on
it anymore, see https://github.com/yast/yast-country/pull/307

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1384
2023-05-04 09:05:47 +00:00
Dominique Leuenberger
36bd24f3be Accepting request 1084033 from Base:System
- Revert changes that dropped calls to %systemd_{pre,post} in the main package
  Until we switch to filetriggers these calls are needed when a new version of
  systemd introduced a new config file during an update.
- We also introduce a new build conditional "%filetriggers" to identify easily
  which parts of the code will become obsolete when we'll switch to file
  triggers (WIP). This is important as this is unlikely to happen on SLE.

OBS-URL: https://build.opensuse.org/request/show/1084033
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd?expand=0&rev=389
2023-05-03 10:56:28 +00:00
Franck Bui
3929c646ed - Import commit 25aec157888f7aa9a36726962fcbbf2c74ead440 (merge of v253.4)
For a complete list of changes, visit:
  3ce9610975...25aec15788

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1383
2023-05-03 07:31:31 +00:00
Franck Bui
f3a1dd8bfa - Import commit 3ce9610975b5239a21c0c886cb893bb172966de7
3ce9610975 test: dont use anchor char '$' to match a part of a string
  03ede3eaa2 locale: when no xvariant match select the entry with an empty xvariant
  f08017efd5 locale: convert generated vconsole keymap to x11 layout automatically
  e8cf56459b localed-util: make use of strdupcspn()
  821c684440 test: use kbd-mode-map we ship in TEST-73-LOCALE
- Mapping for converted keymaps is not needed anymore since their conversion to
  their x11 layout counterpart is now done automatically by localed (commit
  f08017efd5).

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1382
2023-05-03 06:34:19 +00:00
Franck Bui
e681296532 systemd_post/pre should be called in any cases (regardless of file triggers)
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1381
2023-05-02 12:14:31 +00:00
Franck Bui
2f6697b330 fix weird build error...
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1380
2023-05-02 12:00:37 +00:00
Franck Bui
56582eb002 Update comments
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1379
2023-05-02 11:39:35 +00:00
Franck Bui
1a72578ed0 - Revert changes that dropped calls to %systemd_{pre,post} in the main package
Until we switch to filetriggers these calls are needed when a new version of
  systemd introduced a new config file during an update.
- We also introduce a new build conditional "%filetriggers" to identify easily
  which parts of the code will become obsolete when we'll switch to file
  triggers (WIP). This is important as this is unlikely to happen on SLE.

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1378
2023-05-02 11:23:49 +00:00
Dominique Leuenberger
d39270a4fe Accepting request 1083513 from Base:System
- Re-add back 'arabic' keymap mapping as YaST needs more time than expected to
  cope with this change.

- systemd.spec: don't call %systemd_{pre,post} on units shipped by the main
  package since they don't have any effect during installation (systemctl is not
  yet installed when %pre script is executed). This is actually the reason why
  it's handled by the %%posttrans scripts of systemd-presets-common-SUSE.

- kbd-model-map.legacy: 'arabic' vc keymap has been renamed 'ara' (bsc#1210702)

- add some green to systemd-boot menu

- kbd-model-map.legacy: drop some entries no longer needed
  by YaST (related to bsc#1194609)

- tmpfiles-suse.conf (jsc#PED-3144):
  - Remove lastlog entry, replaced by lastlog2
  - Remove btmp entry, not Y2038 safe

OBS-URL: https://build.opensuse.org/request/show/1083513
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd?expand=0&rev=388
2023-04-29 15:27:53 +00:00
Franck Bui
5df529a77e - Re-add back 'arabic' keymap mapping as YaST needs more time than expected to
cope with this change.

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1377
2023-04-28 10:44:50 +00:00
Franck Bui
958f5e240c - systemd.spec: don't call %systemd_{pre,post} on units shipped by the main
package since they don't have any effect during installation (systemctl is not
  yet installed when %pre script is executed). This is actually the reason why
  it's handled by the %%posttrans scripts of systemd-presets-common-SUSE.

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1376
2023-04-27 16:27:42 +00:00
Franck Bui
77c0aa7ebc - kbd-model-map.legacy: 'arabic' vc keymap has been renamed 'ara' (bsc#1210702)
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1375
2023-04-27 09:05:16 +00:00
Franck Bui
fa67ecf8d6 update comments in kbd-model-map.legacy
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1374
2023-04-20 12:59:09 +00:00
Franck Bui
a15f299e4e Accepting request 1080373 from home:lnussel:branches:Base:System
- add some green to systemd-boot menu

OBS-URL: https://build.opensuse.org/request/show/1080373
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1373
2023-04-20 06:18:00 +00:00