Commit Graph

1199 Commits

Author SHA256 Message Date
Franck Bui
6d1f1e4391 - 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
5948b03d7f 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
0e26346e59 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
3c6fc07127 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
7999f4037f 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
52a0cb88bb - 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
9cbed4aeaf - 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
75abf36a4c - 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
3dbff262b5 - 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
61ccc5d214 - 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
b478b92a26 - 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
9b3b19598d - 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
147945802c 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
053178b669 - 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
3968305d8c - 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
7f1200300a - 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
2500846e7f 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
0e1241b678 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
9ab1ccba95 - 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
70239988e7 - 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
9c0dfe2316 - 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
Franck Bui
25e4139600 - 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
4c57333c61 - 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
75f4e30e98 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
26c31c860f 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
24ab11be27 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
a2a300c5df - 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
Franck Bui
a30c1e56e7 - 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
93f3c763af - 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
1ac40afa0a - 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
1dc57a78ea 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
fc8d229d70 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
Franck Bui
157aad3e8f Accepting request 1080107 from home:mvidner:branches:Base:System
- kbd-model-map.legacy: drop some entries no longer needed
  by YaST (related to bsc#1194609)

OBS-URL: https://build.opensuse.org/request/show/1080107
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1372
2023-04-18 10:20:50 +00:00
Franck Bui
f941610bc6 Accepting request 1078596 from home:kukuk:branches:Base:System
- 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/1078596
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1371
2023-04-14 07:58:47 +00:00
Franck Bui
8d1dd322db - testsuite: TEST-75-RESOLVED needs knot DNS server
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1370
2023-04-05 08:22:16 +00:00
Franck Bui
d1b3ab3cd6 - Import commit 66f3a8a47d5bf6aea3f6fb181c01550a1a54406e (merge of v253.3)
This merge also includes the following fix, which is not part of the stable
  release:
    d2413cec02 test/test-functions: fix typo in install_suse_systemd()
  For a complete list of changes, visit:
  03cfbe7673...66f3a8a47d

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1369
2023-04-05 07:45:22 +00:00
Franck Bui
4a35a71c8b - Import commit 03cfbe767327d01d5a71131d91bf06fdc0047ca1
03cfbe7673 test: use setpriv instead of su for user switch from root
  857843834c test: wrap mkfs.*/mksquashfs/mkswap binaries when running w/ ASan
  be7388f8c5 test: do not remove state directory on failure
  1b2885bd16 test: fix regexp in testsuite-74.mount.sh
  41142f8013 test: drop extraneous bracket in testsuite-74.mount.sh

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1368
2023-04-03 09:38:08 +00:00
Franck Bui
581a1d75ea - systemd.spec: add files.coredump
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1367
2023-04-03 09:21:41 +00:00
Franck Bui
868324363d - Import commit b63f58661b08037d8cb04ed97b5e39d9bf415fdc (merge of v253.2)
For a complete list of changes, visit:
  8b01686dd2...b63f58661b
- Move systemd-fsck stuff to udev sub-package.

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1366
2023-03-31 15:15:32 +00:00
Franck Bui
c4b124bd24 - Include pam_keyinit.so in our systemd-user PAM service (bsc#1209741)
That way "systemd --user" instances get their own session keyring instead of
  the user default session keyring. For some reasons cifscreds refuses to work
  with the latter. That's what is expected for every PAM session anyway.

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1365
2023-03-31 13:08:07 +00:00
Franck Bui
281395171a - Import commit 8b01686dd20124efc300d21ef38d85c1f75c372f
8b01686dd2 test: don't export $TOOLS_DIR
  7a56b1b2f0 test: clean up $STATEDIR too
  324bb19eb8 test: $STATEDIR should not point to /usr/lib/systemd/tests when NO_BUILD=1
  2251735482 test: install symlinks with valid targets on SUSE and Debian
  c30905a269 test: on openSUSE install the collection of unit test binaries in the target only for TEST-02-UNITTESTS
  797ced15d8 meson: make sure the unit test scripts find testdata/ even if they are not installed in the same directory
  04dc5b44b7 meson: define testdata_dir globally
  69643c6c96 test: install unit tests in a dedicated subdirectory below '$testsdir'

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1364
2023-03-28 16:14:46 +00:00
Franck Bui
5dcd5989cf - Import commit d914e29c33c0248226a01112a3e03181ef17b06b
d914e29c33 Revert "hwdb: fix swapped buttons for Logitech Lift left" (bsc#1209618)
  8360811d23 udev-rules: fix nvme symlink creation on namespace changes (bsc#1207410)
  b77c13a130 systemctl: explicitly cast the constants to uint64_t (bsc#1209305)
  51011f280d test: assume run-unit-tests.py and unit tests are installed in the same directory
  d86e346f6b tests: don't use absolute paths when installing binaries in TEST-58-REPART
  97e886c1f4 tests: fix inverted condition in testsuite-58.sh
- Drop 5002-systemctl-explicitly-cast-the-constants-to-uint64_t.patch, it's been
  merged in 'SUSE/v253', see above.

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1363
2023-03-23 08:13:40 +00:00
Franck Bui
cc86443e4f Accepting request 1073579 from home:vlefebvre:branches:Base:System
Add requires to pefile module python for the ukify tool on systemd-experimental

OBS-URL: https://build.opensuse.org/request/show/1073579
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1362
2023-03-21 15:38:07 +00:00
Franck Bui
082960e0e7 - Drop 0005-udev-create-default-symlinks-for-primary-cd_dvd-driv.patch
These obsolete symlinks were kept because several years ago VLC was still
  relying on some of them. However it's been a long a time ago that it's been
  fixed and cdrom or similar devices are discovered in a better way.

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1361
2023-03-20 08:37:06 +00:00
Franck Bui
5a5c1ca00b Accepting request 1073043 from home:aplanas:branches:Base:System
- Enable that systemd can load the IMA policy from
  /etc/ima/ima-policy.  This is used to complement dracut-ima when
  using SELinux, as the SELinux policy should not be loaded in the
  initrd (https://github.com/openSUSE/microos-tools/pull/14)

OBS-URL: https://build.opensuse.org/request/show/1073043
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1360
2023-03-20 08:20:36 +00:00
Franck Bui
3bc4bd3fe6 - Add 5002-systemctl-explicitly-cast-the-constants-to-uint64_t.patch (bsc#1209305)
Added temporarily until it's merged in either the stable v253 branch or in the
  SUSE git repo.

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1359
2023-03-16 07:35:14 +00:00
Franck Bui
0aba26fc09 - Add 5001-Revert-core-propagate-stop-too-if-restart-is-issued.patch until
https://github.com/systemd/systemd/issues/26839 is fixed properly.

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1358
2023-03-16 07:30:09 +00:00
Franck Bui
f7a0833d12 - testsuite: mtools is required by TEST-58-REPART
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1357
2023-03-16 07:28:34 +00:00
Franck Bui
6677a58b60 - swtpm and tpm2.0-tools are needed by TEST-70-TPM2
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1356
2023-03-13 17:13:34 +00:00
Franck Bui
e1a7aedea7 - Add 5000-core-manager-run-generators-directly-when-we-are-in-.patch, a
temporary workaround until https://github.com/dracutdevs/dracut/issues/2211 is
  fixed in dracut.

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1355
2023-03-09 10:39:10 +00:00