Commit Graph

1029 Commits

Author SHA256 Message Date
Franck Bui
24c75ba3bb - 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
14597e6c16 only set build option rc-local= when necessary (ie 'sysvcompt' is enabled)
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1436
2023-09-12 18:35:09 +00:00
Franck Bui
7b4c7367be - 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
517f9f75b6 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
c10a1a22e0 - 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
fc10ef7e72 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
33b9f62243 - 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
0b0bed9ae0 don't build systemd-lang for the mini flavor
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1427
2023-08-18 12:53:51 +00:00
Franck Bui
e734091b73 - 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
4440401229 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
6378643fc1 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
ad958c372e - 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
7f95d496a4 - 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
abf33793bd - 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
7129c82e11 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
cb8db01ffc - 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
300532021e 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
de15224ccd - 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
053f0cfcc0 - 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
c4fd7e3731 - 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
e006e0ae66 - 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
d8a3efa523 - 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
81f00bfdab - 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
f5f3c792c8 - 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
ec9b4680c5 - 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
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
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
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
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
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
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
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
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
Franck Bui
98655e4212 - 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
e62219c454 - 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
22ea4e2c69 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
Franck Bui
fe4df06432 - Import commit 8e0a8094b8bbc442d262795b85ac57a37264c5fe (merge of v252.6)
For a complete list of changes, visit:
  d87834a334...8e0a8094b8
- Drop 5000-rules-add-missing-line-continuation.patch, it's part of v252.6.
- aaa_base has stop providing /etc/sysctl.conf, cope with this change so the
  compat symlink we provide is not dangling during the build.

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1348
2023-02-27 14:53:36 +00:00
Franck Bui
377b3b4c4d - Drop build requirement on libpci, it's not more needed since udev hwdb was
introduced 11 years ago.

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1347
2023-02-17 11:11:32 +00:00
Franck Bui
3778097b00 - Conditionalize the use of /lib/modprobe.d only on systems with split usr
support enabled (i.e. SLE).

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1346
2023-02-07 08:56:44 +00:00
Franck Bui
3150620d9f - Import commit d87834a33444b7163e741e1089e82b44af663808 (merge of v252.5)
For a complete list of changes, visit:
  5a506d73bd...d87834a334

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1345
2023-01-30 08:42:28 +00:00
Franck Bui
d33fc3170b - systemd-testsuite: move the integration tests in a dedicated sub directory.
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1343
2023-01-26 16:14:53 +00:00
Franck Bui
8e39b69ab3 - machines.target belongs to systemd-container, do its init/cleanup steps from
the scriptlets of this sub-package.

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1342
2023-01-26 14:06:46 +00:00
Franck Bui
92db992948 - Drop 1000-Revert-getty-Pass-tty-to-use-by-agetty-via-stdin.patch
It's no more necessary since util-linux 2.38 has been released in Factory.

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1341
2023-01-24 13:21:01 +00:00
Franck Bui
939e4d16da - Make sure we apply the presets on units shipped by systemd package
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1340
2023-01-23 10:49:38 +00:00
Franck Bui
798b1f7c4c - Add 5000-rules-add-missing-line-continuation.patch until commit
de8409ac43f6e4596de4cecce8dbbb5f1f2a18b1 is backported to the v252 stable
  tree.

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1339
2023-01-06 10:11:58 +00:00
Franck Bui
4ad69a267d - Import commit 5a506d73bde7ba9261985f8e9ce084044a519432 (merge of v252.4)
It includes the following fixes:
    9b75a3d050 coredump: do not allow user to access coredumps with changed uid/gid/capabilities (bsc#1205000 CVE-2022-4415)
    
  For a complete list of changes, visit:
  bf3fef9988...5a506d73bd
  Additionally, it also includes the following backports:
  - 20ca3155c5 localed: reload PID1 configuration after modifying /etc/locale.conf
  - 3538c202fd test: update TEST-73-LOCALE to define several locale settings in initial PID1 environment
- Drop 5000-coredump-adjust-whitespace.patch
       5001-coredump-do-not-allow-user-to-access-coredumps-with-.patch
  They are part of v252.4.

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1338
2022-12-21 15:33:47 +00:00
Franck Bui
dcbd60fc98 - Fix systemd-coredump to not allow user to access coredumps with changed
uid/gid/capabilities (bsc#1205000 CVE-2022-4415)
  Add 5000-coredump-Fix-format-string-type-mismatch.patch
  Add 5001-coredump-drop-an-unused-variable.patch

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1336
2022-12-20 07:23:19 +00:00
Franck Bui
fb51e2d405 - Import commit bf3fef99886bd977a1c7a51d20087bc8977fff44
6372fb0cc4 btrfs-util: convert O_PATH if necessary, in btrfs quota call (bsc#1205560)
  12e68eb0e5 blockdev-util: move O_PATH fd conversion into btrfs_get_block_device_fd() to shorten things
  bb2bafdc9d btrfs-util: convert to fd_reopen_condition()
  1323232948 fd-util: add new helper fd_reopen_conditional()
- Drop 6000-Revert-tmpfiles-whenever-creating-an-inode-immediate.patch
  It's no more needed as a fix for bsc#1205560 has been queued, see above.

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1334
2022-12-09 08:42:43 +00:00
Franck Bui
f0eaae6ea1 - Import commit 82898a14f5b0a965ba9c1efc1913fcdf29d446a8 (merge of v252.3)
For a complete list of changes, visit:
  e7e931b07e...82898a14f5
  Additionally, it also includes the following backports:
  - 17b2f9f196 utmp-wtmp: fix error in case isatty() fails
  - 8d5c487c87 sd-bus: handle -EINTR return from bus_poll() (bsc#1201982)
  - 2dd217c8b5 tree-wide: modernizations with RET_NERRNO()

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1333
2022-12-09 08:02:50 +00:00
Franck Bui
518691bfe0 - Don't ship symlink /usr/lib/environment.d/99-environment.conf
anymore. /etc/environment is owned and parsed (among other config files) by
  pam_env(8), which is included by 'systemd-user' PAM service anyway.

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1332
2022-12-02 14:11:46 +00:00
Franck Bui
dc779011b8 - Import commit e7e931b07edd786dc6ca1dae6c23ff7b785f8efd (merge of v252.2)
For a complete list of changes, visit:
  64dc546913...e7e931b07e
- Rebase 6000-Revert-tmpfiles-whenever-creating-an-inode-immediate.patch

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1331
2022-11-28 08:47:58 +00:00
Franck Bui
72ca277d4a - Import commit 3bd3e4e6c1efe0d6df776107efde47e15e58fe96
d28e81d65c test: fix the default timeout values described in README.testsuite
  d921c83f53 meson: install test-kernel-install only when -Dkernel-install=true
  c3b6c4b584 tests: update install_suse_systemd()
  3c77335b19 tests: install dmi-sysfs module on openSUSE
  df632130cd tests: install systemd-resolved on openSUSE
- Add 6000-Revert-tmpfiles-whenever-creating-an-inode-immediate.patch until
  upstream issue #25468 is fixed.
- Drop 0001-meson-build-kernel-install-man-page-when-necessary.patch, the patch
  has been merged in the SUSE git repo.
  This includes the following bug fixes:
   - upstream commit 67c3e1f63a5221b47a8fea85ae421671f29f3b7e (bsc#1200723)

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1329
2022-11-22 14:51:55 +00:00
Franck Bui
13b308a6df fix previous commit and reenable sd_boot on regular builds
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1327
2022-11-17 21:09:00 +00:00
Franck Bui
b0db4bbec3 fix build on s390x where sd_boot=false
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1326
2022-11-15 09:34:37 +00:00
Franck Bui
73a2dc9b07 Add temporarly 6000-meson-install-test-kernel-install-only-when-Dkernel-.patch until this patch is mainstreamed.
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1325
2022-11-15 08:31:18 +00:00
Franck Bui
edf15499c7 - Upgrade to v252.1 (commit 64dc546913525e33e734500055a62ed0e963c227)
See https://github.com/openSUSE/systemd/blob/SUSE/v252/NEWS for details.
  * Rebased 0001-conf-parser-introduce-early-drop-ins.patch
            1000-Revert-getty-Pass-tty-to-use-by-agetty-via-stdin.patch
  * The new tools systemd-measure and systemd-pcrphase have been added to the
    experimental sub-package for now.

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1323
2022-11-14 11:30:28 +00:00
Franck Bui
07468b1c91 - Import commit 9cdd78585069b133bebcd479f3a204057ad25d76 (merge of v251.8)
For a complete list of changes, visit:
  c212388f7d...9cdd785850

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1322
2022-11-08 16:55:14 +00:00
Franck Bui
e9ef70bfaa - Import commit c212388f7de8d22a3f7c22b19553548ccc0cdd15 (merge of v251.7)
For a complete list of changes, visit:
  f78bba8d03...c212388f7d

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1321
2022-10-25 07:42:40 +00:00
Franck Bui
0a7652deea - specfile: reindent comments
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1320
2022-10-25 07:13:51 +00:00
Franck Bui
71e2855fe7 - Import commit f78bba8d037cc26c09bbdd167625b2d7fe1f5a30 (merge of v251.6)
Beside the merge of v251.6, it also includes the following backport:
  - 07aaa898bd pstore: do not try to load all known pstore modules
  For a complete list of changes, visit:
  07aa29e394...f78bba8d03

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1319
2022-10-21 09:30:18 +00:00
Franck Bui
0d0108d9e4 - Don't create /var/lib/systemd/random-seed in %post (bsc#1181458)
To make sure that the same seed is not replicated when installing from a
  'golden' image.
  For regular installations the random seed file is initialized by the installer
  itself (bsc#1174964). Even if it didn't, the random seed file would be created
  on first boot anyway.

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1318
2022-10-20 14:06:35 +00:00
Franck Bui
53e28f31e7 Accepting request 1010314 from home:dirkmueller:Factory
- avoid expanding of macro in comment which leads to an error
  on installation

OBS-URL: https://build.opensuse.org/request/show/1010314
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1316
2022-10-13 07:45:15 +00:00
Franck Bui
e860259280 - Import commit 07aa29e3942fb46b0aed5405c88e8d3179ca958f (merge of v251.5)
For a complete list of changes, visit:
  532faa39eb...07aa29e394

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1315
2022-10-04 08:58:28 +00:00
Franck Bui
2fe28ddd4c - Drop the old band aid used during the breakage introduced by the switch of
/tmp to tmpfs
  This was done to address the regression reported in boo#1175779 but shouldn't
  be necessary anymore since the (few) affected users should have updated
  systemd during the last 2 years.

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1314
2022-09-21 09:24:59 +00:00
Franck Bui
4d56555171 - Move nss-systemd and nss-myhostname NSS modules into the main package
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1313
2022-09-21 07:49:53 +00:00
Franck Bui
1e7e73cc58 - Give the instructions to create a home directory with systemd-homed in the
description of the systemd-experimental sub-package

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1312
2022-09-20 15:09:28 +00:00
Franck Bui
06c1b8f530 Accepting request 1001304 from home:fawz:branches:Base:System
- Enable building and include libcryptsetup-plugins provided by systemd
  Now that dracut 057 has been released we can enable building libcryptsetup
  plugins. These can be used by cryptsetup to extend functionality including
  fido2, pkcs11 and tpm2 support.

OBS-URL: https://build.opensuse.org/request/show/1001304
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1309
2022-09-12 07:35:44 +00:00
Franck Bui
2524882ae4 Accepting request 999867 from home:bmwiedemann:reproducible
Let systemd trust the RTC for 30y instead of 15 (bsc#1202356)
  to allow for our systems to be used in edge locations
  without systemd updates for a long time

OBS-URL: https://build.opensuse.org/request/show/999867
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1306
2022-08-29 08:11:19 +00:00
Franck Bui
852c5594ab Add creation of systemd-oom user (it was forgotten previously)
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1305
2022-08-18 12:51:19 +00:00
Franck Bui
55d07cad54 Revert "Don't try to apply presets to any services shipped by the experimental sub-package"
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1303
2022-08-18 07:02:18 +00:00