SHA256
1
0
forked from pool/systemd
Commit Graph

900 Commits

Author SHA256 Message Date
Franck Bui
35f5ab4e2b - Import commit 736db5a59f1ab1317ef64ec6e7dc394250178146
98bc28d824 tmpfiles: constify item_compatible() parameters
  3faf1a2648 test: adapt install_pam() for openSUSE
  b7ca34fa28 test: add test checking tmpfiles conf file precedence
  2713693d93 test tmpfiles: add a test for 'w+'
  ce2cbefe38 tmpfiles.d: only 'w+' can have multiple lines for the same path (bsc#1198090)
  769f5a0cbe Support -D_FORTIFY_SOURCE=3 by using __builtin_dynamic_object_size.

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1277
2022-04-19 09:09:31 +00:00
Franck Bui
65352a537b Accepting request 968042 from home:Andreas_Schwab:Factory
- libseccomp is needed everywhere

OBS-URL: https://build.opensuse.org/request/show/968042
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1276
2022-04-11 07:55:36 +00:00
Franck Bui
770c459ef3 - Move coredumpctl completion files into systemd-coredump sub-package.
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1275
2022-04-07 19:33:15 +00:00
Franck Bui
e20e054528 - Import commit e43a1b018899266b764ab81afb9c30fb417675c6
1c229f8fc1 cryptsetup: fall back to traditional unlocking if any TPM2 operation fails
  8881f21539 cryptsetup: fix typo
  5882148902 journald: make use of CLAMP() in cache_space_refresh()
  6ee0601f73 journald: make sure journal_file_open() doesn't leave a corrupted file around after failing (bsc#1198114)
  fe928f3d49 fs-util: make sure openat_report_new() initializes return param also on shortcut
  3881af1806 fs-util: fix typos in comments
  96060b73ba journal-file: port journal_file_open() to openat_report_new()
  611d9955bb fs-util: add openat_report_new() wrapper around openat()
  f16edb41d4 network: ignore all errors in loading .network files (bsc#1197968)
  5422730a7b meson: build kernel-install man page when necessary
  45c627cfc2 build: include status of TPM2 in the feature string show by --version
- Drop 0001-meson-build-kernel-install-man-page-when-necessary.patch
  It's been merged in the SUSE git repo.
  This includes the following bug fixes:
    - upstream commit 34357545590d4791d1acbbeb07ae8f7636e187cb (bsc#1198093)

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1274
2022-04-06 10:14:30 +00:00
Franck Bui
23f39dbffd - spec: define %bootstrap with %bcond_with so it can be used with %when. Also
re-order the meson options a bit.

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1273
2022-04-04 11:51:23 +00:00
Franck Bui
2f014da78d - spec: make sure /lib exists when installing conf files in /lib/modprobe.d
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1272
2022-04-04 08:50:14 +00:00
Franck Bui
2daca11463 - Temporarily disable 'libcryptsetup plugins until dracut 056 is merged in
Factory

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1271
2022-03-31 12:04:43 +00:00
Franck Bui
96e06c7aaf - Add 0001-meson-build-kernel-install-man-page-when-necessary.patch
Submitted to upstream: https://github.com/systemd/systemd/pull/22918

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1270
2022-03-31 11:23:51 +00:00
Franck Bui
3c809e7c63 - Move systemd-boot and all components managing (secure) UEFI boot into udev
sub-package: they may deserve a dedicated sub-package in the future but for
  now move them to udev so they aren't installed in systemd based containers.
- Move a bunch of components operating on (mainly block) devices into udev as
  without udev they're most likely useless.

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1268
2022-03-29 09:34:07 +00:00
Franck Bui
47ed0ef426 - spec: enable 'efi' support regardless of whether sd_boot is enabled or not
We should support EFI systems even if systemd-boot is not enabled.

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1267
2022-03-28 19:03:59 +00:00
Franck Bui
9c792eff33 - spec: cope with %{_modprobedir} being /lib/modprobe.d on SLE
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1266
2022-03-23 15:18:40 +00:00
Franck Bui
ecbd67ef23 - Add 1000-Revert-getty-Pass-tty-to-use-by-agetty-via-stdin.patch
A temporary workaround until bsc#1197178 is resolved.

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1265
2022-03-17 10:43:43 +00:00
Franck Bui
29d6899984 x- Import commit 8ef8dfd5401ba18caec59e54a05af9f2e0d7ac65 (merge of v250.4)
For a complete list of changes, visit:
  ca89b1d1fd...8ef8dfd540

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1264
2022-03-16 21:35:12 +00:00
Franck Bui
f3f6bb3f47 - Import commit ca89b1d1fd1ae86cc1e763d2d01ec2806f3a4d3a
37b683c832 journal: preserve acls when rotating user journals with NOCOW attribute set
  d043fabebc journal: when copying journal file to undo NOCOW flag, go via fd
  78c2766689 journal-file: explicitly handle file systems that do not support hole punching
  7ecfb4b098 journal-file: fix error handling of pread() in journald_file_punch_holes()
  c4946a412c journal-file: don't use pread() when determining where to append, use mmap as before
  d3fbd20628 journal: various fixes to journal_file_read_object()
  5897a8e8d4 shared: Handle filesystems that don't support hole punching in COPY_HOLES
  27746408e2 journal: Truncate file instead of punching hole in final object
  59b6130030 shared: Ensure COPY_HOLES copies trailing holes
  ac9ccba73f journal: stat journal file after truncating
  0257283444 journal: Copy holes when archiving BTRFS journal files
  26c2a9952d shared: Copy holes in sparse files in copy_bytes_full()
  6c7191dece copy: fix wrong argument passed to S_ISREG() in copy_file_fd_full()
  af0a43024d udev: 60-persistent-storage-tape.rules: handle duplicate device ID (bsc#1195529)

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1263
2022-03-16 20:46:20 +00:00
Franck Bui
fdc392bf33 Accepting request 962139 from home:gmbr3:Active
- Update Supplements to new format in baselibs.conf
- Fix libsystemd-shared exclusion in baselibs.conf
- Exclude new cryptsetup libraries in baselibs.conf

OBS-URL: https://build.opensuse.org/request/show/962139
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1262
2022-03-16 12:30:56 +00:00
Franck Bui
a38ff3ffe3 - systemd.spec: minor simplification by assuming that %{bootstrap} is always
defined.

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1261
2022-03-08 19:07:58 +00:00
Franck Bui
309d52f8ce - Make sure to create 'systemd-coredump' system user when systemd-coredump is
installed (follow-up for the split of the sysusers config files).

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1260
2022-03-08 17:51:21 +00:00
Franck Bui
1ee13b1176 - Upgrade to v250.3 (commit dbd8bd2b9fd827ca89ed18034b60703c95798e01)
See https://github.com/openSUSE/systemd/blob/SUSE/v250/NEWS for
  details. 
  * Rebased 0001-conf-parser-introduce-early-drop-ins.patch
            0001-restore-var-run-and-var-lock-bind-mount-if-they-aren.patch
- Dropped 0007-networkd-make-network.service-an-alias-of-systemd-ne.patch
  The alias makes little sense as soon as multiple network managers are used in
  parallel.

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1259
2022-03-08 17:37:10 +00:00
Franck Bui
8472c3e397 - Fix the default target when it's been incorrectly set to one of the runlevel
targets (bsc#1196567)
  The script 'upgrade-from-pre-210.sh' used to initialize the default target
  during migration from sysvinit to systemd. However it created symlinks to
  runlevel targets, which are deprecated and might be missing when
  systemd-sysvcompat package is not installed. If such symlinks are found the
  script now renames them to point to 'true' systemd target units.
- When migrating from sysvinit to systemd (it probably won't happen anymore),
  let's use the default systemd target, which is the graphical.target one. In
  most cases it will do the right thing anyway.

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1258
2022-03-08 07:49:08 +00:00
Franck Bui
db5aaafc0e - Fix a regression caused by the split of the sysusers config files shipped by
systemd (bsc#1196322)
  Calls to %sysusers_create were not updated accordingly.

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1257
2022-02-24 13:44:24 +00:00
Franck Bui
39726d4947 - spec: fix dependencies for mini variants (follow-up)
systemd-mini-container is one of the sub-package that relies systemd-mini to
  conflict with kiwi and to not be installed on real systems.

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1256
2022-02-23 17:47:50 +00:00
Franck Bui
da7db93ea6 - Import commit 0bb1977021be2fc9ebfae10d766dff0b1a457f88 (merge of v249.10)
For a complete list of changes, visit:
  b9b83c5d11...0bb1977021

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1255
2022-02-22 15:30:37 +00:00
Franck Bui
dcb79a246a - Import commit b9b83c5d11e686178ddd545862a00b33c6fdfabb
8973cb2462 systemd-coredump: allow setting external core size to infinity (bsc#1195899 jsc#SLE-23866)

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1254
2022-02-22 14:54:05 +00:00
Franck Bui
bdc0d5a926 Accepting request 956704 from home:favogt:branches:Base:System
- Fix build if %_distconfdir is not defined (see bsc#1195679)

OBS-URL: https://build.opensuse.org/request/show/956704
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1253
2022-02-22 14:05:17 +00:00
Franck Bui
351e69e6e3 - Drop enablement symlink migration support of SysV init scripts
And let's finish reducing the support of SysV init scripts to its minimum.

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1252
2022-02-18 08:11:02 +00:00
Franck Bui
53c0c58da9 - spec: fix dependencies for mini variants
Make sure that all mini variants won't be installed in real systems and won't
  be involved when building medias with kiwi. Note that sub-packages that
  requires systemd (such as udev) don't need any special treatment since the
  specific deps are inherited from the main (mini) package.
- spec: simplify systemd-mini-doc dependencies by assuming that the doc
  sub-package can't be a build requirement for other packages.
- spec: libsystemd-mini and libudev-mini need to provide libsystemd and libudev
  respectively

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1251
2022-02-14 15:52:52 +00:00
Franck Bui
b7fc6f7a38 - Rename systemd-sysvinit into systemd-sysvcompat
systemd-sysvinit was probably provided to allow systems to switch from
  sysvinit to systemd by overwriting /sbin/init with a link to systemd. But this
  isn't very useful anymore due to the fact that sysvinit is not supported since
  several years. Therefore the subpackage contains now the files needed to keep
  backward compatibility with SysV init scripts (most notably sysv-generator)
  and has been renamed accordingly. The few files that are not specific to
  sysvinit (such as /bin/init) have been moved to the main package.
  Normally this new subpackage shouldn't be needed (since all packages use
  systemd unit files) unless a 3rd party application is installed and still
  relies on SysV init scripts.

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1250
2022-02-14 09:09:21 +00:00
Franck Bui
26f6231c47 - systemd.spec: explicitely turn on/off build options
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1248
2022-02-14 07:34:49 +00:00
Franck Bui
5e29814e05 - Always create systemd-network system user, even if systemd-networkd is not
installed (bsc#1195559)

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1246
2022-02-04 15:23:12 +00:00
Franck Bui
7d7afbe979 - Make more use of %{_unitdir} in files.{systemd,container}
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1245
2022-02-02 09:33:06 +00:00
Franck Bui
f09be28e73 - Installation of libnss_mymachines.so depended on %{bootstrap} but it is
actually installed when %{with machined} is true.
- Call ldconfig when container subpackage is installed since it ships
  nss-mymachines NSS plug-in module.
- Drop 0006-sysv-generator-add-back-support-for-SysV-scripts-for.patch
       0009-sysv-add-back-support-for-all-virtual-facility-and-f.patch

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1243
2022-02-01 09:21:17 +00:00
Franck Bui
dc2bffc70d - Import commit 117bd7f14aa7834d85a4306cd380d292bec04108
1395c74be7 udevadm: cleanup-db: don't delete information for kept db entries (bsc#1194912)
  bbafc8092a udevadm: cleanup_dir: use dot_or_dot_dot()

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1242
2022-01-31 15:56:09 +00:00
Franck Bui
71481ef6cf - Drop 0006-sysv-generator-add-back-support-for-SysV-scripts-for.patch 0009-sysv-add-back-support-for-all-virtual-facility-and-f.patch
Given the fact that Factory no more ship SysV init scripts since several
  months, only scripts coming from 3rd party applications should remain which
  are unlikely to rely on the SUSE specifities implemented by these
  patches. This change was announced on the Factory mailing list:
  https://lists.opensuse.org/archives/list/factory@lists.opensuse.org/thread/3ERUP5ZZJ6PPA36L3HVN46BH6U6JL74O/

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1241
2022-01-31 15:05:15 +00:00
Franck Bui
2b4112e1f9 - Import commit 885e0b9126bd2cf1e3f6b147c45ec58a5550c75c
41334be59e meson: minor cleanup
  3db0c28462 sysusers: split up systemd.conf
- Drop 0012-resolved-create-etc-resolv.conf-symlink-at-runtime.patch (bsc#1195153)
  Since v241, the patch isn't useful anymore because resolved is no more able to
  create /etc/resolv.conf symlink by itself,it runs as 'systemd-resolve'
  user. The symlink is now handled by a tmpfiles config file which is only
  installed when systemd-resolved is. The tmpfiles config file has currently a
  lower priority than the one shipped by netconfig.

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1240
2022-01-31 14:13:33 +00:00
Franck Bui
3868d6b01d - Make use of %ldconfig_scriptlets
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1239
2022-01-31 10:21:19 +00:00
Franck Bui
6cfe6f2376 - Merge nss-resolved and nss-mymachines NSS plug-in modules into systemd-network
and systemd-container respectively.
  These modules are plug-in modules hence the shared library packaging policy
  doesn't apply for them. Moreover they're pretty useless alone without their
  respective systemd services, Hence let's reduce the number of sub-packages as
  the list keeps increasing.

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1238
2022-01-31 10:16:32 +00:00
Franck Bui
ea1914fbfe - Merge libudev-devel into systemd-devel
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1236
2022-01-27 16:09:21 +00:00
Franck Bui
f29e940359 - Make sure that libopenssl-devel is installed when building resolved. Openssl
was implictly pulled in by systemd-experimental subpackage but could be
  missing if the build of this subpackage was disabled.

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1235
2022-01-27 07:49:42 +00:00
Franck Bui
32caedbc10 - resolved: disable fallback DNS servers and fail when no DNS server info could
be obtained from the links. It's better to let the sysadmin know that
  something is likely misconfigured rather than silently handing over the DNS
  queries to Google or Cloudflare.

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1234
2022-01-26 17:34:15 +00:00
Franck Bui
e444aad0ac Document bsc#1192637 in the changelogs
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1233
2022-01-26 17:03:49 +00:00
Franck Bui
48ed358dfb - resolved: disable DNSSEC until the following issue is solved:
https://github.com/systemd/systemd/issues/10579
- Replace '%setup+%autopatch' with '%autosetup'

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1232
2022-01-26 15:32:02 +00:00
Franck Bui
eb8c3c4572 - systemd.spec: explicitely list all files for each main (sub) packages
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1231
2022-01-26 14:18:47 +00:00
Franck Bui
a340d8d64b - Move the whole content of /usr/share/doc/packages/systemd in doc subpackage
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1229
2022-01-20 08:31:23 +00:00
Franck Bui
7cbd5f9854 - Move the systemd-network-generator stuff in udev package
This generator can generate .link files and is mainly used in initrd where
  udev is mandatory.

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1228
2022-01-19 14:30:23 +00:00
Franck Bui
c808214f56 - Restore /sbin/udevadm and /bin/systemctl (obsolete) paths when split_usr is
true (bsc#1194519)

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1227
2022-01-18 20:40:06 +00:00
Franck Bui
bfa6b12ff4 - Import commit 3743acbce3bd44208af453fc6dc384a1236dc83c (merge of v249.9)
For a complete list of changes, visit:
  e2ca79dd77...3743acbce3

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1226
2022-01-17 09:18:38 +00:00
Franck Bui
41391b086e Revert the drop of 0009-pid1-handle-console-specificities-weirdness-for-s390.patch: s390 is supported on Factory/TW
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1224
2022-01-17 08:45:49 +00:00
Franck Bui
6e23ca65e7 fix name of 0009-sysv-add-back-support-for-all-virtual-facility-and-f.patch in specfile
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1223
2022-01-17 08:16:34 +00:00
Franck Bui
45669cffeb - Drop 0009-pid1-handle-console-specificities-weirdness-for-s390.patch, it's SLE
material.
- Extract bits from 0008-sysv-generator-translate-Required-Start-into-a-Wants.patch
  which are not specific to the handling of 'Required-Start:' and move them into a
  new patch 1010-sysv-add-back-support-for-all-virtual-facility-and-f.patch

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1222
2022-01-14 15:14:43 +00:00
Franck Bui
7138585718 - Import commit e2ca79dd775d1f7d39861d57f23c43f6cd85a872 (merge of v249.8)
For a complete list of changes, visit:
  458220239c...e2ca79dd77
- Drop the following patches as they have been merged into SUSE/v249 branch:
  5000-shared-rm_rf-refactor-rm_rf_children_inner-to-shorte.patch
  5001-shared-rm_rf-refactor-rm_rf-to-shorten-code-a-bit.patch
  5002-shared-rm-rf-loop-over-nested-directories-instead-of.patch

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1221
2022-01-13 22:00:43 +00:00