SHA256
1
0
forked from pool/systemd
Commit Graph

965 Commits

Author SHA256 Message Date
Franck Bui
1fa6c3fc5b update the description of the udev sub-package
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1419
2023-08-11 08:51:00 +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
4ee6d80b89 make systemd-testsuite pull the new subpackage systemd-homed in
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1417
2023-08-07 08:07:39 +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
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
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
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
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
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
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
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
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
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
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
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
Franck Bui
f8d6cffd89 - 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
ea462c25a1 - 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
d46d22ae3e - 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
678bd7c8e4 - 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
ddd1e277bd - 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
a95b5f34c2 - 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
024ec91297 - 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
ee03dfee49 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
150b109953 - 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
41d9804ed9 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
a84752c1af - 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
53f4c09eaa - 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
5e40dcaa5e - 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
ef2db1da9c - 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
14dffbd0a0 - 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
Franck Bui
9f218d0eed - Upgrade to v253.1 (commit 6c327d74aa0d350482e82a247d7018559699798d)
See https://github.com/openSUSE/systemd/blob/SUSE/v253/NEWS for details.
  * Rebased 0001-conf-parser-introduce-early-drop-ins.patch
  * Ship systemd-journald-audit.socket again: it can now be disabled via the
    usual "systemctl disable" mechanism to stop collection of audit
    messages. Note that it's handled by the preset logic, which turns it off by
    default.
  * TEST_06_SELINUX needs selinux-policy-devel.

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1352
2023-03-08 13:07:15 +00:00