Commit Graph

963 Commits

Author SHA256 Message Date
Franck Bui
7671b20ed2 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
34d292b53f - 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
37049dc38f - 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
51112a15ac - 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
062366af9f - 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
ff059491fb - 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
8c79d8b6a8 - 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
2e09c5982e - 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
808662d768 - 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
07888f84ad 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
b2c044a33d 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
48fd9f6936 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
c1701c084d - 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
a2e86ec963 - 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
05dd2a787d - 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
c73979afdb - 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
604846448d 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
4222e1bf39 - 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
f9d30f39d0 - 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
1630d49c85 - 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
7db67f917a 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
eaf376d11b 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
8c7b64d8ba - 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
7164844b8f - 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
5d41295cbf - 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
4bb6c0add0 - 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
f968fbda80 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
5d113245f3 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
4eb7f9daa1 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
95283d05cd - 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
3162e4b08f - 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
aa93346d87 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
c83606b75b - 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
d290fac338 - 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
f041cbb042 - 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
3c3a2dd9fd - 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
8abd12f19f - 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
3be1a22ac0 - 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
7dbc995aa4 - 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
f31c8867f6 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
360b92d4b9 - 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
4d62ea277a 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
a21586a25c - 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
5dbfb4cf1c - 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
02c43becf6 - 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
d995e6cdee - 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
748fa47407 - 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
7999a62fec - 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
Franck Bui
af9504ba66 - Import commit d447802feee7752cd1756f8fa86ce2a6314ba24f (merge of v252.7)
For a complete list of changes, visit:
  8e0a8094b8...d447802fee

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1351
2023-03-06 08:50:22 +00:00
Franck Bui
e5d1d780b3 Accepting request 1067366 from home:gmbr3:Active
- Correct BR from python3-jinja2 to python3-Jinja2, fixes
  dependency resolving on older distros

OBS-URL: https://build.opensuse.org/request/show/1067366
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1350
2023-02-28 15:53:20 +00:00