systemd.git
18 months agoMerge systemd (256~rc3-7) import into refs/heads/workingbranch
Luca Boccassi [Sat, 1 Jun 2024 11:30:39 +0000 (12:30 +0100)]
Merge systemd (256~rc3-7) import into refs/heads/workingbranch

18 months agolocalectl-disable-keymap-support
Luca Boccassi [Wed, 8 Feb 2023 20:34:38 +0000 (20:34 +0000)]
localectl-disable-keymap-support

We no longer support old debianisms such as /etc/default/keyboard,
so disable the keymap interface in localectl until a definitive
solution is found.

Update the test suite to skip tests for unsupported localectl features.

Gbp-Pq: Topic debian
Gbp-Pq: Name localectl-disable-keymap-support.patch

18 months agotest: fix iscsi TEST-64-UDEV-STORAGE on Debian
Chris Hofstaedtler [Mon, 27 May 2024 02:33:39 +0000 (03:33 +0100)]
test: fix iscsi TEST-64-UDEV-STORAGE on Debian

Gbp-Pq: Name test-fix-iscsi-TEST-64-UDEV-STORAGE-on-Debian.patch

18 months agosystemd (256~rc3-7) unstable; urgency=medium
Luca Boccassi [Sat, 1 Jun 2024 11:30:39 +0000 (12:30 +0100)]
systemd (256~rc3-7) unstable; urgency=medium

  * NEWS: note that any leftover file in /tmp/ will be invisible due to
    the tmpfs and other clarifications (Closes: #1072249)
  * Add pkg.systemd.noukify profile. Will be useful for i386 reduced
    builds
  * d/rules: be more robust against non-existing dirs when deleting files
  * Allow setting GENSYMBOLS_LEVEL from the environment. Needed when
    building with llvm to work around #986746

[dgit import unpatched systemd 256~rc3-7]

18 months agoImport systemd_256~rc3-7.debian.tar.xz
Luca Boccassi [Sat, 1 Jun 2024 11:30:39 +0000 (12:30 +0100)]
Import systemd_256~rc3-7.debian.tar.xz

[dgit import tarball systemd 256~rc3-7 systemd_256~rc3-7.debian.tar.xz]

18 months agoMerge systemd (256~rc3-2) import into refs/heads/workingbranch
Luca Boccassi [Thu, 23 May 2024 15:31:42 +0000 (16:31 +0100)]
Merge systemd (256~rc3-2) import into refs/heads/workingbranch

18 months agolocalectl-disable-keymap-support
Luca Boccassi [Wed, 8 Feb 2023 20:34:38 +0000 (20:34 +0000)]
localectl-disable-keymap-support

We no longer support old debianisms such as /etc/default/keyboard,
so disable the keymap interface in localectl until a definitive
solution is found.

Update the test suite to skip tests for unsupported localectl features.

Gbp-Pq: Topic debian
Gbp-Pq: Name localectl-disable-keymap-support.patch

18 months agoMake /run/lock tmpfs an API fs
Michael Biebl [Thu, 4 Sep 2014 23:15:16 +0000 (01:15 +0200)]
Make /run/lock tmpfs an API fs

The /run/lock directory is world-writable in Debian due to historic
reasons. To avoid user processes filling up /run, we mount a separate
tmpfs for /run/lock. As this directory needs to be available during
early boot, we make it an API fs.

Drop it from tmpfiles.d/legacy.conf to not clobber the permissions.

Closes: #751392
Gbp-Pq: Topic debian
Gbp-Pq: Name Make-run-lock-tmpfs-an-API-fs.patch

18 months agoBring tmpfiles.d/tmp.conf in line with Debian defaults
Tollef Fog Heen [Tue, 5 Jun 2012 18:59:36 +0000 (20:59 +0200)]
Bring tmpfiles.d/tmp.conf in line with Debian defaults

Closes: #675422
Gbp-Pq: Topic debian
Gbp-Pq: Name Bring-tmpfiles.d-tmp.conf-in-line-with-Debian-defaul.patch

18 months agosystemd (256~rc3-2) unstable; urgency=medium
Luca Boccassi [Thu, 23 May 2024 15:31:42 +0000 (16:31 +0100)]
systemd (256~rc3-2) unstable; urgency=medium

  * autopkgtest: do not install gdm3 on riscv64 tests. gnome-shell hasn't
    built since last year for riscv64 due to #1058687 so the test fails as
    it cannot be installed, skip it like on s390x.

[dgit import unpatched systemd 256~rc3-2]

18 months agoImport systemd_256~rc3-2.debian.tar.xz
Luca Boccassi [Thu, 23 May 2024 15:31:42 +0000 (16:31 +0100)]
Import systemd_256~rc3-2.debian.tar.xz

[dgit import tarball systemd 256~rc3-2 systemd_256~rc3-2.debian.tar.xz]

18 months agoImport systemd_256~rc3.orig.tar.gz
Luca Boccassi [Wed, 22 May 2024 22:24:02 +0000 (23:24 +0100)]
Import systemd_256~rc3.orig.tar.gz

[dgit import orig systemd_256~rc3.orig.tar.gz]

19 months agoMerge systemd (255.5-1) import into refs/heads/workingbranch
Luca Boccassi [Wed, 24 Apr 2024 15:34:40 +0000 (16:34 +0100)]
Merge systemd (255.5-1) import into refs/heads/workingbranch

19 months agolocalectl-disable-keymap-support
Luca Boccassi [Wed, 8 Feb 2023 20:34:38 +0000 (20:34 +0000)]
localectl-disable-keymap-support

We no longer support old debianisms such as /etc/default/keyboard,
so disable the keymap interface in localectl until a definitive
solution is found.

Update the test suite to skip tests for unsupported localectl features.

Gbp-Pq: Topic debian
Gbp-Pq: Name localectl-disable-keymap-support.patch

19 months agoDowngrade a couple of warnings to debug
Michael Biebl [Mon, 15 Feb 2021 23:18:50 +0000 (00:18 +0100)]
Downgrade a couple of warnings to debug

If a package still ships only a SysV init script or if a service file or
tmpfile uses /var/run, downgrade those messages to debug. We can use
lintian to detect those issues.
For service files and tmpfiles in /etc, keep the warning, as those files
are typically added locally and aren't checked by lintian.

Closes: #981407
Gbp-Pq: Topic debian
Gbp-Pq: Name Downgrade-a-couple-of-warnings-to-debug.patch

19 months agosystemctl: do not shutdown immediately on scheduled shutdown
Ioanna Alifieraki [Thu, 17 Dec 2020 14:52:07 +0000 (14:52 +0000)]
systemctl: do not shutdown immediately on scheduled shutdown

When, for whatever reason, a scheduled shutdown fails to be set, systemd
will proceed with immediate shutdown without allowing the user to react.
This is counterintuitive because when a scheduled shutdown is issued,
it means the user wants to shutdown at a specified time in the future,
not immediately. This patch prevents the immediate shutdown and informs
the user that no action will be taken.

Fixes: #17575
Gbp-Pq: Topic debian
Gbp-Pq: Name systemctl-do-not-shutdown-immediately-on-scheduled-shutdo.patch

19 months agoRevert "core: set RLIMIT_CORE to unlimited by default"
Martin Pitt [Sat, 27 Feb 2016 11:27:06 +0000 (12:27 +0100)]
Revert "core: set RLIMIT_CORE to unlimited by default"

Partially revert commit 15a900327ab as this completely breaks core dumps
without systemd-coredump. It's also contradicting core(8), and it's not
systemd's place to redefine the kernel definitions of core files.

Commit bdfd7b2c now honours the process' RLIMIT_CORE for systemd-coredump. This
isn't what RLIMIT_CORE is supposed to do (it limits the size of the core
*file*, but the kernel deliberately ignores it for piping), so set a static
2^63 core size limit for systemd-coredump to go back to the previous behaviour
(otherwise the change above would break systemd-coredump).

Bug-Debian: https://bugs.debian.org/815020

Gbp-Pq: Topic debian
Gbp-Pq: Name Revert-core-set-RLIMIT_CORE-to-unlimited-by-default.patch

19 months agoSkip filesystem check if already done by the initramfs
Nis Martensen [Tue, 19 Jan 2016 21:01:43 +0000 (22:01 +0100)]
Skip filesystem check if already done by the initramfs

Newer versions of initramfs-tools already fsck and mount / and /usr in
the initramfs. Skip the filesystem check in this case.

Based on a previous patch by Michael Biebl <biebl@debian.org>.

Closes: #782522
Closes: #810748
Gbp-Pq: Topic debian
Gbp-Pq: Name Skip-filesystem-check-if-already-done-by-the-initram.patch

19 months agofsckd daemon for inter-fsckd communication
Didier Roche [Fri, 22 May 2015 11:04:38 +0000 (13:04 +0200)]
fsckd daemon for inter-fsckd communication

Global logic:
Add systemd-fsckd multiplexer which accepts multiple (via systemd-fsck's
/run/systemd/fsck.progress socket) fsck instances to connect to it and sends
progress report. systemd-fsckd then computes and writes to /dev/console the
number of devices currently being checked and the minimum fsck progress.

Plymouth and user interaction:
Forward the progress to plymouth and support canellation of in progress fsck.
Try to connect and send to plymouth (if running) some checked report progress,
using direct plymouth protocole.

Update message is the following:
fsckd:<num_devices>:<progress>:<string>
* num_devices corresponds to the current number of devices being checked (int)
* progress corresponds to the current minimum percentage of all devices being
  checked (float, from 0 to 100)
* string is a translated message ready to be displayed by the plymouth theme
  displaying the information above. It can be overridden by plymouth themes
  supporting i18n.

Grab in fsckd plymouth watch key Control+C, and propagate this cancel request
to systemd-fsck which will terminate fsck.

Send a message to signal to user what key we are grabbing for fsck cancel.

Message is: fsckd-cancel-msg:<string>
Where string is a translated string ready to be displayed by the plymouth theme
indicating that Control+C can be used to cancel current checks. It can be
overridden (matching only fsckd-cancel-msg prefix) for themes supporting i18n.

Misc:
systemd-fsckd stops on idle when no fsck is connected.
Add man page explaining the plymouth theme protocol, usage of the daemon
as well as the socket activation part. Adapt existing fsck man page.

Note that fsckd had lived in the upstream tree for a while, but was removed.
More information at
http://lists.freedesktop.org/archives/systemd-devel/2015-April/030175.html
-

Gbp-Pq: Topic debian
Gbp-Pq: Name fsckd-daemon-for-inter-fsckd-communication.patch

19 months agoMake /run/lock tmpfs an API fs
Michael Biebl [Thu, 4 Sep 2014 23:15:16 +0000 (01:15 +0200)]
Make /run/lock tmpfs an API fs

The /run/lock directory is world-writable in Debian due to historic
reasons. To avoid user processes filling up /run, we mount a separate
tmpfs for /run/lock. As this directory needs to be available during
early boot, we make it an API fs.

Drop it from tmpfiles.d/legacy.conf to not clobber the permissions.

Closes: #751392
Gbp-Pq: Topic debian
Gbp-Pq: Name Make-run-lock-tmpfs-an-API-fs.patch

19 months agoBring tmpfiles.d/tmp.conf in line with Debian defaults
Tollef Fog Heen [Tue, 5 Jun 2012 18:59:36 +0000 (20:59 +0200)]
Bring tmpfiles.d/tmp.conf in line with Debian defaults

Closes: #675422
Gbp-Pq: Topic debian
Gbp-Pq: Name Bring-tmpfiles.d-tmp.conf-in-line-with-Debian-defaul.patch

19 months agosystemd (255.5-1) sid; urgency=medium
Luca Boccassi [Wed, 24 Apr 2024 15:34:40 +0000 (16:34 +0100)]
systemd (255.5-1) sid; urgency=medium

  [ Michael Biebl ]
  * autopkgtest: depend on pkgconf rather than pkg-config
  * Stop setting default-hierarchy to unified explicitly. It is already
    the default and the meson option has been deprecated and is expected
    to be removed in a future release. See https://github.com/systemd/syst
    emd/commit/31323f21bb0ae7c712f43500c42997c91a6d20bf
  * Replace Skip-flaky-test_resolved_domain_restricted_dns-in-
    network.patch with a proper upstream fix.
  * Remove myself from Uploaders

  [ Luca Boccassi ]
  * autopkgtest: add dhcpcd5 as alternative dependency to dhcpcd-base
    dhcpcd-base is not available in Jammy
  * d/e/checkout-upstream: stop overriding sshconfdir. It actually works
    after some upstream test fixes, and it is necessary for TEST-46-HOMED
    to work
  * autopkgtest: install systemd-resolved for all suites. Necessary to
    avoid breaking the network on Ubuntu, in the upstream jammy-based CI
    jobs. Can be dropped once jammy is no longer tested.
  * autopkgtest: add breaks-testbed to more tests. Given resolved is
    installed, the testbed needs to be reset to switch back to the default
    network stack, otherwise installing packages in the salsa-ci
    autopkgtest job fails
  * autopkgtest: restrict systemd-boot-efi to architectures where it's
    built
  * Enable libpwquality support. Suggest it from systemd (used by
    firstboot and cryptenroll) and depend on it from homed (user creation
    is a core part of it). It's a dlopen() dependency. (Closes: #1063391)
  * d/e/checkout-upstream: do not initialize submodules. They are used by
    mkosi, not needed for CI builds
  * Autopkgtest: add dependency on libkmod-dev to upstream suite.
  * Switch build-depend form liblz4-tool to lz4. The former is deprecated
    and now dropped, the latter is available since buster. (Closes: #1068730)
  * initramfs hooks: pull in libkmod manually udev now opens it with
    dlopen, so the ldd-based resolver will not see it, pull it in the
    initramfs manually
  * New upstream version 255.5
  * Drop resolve-skip-IP_UNICAST_IF-for-local-sockets.patch, merged
    upstream
  * Refresh patches for v255.5
  * Bump Standards-Version to 4.7.0, no changes

  [ Daan De Meyer ]
  * Build in developer mode when building for upstream. Developer mode
    enables some helpful debugging options and enables various
    experimental components such as systemd-vmspawn which we want to be
    enabled when testing upstream.

[dgit import unpatched systemd 255.5-1]

19 months agoImport systemd_255.5.orig.tar.gz
Luca Boccassi [Wed, 24 Apr 2024 15:34:40 +0000 (16:34 +0100)]
Import systemd_255.5.orig.tar.gz

[dgit import orig systemd_255.5.orig.tar.gz]

19 months agoImport systemd_255.5-1.debian.tar.xz
Luca Boccassi [Wed, 24 Apr 2024 15:34:40 +0000 (16:34 +0100)]
Import systemd_255.5-1.debian.tar.xz

[dgit import tarball systemd 255.5-1 systemd_255.5-1.debian.tar.xz]

21 months agoMerge systemd (255.4-1) import into refs/heads/workingbranch
Luca Boccassi [Tue, 27 Feb 2024 17:43:55 +0000 (17:43 +0000)]
Merge systemd (255.4-1) import into refs/heads/workingbranch

21 months agolocalectl-disable-keymap-support
Luca Boccassi [Wed, 8 Feb 2023 20:34:38 +0000 (20:34 +0000)]
localectl-disable-keymap-support

We no longer support old debianisms such as /etc/default/keyboard,
so disable the keymap interface in localectl until a definitive
solution is found.

Update the test suite to skip tests for unsupported localectl features.

Gbp-Pq: Topic debian
Gbp-Pq: Name localectl-disable-keymap-support.patch

21 months agoSkip flaky test_resolved_domain_restricted_dns in networkd-test.py
Michael Biebl [Mon, 12 Dec 2022 23:32:17 +0000 (00:32 +0100)]
Skip flaky test_resolved_domain_restricted_dns in networkd-test.py

This test is part of DnsmasqClientTest and does not work reliably under
LXC/debci, so skip it for the time being.

Closes: #1025908
Gbp-Pq: Topic debian
Gbp-Pq: Name Skip-flaky-test_resolved_domain_restricted_dns-in-network.patch

21 months agoDowngrade a couple of warnings to debug
Michael Biebl [Mon, 15 Feb 2021 23:18:50 +0000 (00:18 +0100)]
Downgrade a couple of warnings to debug

If a package still ships only a SysV init script or if a service file or
tmpfile uses /var/run, downgrade those messages to debug. We can use
lintian to detect those issues.
For service files and tmpfiles in /etc, keep the warning, as those files
are typically added locally and aren't checked by lintian.

Closes: #981407
Gbp-Pq: Topic debian
Gbp-Pq: Name Downgrade-a-couple-of-warnings-to-debug.patch

21 months agosystemctl: do not shutdown immediately on scheduled shutdown
Ioanna Alifieraki [Thu, 17 Dec 2020 14:52:07 +0000 (14:52 +0000)]
systemctl: do not shutdown immediately on scheduled shutdown

When, for whatever reason, a scheduled shutdown fails to be set, systemd
will proceed with immediate shutdown without allowing the user to react.
This is counterintuitive because when a scheduled shutdown is issued,
it means the user wants to shutdown at a specified time in the future,
not immediately. This patch prevents the immediate shutdown and informs
the user that no action will be taken.

Fixes: #17575
Gbp-Pq: Topic debian
Gbp-Pq: Name systemctl-do-not-shutdown-immediately-on-scheduled-shutdo.patch

21 months agoRevert "core: set RLIMIT_CORE to unlimited by default"
Martin Pitt [Sat, 27 Feb 2016 11:27:06 +0000 (12:27 +0100)]
Revert "core: set RLIMIT_CORE to unlimited by default"

Partially revert commit 15a900327ab as this completely breaks core dumps
without systemd-coredump. It's also contradicting core(8), and it's not
systemd's place to redefine the kernel definitions of core files.

Commit bdfd7b2c now honours the process' RLIMIT_CORE for systemd-coredump. This
isn't what RLIMIT_CORE is supposed to do (it limits the size of the core
*file*, but the kernel deliberately ignores it for piping), so set a static
2^63 core size limit for systemd-coredump to go back to the previous behaviour
(otherwise the change above would break systemd-coredump).

Bug-Debian: https://bugs.debian.org/815020

Gbp-Pq: Topic debian
Gbp-Pq: Name Revert-core-set-RLIMIT_CORE-to-unlimited-by-default.patch

21 months agoSkip filesystem check if already done by the initramfs
Nis Martensen [Tue, 19 Jan 2016 21:01:43 +0000 (22:01 +0100)]
Skip filesystem check if already done by the initramfs

Newer versions of initramfs-tools already fsck and mount / and /usr in
the initramfs. Skip the filesystem check in this case.

Based on a previous patch by Michael Biebl <biebl@debian.org>.

Closes: #782522
Closes: #810748
Gbp-Pq: Topic debian
Gbp-Pq: Name Skip-filesystem-check-if-already-done-by-the-initram.patch

21 months agofsckd daemon for inter-fsckd communication
Didier Roche [Fri, 22 May 2015 11:04:38 +0000 (13:04 +0200)]
fsckd daemon for inter-fsckd communication

Global logic:
Add systemd-fsckd multiplexer which accepts multiple (via systemd-fsck's
/run/systemd/fsck.progress socket) fsck instances to connect to it and sends
progress report. systemd-fsckd then computes and writes to /dev/console the
number of devices currently being checked and the minimum fsck progress.

Plymouth and user interaction:
Forward the progress to plymouth and support canellation of in progress fsck.
Try to connect and send to plymouth (if running) some checked report progress,
using direct plymouth protocole.

Update message is the following:
fsckd:<num_devices>:<progress>:<string>
* num_devices corresponds to the current number of devices being checked (int)
* progress corresponds to the current minimum percentage of all devices being
  checked (float, from 0 to 100)
* string is a translated message ready to be displayed by the plymouth theme
  displaying the information above. It can be overridden by plymouth themes
  supporting i18n.

Grab in fsckd plymouth watch key Control+C, and propagate this cancel request
to systemd-fsck which will terminate fsck.

Send a message to signal to user what key we are grabbing for fsck cancel.

Message is: fsckd-cancel-msg:<string>
Where string is a translated string ready to be displayed by the plymouth theme
indicating that Control+C can be used to cancel current checks. It can be
overridden (matching only fsckd-cancel-msg prefix) for themes supporting i18n.

Misc:
systemd-fsckd stops on idle when no fsck is connected.
Add man page explaining the plymouth theme protocol, usage of the daemon
as well as the socket activation part. Adapt existing fsck man page.

Note that fsckd had lived in the upstream tree for a while, but was removed.
More information at
http://lists.freedesktop.org/archives/systemd-devel/2015-April/030175.html
-

Gbp-Pq: Topic debian
Gbp-Pq: Name fsckd-daemon-for-inter-fsckd-communication.patch

21 months agoMake /run/lock tmpfs an API fs
Michael Biebl [Thu, 4 Sep 2014 23:15:16 +0000 (01:15 +0200)]
Make /run/lock tmpfs an API fs

The /run/lock directory is world-writable in Debian due to historic
reasons. To avoid user processes filling up /run, we mount a separate
tmpfs for /run/lock. As this directory needs to be available during
early boot, we make it an API fs.

Drop it from tmpfiles.d/legacy.conf to not clobber the permissions.

Closes: #751392
Gbp-Pq: Topic debian
Gbp-Pq: Name Make-run-lock-tmpfs-an-API-fs.patch

21 months agoBring tmpfiles.d/tmp.conf in line with Debian defaults
Tollef Fog Heen [Tue, 5 Jun 2012 18:59:36 +0000 (20:59 +0200)]
Bring tmpfiles.d/tmp.conf in line with Debian defaults

Closes: #675422
Gbp-Pq: Topic debian
Gbp-Pq: Name Bring-tmpfiles.d-tmp.conf-in-line-with-Debian-defaul.patch

21 months agosystemd (255.4-1) sid; urgency=medium
Luca Boccassi [Tue, 27 Feb 2024 17:43:55 +0000 (17:43 +0000)]
systemd (255.4-1) sid; urgency=medium

  [ Luca Boccassi ]
  * Drop override for deprecated package-supports-alternative-init-but-no-
    init.d-script warning
  * Build-depend on pkgconf pkg-config is deprecated
  * Move kernel-install initrd script to slightly later prefix
    afea8e1a35e15382977d459241e8c56c180c862d moved it from 85 to 50, but
    this conflicts with the upstream mkosi job, which also runs at 50 and
    needs to run first. Move it back up slightly to 55 to fix the mkosi
    builds, eg: https://github.com/systemd/systemd-
    stable/actions/runs/7863691120/job/21454589626?pr=366
  * Mark python3-pefile build dependency as native. As suggested in
    #1063393
  * Skip python3-pefile build dependency only if both nocheck and
    noinsttests are set (Closes: #1063393)
  * Build with -Dtests=false if nocheck and noinsttest profiles are set.
    The required build dependencies will not be installed, so the tests
    won't build.
  * systemd-binfmt: use restart instead of try-restart on upgrade. It's
    not a long-running service so it doesn't matter, and it fixes
    installing a new binfmt provider (Closes: #1061960)
  * d/e/checkout-upstream: do not rebase when building on systemd-stable
    repo. We do rebase only pulls in the stable repo, and it's too much
    hassle to figure out the right parent branch, given the webhook is
    configured per repository rather than per branch, so just skip it
  * d/e/checkout-upstream: build with default-timeout-sec=180. Helps with
    slow daemon-reload on some CI runs. As requested by:
    https://github.com/systemd/systemd/pull/27182
  * d/e/checkout-upstream: enable log-trace by default. Its abscence
    appears to cause TEST-10-ISSUE-2467 to reliably fail. Enable it while
    we figure it out. Also probably it is helpful to have it always turned
    on for the CI, to get more info out of test runs. See:
    https://github.com/systemd/systemd/issues/19154
  * d/e/checkout-upstream: do not install userdbd sshd config drop-in.
    Breaks booting testbed in Jammy. Can be dropped after rebasing to
    Noble.
  * d/t/upstream: add dependencies on openssh, gnutls-bin, opensc and
    softhsm2. Required for https://github.com/systemd/systemd/pull/28658
    and https://github.com/systemd/systemd/pull/30777
  * d/t/upstream: fix shellcheck warning. SC2086 (info): Double quote to
    prevent globbing and word splitting.
  * Add dependency on libkmod2 on udev, and suggestion on systemd dlopen()
    dependency since https://github.com/systemd/systemd/pull/31131 but the
    system can't boot without it, so add it as a dependency on udev which
    is also needed outside of containers
  * Update tzdata build dependency constraint to 2024a-1
  * Drop libarchive-dev build dependency. Not useful for now, we'll re-add
    it after the next release
  * New upstream version 255.4
  * Drop patches merged upstream

  [ Daan De Meyer ]
  * Fix libtss2-mu dependency. This package recently changed name so let's
    update the Suggests to account for that.
  * Add Suggests for libtss2-tcti-device systemd wants to use this library
    when tpm2 support is enabled so let's make sure we list it in
    Suggests. (https://github.com/systemd/systemd/blob/db11bab38ccf1ed257f
    310d29070843d4c58ea01/meson.build#L1341)
  * Make sure awk only matches PROJECT|PACKAGE_VERSION
  * Use DEB_BUILD_MAINT_OPTIONS instead of meson options.
  * Don't put debian revision in version tag when building for upstream.
  * Allow users to configure DH_MISSING.

  [ Frantisek Sumsal ]
  * d/t/storage: ignore credential mounts when checking /proc/mounts.

  [ Daniel P. Berrangé ]
  * debian/rules: don't override default telinit-path. The 'telinit-path'
    meson option is to be used to point to a non-systemd telinit binary
    path. When systemctl is invoked as 'telinit', it will exec this binary
    when it detects the current environment is not running under systemd.
    If 'telinit-path' points back to 'systemctl', that would result in an
    infinite re-execve() loop. (Closes: #1063147)

[dgit import unpatched systemd 255.4-1]

21 months agoImport systemd_255.4.orig.tar.gz
Luca Boccassi [Tue, 27 Feb 2024 17:43:55 +0000 (17:43 +0000)]
Import systemd_255.4.orig.tar.gz

[dgit import orig systemd_255.4.orig.tar.gz]

21 months agoImport systemd_255.4-1.debian.tar.xz
Luca Boccassi [Tue, 27 Feb 2024 17:43:55 +0000 (17:43 +0000)]
Import systemd_255.4-1.debian.tar.xz

[dgit import tarball systemd 255.4-1 systemd_255.4-1.debian.tar.xz]

22 months agoMerge systemd (255.3-2) import into refs/heads/workingbranch
Luca Boccassi [Mon, 29 Jan 2024 10:46:19 +0000 (10:46 +0000)]
Merge systemd (255.3-2) import into refs/heads/workingbranch

22 months agotest: unset TZ before timezone-sensitive unit tests are run
Luca Boccassi [Fri, 26 Jan 2024 00:22:38 +0000 (00:22 +0000)]
test: unset TZ before timezone-sensitive unit tests are run

Some tests have hard-coded results that need to match, and change if
the caller has a timezone set via the TZ= environment variable, as it
is the case during reproducible build tests. Unset it.

Gbp-Pq: Name test-unset-TZ-before-timezone-sensitive-unit-tests-are-ru.patch

22 months agomeson: drop arch filtering in syscall list
Zbigniew Jędrzejewski-Szmek [Thu, 25 Jan 2024 12:26:21 +0000 (13:26 +0100)]
meson: drop arch filtering in syscall list

I added the filtering in 752fedbea7c02c82287c7ff2a4139f528b3f7ba8 as a way
to reduce the number of items in the tables. I thought it's "obvious", but
it might not be so.

One immediate problem is that the filter is broken, because on arm64,
os.uname().machine returns "aarch64", so we incorrectly filter out the arm
syscalls (there is just one: arm_fadvise64_64). Of course we could fix the
filter, but I think it's better to nuke it altogether. The filter on applies to
1 arm syscall and 5 s390 syscalls, and we have 500+ other syscalls, so this
"optimization" doesn't really matter. OTOH, if we get the filter wrong,
the result is bad. And also, the existence of the filter at all creates
problems for cross-builds.

I wanted to get rid of 'generate-syscall-list.py', but we need to generate a
backslash in the output. https://github.com/mesonbuild/meson/issues/1564 makes
this very very hard, since any attempt to put a backslash an inline argument
results in the backslash being replaces by a forward slash, which doesn't quite
have the same meaning. So let's use a standalone script until
https://github.com/mesonbuild/meson/issues/1564 is resolved.

Gbp-Pq: Name meson-drop-arch-filtering-in-syscall-list.patch

22 months agoSort input file list
Bernhard M. Wiedemann [Thu, 25 Jan 2024 04:48:35 +0000 (05:48 +0100)]
Sort input file list

so that /usr/lib/systemd/tests/unit-tests/test-libsystemd-sym
builds in a reproducible way
in spite of non-deterministic filesystem readdir order

See https://reproducible-builds.org/ for why this is good.

This patch was done while working on reproducible builds for openSUSE.

Gbp-Pq: Name Sort-input-file-list.patch

22 months agotest: tell delv to load anchors from /etc/bind.keys explicitly
Frantisek Sumsal [Thu, 14 Dec 2023 15:59:21 +0000 (16:59 +0100)]
test: tell delv to load anchors from /etc/bind.keys explicitly

Since [0] delv no longer does that automagically, so we have to that
explicitly with each delv invocation.

Resolves: #30477

[0] https://github.com/isc-projects/bind9/commit/c144fd2871206d209ccdb916f5959a3ceab1d44c

(cherry picked from commit 438c7cb20e83a3b88f6accc3e78d3da5e21f6db2)

Gbp-Pq: Name test-tell-delv-to-load-anchors-from-etc-bind.keys-explici.patch

22 months agotest: don't check for -Dinstall-tests=true with NO_BUILD=1
Frantisek Sumsal [Thu, 14 Dec 2023 14:06:46 +0000 (15:06 +0100)]
test: don't check for -Dinstall-tests=true with NO_BUILD=1

(cherry picked from commit 58bcbad86cc910e007fae3c66c3a5cfc17046801)

Gbp-Pq: Name test-don-t-check-for-Dinstall-tests-true-with-NO_BUILD-1.patch

22 months agotest: install empty directories with NO_BUILD=1
Frantisek Sumsal [Thu, 14 Dec 2023 14:06:12 +0000 (15:06 +0100)]
test: install empty directories with NO_BUILD=1

Resolves: #30478
(cherry picked from commit fdd380dde2ec2cbcecbd20b91cf6b819ef3dc0db)

Gbp-Pq: Name test-install-empty-directories-with-NO_BUILD-1.patch

22 months agotest: skip TEST-08-INITRD if systemd didn't run in the initrd
Frantisek Sumsal [Fri, 15 Dec 2023 10:04:39 +0000 (11:04 +0100)]
test: skip TEST-08-INITRD if systemd didn't run in the initrd

This test requires systemd in the initrd, which is not the case in
mkinitrd-based initrds (Ubuntu/Debian).

Resolves: #30481
(cherry picked from commit 57d61ff319ec217294d9e0c4646010322b8be5e5)

Gbp-Pq: Name test-skip-TEST-08-INITRD-if-systemd-didn-t-run-in-the-ini.patch

22 months agolocalectl-disable-keymap-support
Luca Boccassi [Wed, 8 Feb 2023 20:34:38 +0000 (20:34 +0000)]
localectl-disable-keymap-support

We no longer support old debianisms such as /etc/default/keyboard,
so disable the keymap interface in localectl until a definitive
solution is found.

Update the test suite to skip tests for unsupported localectl features.

Gbp-Pq: Topic debian
Gbp-Pq: Name localectl-disable-keymap-support.patch

22 months agoSkip flaky test_resolved_domain_restricted_dns in networkd-test.py
Michael Biebl [Mon, 12 Dec 2022 23:32:17 +0000 (00:32 +0100)]
Skip flaky test_resolved_domain_restricted_dns in networkd-test.py

This test is part of DnsmasqClientTest and does not work reliably under
LXC/debci, so skip it for the time being.

Closes: #1025908
Gbp-Pq: Topic debian
Gbp-Pq: Name Skip-flaky-test_resolved_domain_restricted_dns-in-network.patch

22 months agoDowngrade a couple of warnings to debug
Michael Biebl [Mon, 15 Feb 2021 23:18:50 +0000 (00:18 +0100)]
Downgrade a couple of warnings to debug

If a package still ships only a SysV init script or if a service file or
tmpfile uses /var/run, downgrade those messages to debug. We can use
lintian to detect those issues.
For service files and tmpfiles in /etc, keep the warning, as those files
are typically added locally and aren't checked by lintian.

Closes: #981407
Gbp-Pq: Topic debian
Gbp-Pq: Name Downgrade-a-couple-of-warnings-to-debug.patch

22 months agosystemctl: do not shutdown immediately on scheduled shutdown
Ioanna Alifieraki [Thu, 17 Dec 2020 14:52:07 +0000 (14:52 +0000)]
systemctl: do not shutdown immediately on scheduled shutdown

When, for whatever reason, a scheduled shutdown fails to be set, systemd
will proceed with immediate shutdown without allowing the user to react.
This is counterintuitive because when a scheduled shutdown is issued,
it means the user wants to shutdown at a specified time in the future,
not immediately. This patch prevents the immediate shutdown and informs
the user that no action will be taken.

Fixes: #17575
Gbp-Pq: Topic debian
Gbp-Pq: Name systemctl-do-not-shutdown-immediately-on-scheduled-shutdo.patch

22 months agoRevert "core: set RLIMIT_CORE to unlimited by default"
Martin Pitt [Sat, 27 Feb 2016 11:27:06 +0000 (12:27 +0100)]
Revert "core: set RLIMIT_CORE to unlimited by default"

Partially revert commit 15a900327ab as this completely breaks core dumps
without systemd-coredump. It's also contradicting core(8), and it's not
systemd's place to redefine the kernel definitions of core files.

Commit bdfd7b2c now honours the process' RLIMIT_CORE for systemd-coredump. This
isn't what RLIMIT_CORE is supposed to do (it limits the size of the core
*file*, but the kernel deliberately ignores it for piping), so set a static
2^63 core size limit for systemd-coredump to go back to the previous behaviour
(otherwise the change above would break systemd-coredump).

Bug-Debian: https://bugs.debian.org/815020

Gbp-Pq: Topic debian
Gbp-Pq: Name Revert-core-set-RLIMIT_CORE-to-unlimited-by-default.patch

22 months agoSkip filesystem check if already done by the initramfs
Nis Martensen [Tue, 19 Jan 2016 21:01:43 +0000 (22:01 +0100)]
Skip filesystem check if already done by the initramfs

Newer versions of initramfs-tools already fsck and mount / and /usr in
the initramfs. Skip the filesystem check in this case.

Based on a previous patch by Michael Biebl <biebl@debian.org>.

Closes: #782522
Closes: #810748
Gbp-Pq: Topic debian
Gbp-Pq: Name Skip-filesystem-check-if-already-done-by-the-initram.patch

22 months agofsckd daemon for inter-fsckd communication
Didier Roche [Fri, 22 May 2015 11:04:38 +0000 (13:04 +0200)]
fsckd daemon for inter-fsckd communication

Global logic:
Add systemd-fsckd multiplexer which accepts multiple (via systemd-fsck's
/run/systemd/fsck.progress socket) fsck instances to connect to it and sends
progress report. systemd-fsckd then computes and writes to /dev/console the
number of devices currently being checked and the minimum fsck progress.

Plymouth and user interaction:
Forward the progress to plymouth and support canellation of in progress fsck.
Try to connect and send to plymouth (if running) some checked report progress,
using direct plymouth protocole.

Update message is the following:
fsckd:<num_devices>:<progress>:<string>
* num_devices corresponds to the current number of devices being checked (int)
* progress corresponds to the current minimum percentage of all devices being
  checked (float, from 0 to 100)
* string is a translated message ready to be displayed by the plymouth theme
  displaying the information above. It can be overridden by plymouth themes
  supporting i18n.

Grab in fsckd plymouth watch key Control+C, and propagate this cancel request
to systemd-fsck which will terminate fsck.

Send a message to signal to user what key we are grabbing for fsck cancel.

Message is: fsckd-cancel-msg:<string>
Where string is a translated string ready to be displayed by the plymouth theme
indicating that Control+C can be used to cancel current checks. It can be
overridden (matching only fsckd-cancel-msg prefix) for themes supporting i18n.

Misc:
systemd-fsckd stops on idle when no fsck is connected.
Add man page explaining the plymouth theme protocol, usage of the daemon
as well as the socket activation part. Adapt existing fsck man page.

Note that fsckd had lived in the upstream tree for a while, but was removed.
More information at
http://lists.freedesktop.org/archives/systemd-devel/2015-April/030175.html
-

Gbp-Pq: Topic debian
Gbp-Pq: Name fsckd-daemon-for-inter-fsckd-communication.patch

22 months agoMake /run/lock tmpfs an API fs
Michael Biebl [Thu, 4 Sep 2014 23:15:16 +0000 (01:15 +0200)]
Make /run/lock tmpfs an API fs

The /run/lock directory is world-writable in Debian due to historic
reasons. To avoid user processes filling up /run, we mount a separate
tmpfs for /run/lock. As this directory needs to be available during
early boot, we make it an API fs.

Drop it from tmpfiles.d/legacy.conf to not clobber the permissions.

Closes: #751392
Gbp-Pq: Topic debian
Gbp-Pq: Name Make-run-lock-tmpfs-an-API-fs.patch

22 months agoBring tmpfiles.d/tmp.conf in line with Debian defaults
Tollef Fog Heen [Tue, 5 Jun 2012 18:59:36 +0000 (20:59 +0200)]
Bring tmpfiles.d/tmp.conf in line with Debian defaults

Closes: #675422
Gbp-Pq: Topic debian
Gbp-Pq: Name Bring-tmpfiles.d-tmp.conf-in-line-with-Debian-defaul.patch

22 months agosystemd (255.3-2) sid; urgency=medium
Luca Boccassi [Mon, 29 Jan 2024 10:46:19 +0000 (10:46 +0000)]
systemd (255.3-2) sid; urgency=medium

  * Backport patches to fix reproducibility issues
  * Salsa: re-enable reprotest

[dgit import unpatched systemd 255.3-2]

22 months agoImport systemd_255.3-2.debian.tar.xz
Luca Boccassi [Mon, 29 Jan 2024 10:46:19 +0000 (10:46 +0000)]
Import systemd_255.3-2.debian.tar.xz

[dgit import tarball systemd 255.3-2 systemd_255.3-2.debian.tar.xz]

22 months agoMerge systemd (255.3-1) import into refs/heads/workingbranch
Luca Boccassi [Wed, 24 Jan 2024 20:03:15 +0000 (20:03 +0000)]
Merge systemd (255.3-1) import into refs/heads/workingbranch

22 months agoImport systemd_255.3.orig.tar.gz
Luca Boccassi [Wed, 24 Jan 2024 20:03:15 +0000 (20:03 +0000)]
Import systemd_255.3.orig.tar.gz

[dgit import orig systemd_255.3.orig.tar.gz]

22 months agotest: tell delv to load anchors from /etc/bind.keys explicitly
Frantisek Sumsal [Thu, 14 Dec 2023 15:59:21 +0000 (16:59 +0100)]
test: tell delv to load anchors from /etc/bind.keys explicitly

Since [0] delv no longer does that automagically, so we have to that
explicitly with each delv invocation.

Resolves: #30477

[0] https://github.com/isc-projects/bind9/commit/c144fd2871206d209ccdb916f5959a3ceab1d44c

(cherry picked from commit 438c7cb20e83a3b88f6accc3e78d3da5e21f6db2)

Gbp-Pq: Name test-tell-delv-to-load-anchors-from-etc-bind.keys-explici.patch

22 months agotest: don't check for -Dinstall-tests=true with NO_BUILD=1
Frantisek Sumsal [Thu, 14 Dec 2023 14:06:46 +0000 (15:06 +0100)]
test: don't check for -Dinstall-tests=true with NO_BUILD=1

(cherry picked from commit 58bcbad86cc910e007fae3c66c3a5cfc17046801)

Gbp-Pq: Name test-don-t-check-for-Dinstall-tests-true-with-NO_BUILD-1.patch

22 months agotest: install empty directories with NO_BUILD=1
Frantisek Sumsal [Thu, 14 Dec 2023 14:06:12 +0000 (15:06 +0100)]
test: install empty directories with NO_BUILD=1

Resolves: #30478
(cherry picked from commit fdd380dde2ec2cbcecbd20b91cf6b819ef3dc0db)

Gbp-Pq: Name test-install-empty-directories-with-NO_BUILD-1.patch

22 months agotest: skip TEST-08-INITRD if systemd didn't run in the initrd
Frantisek Sumsal [Fri, 15 Dec 2023 10:04:39 +0000 (11:04 +0100)]
test: skip TEST-08-INITRD if systemd didn't run in the initrd

This test requires systemd in the initrd, which is not the case in
mkinitrd-based initrds (Ubuntu/Debian).

Resolves: #30481
(cherry picked from commit 57d61ff319ec217294d9e0c4646010322b8be5e5)

Gbp-Pq: Name test-skip-TEST-08-INITRD-if-systemd-didn-t-run-in-the-ini.patch

22 months agolocalectl-disable-keymap-support
Luca Boccassi [Wed, 8 Feb 2023 20:34:38 +0000 (20:34 +0000)]
localectl-disable-keymap-support

We no longer support old debianisms such as /etc/default/keyboard,
so disable the keymap interface in localectl until a definitive
solution is found.

Update the test suite to skip tests for unsupported localectl features.

Gbp-Pq: Topic debian
Gbp-Pq: Name localectl-disable-keymap-support.patch

22 months agoSkip flaky test_resolved_domain_restricted_dns in networkd-test.py
Michael Biebl [Mon, 12 Dec 2022 23:32:17 +0000 (00:32 +0100)]
Skip flaky test_resolved_domain_restricted_dns in networkd-test.py

This test is part of DnsmasqClientTest and does not work reliably under
LXC/debci, so skip it for the time being.

Closes: #1025908
Gbp-Pq: Topic debian
Gbp-Pq: Name Skip-flaky-test_resolved_domain_restricted_dns-in-network.patch

22 months agoDowngrade a couple of warnings to debug
Michael Biebl [Mon, 15 Feb 2021 23:18:50 +0000 (00:18 +0100)]
Downgrade a couple of warnings to debug

If a package still ships only a SysV init script or if a service file or
tmpfile uses /var/run, downgrade those messages to debug. We can use
lintian to detect those issues.
For service files and tmpfiles in /etc, keep the warning, as those files
are typically added locally and aren't checked by lintian.

Closes: #981407
Gbp-Pq: Topic debian
Gbp-Pq: Name Downgrade-a-couple-of-warnings-to-debug.patch

22 months agosystemctl: do not shutdown immediately on scheduled shutdown
Ioanna Alifieraki [Thu, 17 Dec 2020 14:52:07 +0000 (14:52 +0000)]
systemctl: do not shutdown immediately on scheduled shutdown

When, for whatever reason, a scheduled shutdown fails to be set, systemd
will proceed with immediate shutdown without allowing the user to react.
This is counterintuitive because when a scheduled shutdown is issued,
it means the user wants to shutdown at a specified time in the future,
not immediately. This patch prevents the immediate shutdown and informs
the user that no action will be taken.

Fixes: #17575
Gbp-Pq: Topic debian
Gbp-Pq: Name systemctl-do-not-shutdown-immediately-on-scheduled-shutdo.patch

22 months agoRevert "core: set RLIMIT_CORE to unlimited by default"
Martin Pitt [Sat, 27 Feb 2016 11:27:06 +0000 (12:27 +0100)]
Revert "core: set RLIMIT_CORE to unlimited by default"

Partially revert commit 15a900327ab as this completely breaks core dumps
without systemd-coredump. It's also contradicting core(8), and it's not
systemd's place to redefine the kernel definitions of core files.

Commit bdfd7b2c now honours the process' RLIMIT_CORE for systemd-coredump. This
isn't what RLIMIT_CORE is supposed to do (it limits the size of the core
*file*, but the kernel deliberately ignores it for piping), so set a static
2^63 core size limit for systemd-coredump to go back to the previous behaviour
(otherwise the change above would break systemd-coredump).

Bug-Debian: https://bugs.debian.org/815020

Gbp-Pq: Topic debian
Gbp-Pq: Name Revert-core-set-RLIMIT_CORE-to-unlimited-by-default.patch

22 months agoSkip filesystem check if already done by the initramfs
Nis Martensen [Tue, 19 Jan 2016 21:01:43 +0000 (22:01 +0100)]
Skip filesystem check if already done by the initramfs

Newer versions of initramfs-tools already fsck and mount / and /usr in
the initramfs. Skip the filesystem check in this case.

Based on a previous patch by Michael Biebl <biebl@debian.org>.

Closes: #782522
Closes: #810748
Gbp-Pq: Topic debian
Gbp-Pq: Name Skip-filesystem-check-if-already-done-by-the-initram.patch

22 months agofsckd daemon for inter-fsckd communication
Didier Roche [Fri, 22 May 2015 11:04:38 +0000 (13:04 +0200)]
fsckd daemon for inter-fsckd communication

Global logic:
Add systemd-fsckd multiplexer which accepts multiple (via systemd-fsck's
/run/systemd/fsck.progress socket) fsck instances to connect to it and sends
progress report. systemd-fsckd then computes and writes to /dev/console the
number of devices currently being checked and the minimum fsck progress.

Plymouth and user interaction:
Forward the progress to plymouth and support canellation of in progress fsck.
Try to connect and send to plymouth (if running) some checked report progress,
using direct plymouth protocole.

Update message is the following:
fsckd:<num_devices>:<progress>:<string>
* num_devices corresponds to the current number of devices being checked (int)
* progress corresponds to the current minimum percentage of all devices being
  checked (float, from 0 to 100)
* string is a translated message ready to be displayed by the plymouth theme
  displaying the information above. It can be overridden by plymouth themes
  supporting i18n.

Grab in fsckd plymouth watch key Control+C, and propagate this cancel request
to systemd-fsck which will terminate fsck.

Send a message to signal to user what key we are grabbing for fsck cancel.

Message is: fsckd-cancel-msg:<string>
Where string is a translated string ready to be displayed by the plymouth theme
indicating that Control+C can be used to cancel current checks. It can be
overridden (matching only fsckd-cancel-msg prefix) for themes supporting i18n.

Misc:
systemd-fsckd stops on idle when no fsck is connected.
Add man page explaining the plymouth theme protocol, usage of the daemon
as well as the socket activation part. Adapt existing fsck man page.

Note that fsckd had lived in the upstream tree for a while, but was removed.
More information at
http://lists.freedesktop.org/archives/systemd-devel/2015-April/030175.html
-

Gbp-Pq: Topic debian
Gbp-Pq: Name fsckd-daemon-for-inter-fsckd-communication.patch

22 months agoMake /run/lock tmpfs an API fs
Michael Biebl [Thu, 4 Sep 2014 23:15:16 +0000 (01:15 +0200)]
Make /run/lock tmpfs an API fs

The /run/lock directory is world-writable in Debian due to historic
reasons. To avoid user processes filling up /run, we mount a separate
tmpfs for /run/lock. As this directory needs to be available during
early boot, we make it an API fs.

Drop it from tmpfiles.d/legacy.conf to not clobber the permissions.

Closes: #751392
Gbp-Pq: Topic debian
Gbp-Pq: Name Make-run-lock-tmpfs-an-API-fs.patch

22 months agoBring tmpfiles.d/tmp.conf in line with Debian defaults
Tollef Fog Heen [Tue, 5 Jun 2012 18:59:36 +0000 (20:59 +0200)]
Bring tmpfiles.d/tmp.conf in line with Debian defaults

Closes: #675422
Gbp-Pq: Topic debian
Gbp-Pq: Name Bring-tmpfiles.d-tmp.conf-in-line-with-Debian-defaul.patch

22 months agosystemd (255.3-1) sid; urgency=medium
Luca Boccassi [Wed, 24 Jan 2024 20:03:15 +0000 (20:03 +0000)]
systemd (255.3-1) sid; urgency=medium

  * New upstream version 255.3
  * Drop patches merged upstream
  * Refresh patches

[dgit import unpatched systemd 255.3-1]

22 months agoImport systemd_255.3-1.debian.tar.xz
Luca Boccassi [Wed, 24 Jan 2024 20:03:15 +0000 (20:03 +0000)]
Import systemd_255.3-1.debian.tar.xz

[dgit import tarball systemd 255.3-1 systemd_255.3-1.debian.tar.xz]

23 months agoMerge systemd (255.2-4) import into refs/heads/workingbranch
Michael Biebl [Sat, 6 Jan 2024 15:21:03 +0000 (16:21 +0100)]
Merge systemd (255.2-4) import into refs/heads/workingbranch

23 months agotest: install correct kpartx udev rules on Debian
Frantisek Sumsal [Wed, 3 Jan 2024 16:24:03 +0000 (17:24 +0100)]
test: install correct kpartx udev rules on Debian

Resolves: #30703
(cherry picked from commit 519f0074cf87391b17a82ea983daed6183d62fb6)

Gbp-Pq: Name test-install-correct-kpartx-udev-rules-on-Debian.patch

23 months agotest: flush the socket once the triggered unit exits
Frantisek Sumsal [Sun, 24 Dec 2023 11:53:53 +0000 (12:53 +0100)]
test: flush the socket once the triggered unit exits

Since the triggered unit intentionally fails without consuming any data
from the socket, we'd try to trigger it again and again, and we might
try to check the unit state in one of the "in-between" states, failing
the test:

[  165.271698] H testsuite-07.sh[1032]: + systemctl start badbin_assert.socket
[  165.977637] H testsuite-07.sh[1032]: + socat - ABSTRACT-CONNECT:badbin_assert.socket
[  165.983787] H systemd[1]: Cannot find unit for notify message of PID 1039, ignoring.
[  166.817187] H testsuite-07.sh[1032]: + timeout 10 sh -c 'while systemctl is-active badbin_assert.service; do sleep .5; done'
[  167.049218] H testsuite-07.sh[1065]: active
[  167.146854] H systemd[1]: Listening on badbin_assert.socket.
[  167.163473] H systemd[1]: badbin_assert.socket: Incoming traffic
[  167.542626] H systemd[1]: Cannot find unit for notify message of PID 1065, ignoring.
[  167.543437] H (badbin)[1062]: badbin_assert.service: Failed to execute /tmp/badbin: Exec format error
[  167.548346] H systemd[1]: badbin_assert.service: Main process exited, code=exited, status=203/EXEC
[  167.549482] H systemd[1]: badbin_assert.service: Failed with result 'exit-code'.
[  167.561537] H systemd[1]: badbin_assert.socket: Incoming traffic
[  167.933390] H systemd[1]: Started badbin_assert.service.
[  167.950489] H (badbin)[1070]: badbin_assert.service: Failed to execute /tmp/badbin: Exec format error
[  167.956318] H systemd[1]: badbin_assert.service: Main process exited, code=exited, status=203/EXEC
[  167.957173] H systemd[1]: badbin_assert.service: Failed with result 'exit-code'.
[  167.974609] H systemd[1]: badbin_assert.socket: Incoming traffic
[  168.042838] H testsuite-07.sh[1072]: failed
[  168.094431] H testsuite-07.sh[1075]: ++ systemctl show -P ExecMainStatus badbin_assert.service
[  168.704022] H systemd[1]: Started badbin_assert.service.
[  168.778680] H (badbin)[1074]: badbin_assert.service: Failed to execute /tmp/badbin: Exec format error
[  168.826881] H systemd[1]: badbin_assert.service: Main process exited, code=exited, status=203/EXEC
[  168.833825] H systemd[1]: badbin_assert.service: Failed with result 'exit-code'.
[  168.923931] H testsuite-07.sh[1032]: + [[ 0 == 203 ]]
[  168.951492] H systemd[1]: Cannot find unit for notify message of PID 1075, ignoring.
[  168.999862] H testsuite-07.sh[615]: + echo 'Subtest /usr/lib/systemd/tests/testdata/units/testsuite-07.issue-30412.sh failed'
[  168.999862] H testsuite-07.sh[615]: Subtest /usr/lib/systemd/tests/testdata/units/testsuite-07.issue-30412.sh failed

Follow-up for 1eeaa93de36 and 28a2d27650c.

(cherry picked from commit 4ddf27c57bbaaa66bed5cfa951e60a83b9f64e29)

Gbp-Pq: Name test-flush-the-socket-once-the-triggered-unit-exits.patch

23 months agotest: tell delv to load anchors from /etc/bind.keys explicitly
Frantisek Sumsal [Thu, 14 Dec 2023 15:59:21 +0000 (16:59 +0100)]
test: tell delv to load anchors from /etc/bind.keys explicitly

Since [0] delv no longer does that automagically, so we have to that
explicitly with each delv invocation.

Resolves: #30477

[0] https://github.com/isc-projects/bind9/commit/c144fd2871206d209ccdb916f5959a3ceab1d44c

(cherry picked from commit 438c7cb20e83a3b88f6accc3e78d3da5e21f6db2)

Gbp-Pq: Name test-tell-delv-to-load-anchors-from-etc-bind.keys-explici.patch

23 months agotest: don't check for -Dinstall-tests=true with NO_BUILD=1
Frantisek Sumsal [Thu, 14 Dec 2023 14:06:46 +0000 (15:06 +0100)]
test: don't check for -Dinstall-tests=true with NO_BUILD=1

(cherry picked from commit 58bcbad86cc910e007fae3c66c3a5cfc17046801)

Gbp-Pq: Name test-don-t-check-for-Dinstall-tests-true-with-NO_BUILD-1.patch

23 months agotest: install empty directories with NO_BUILD=1
Frantisek Sumsal [Thu, 14 Dec 2023 14:06:12 +0000 (15:06 +0100)]
test: install empty directories with NO_BUILD=1

Resolves: #30478
(cherry picked from commit fdd380dde2ec2cbcecbd20b91cf6b819ef3dc0db)

Gbp-Pq: Name test-install-empty-directories-with-NO_BUILD-1.patch

23 months agotest: skip TEST-08-INITRD if systemd didn't run in the initrd
Frantisek Sumsal [Fri, 15 Dec 2023 10:04:39 +0000 (11:04 +0100)]
test: skip TEST-08-INITRD if systemd didn't run in the initrd

This test requires systemd in the initrd, which is not the case in
mkinitrd-based initrds (Ubuntu/Debian).

Resolves: #30481
(cherry picked from commit 57d61ff319ec217294d9e0c4646010322b8be5e5)

Gbp-Pq: Name test-skip-TEST-08-INITRD-if-systemd-didn-t-run-in-the-ini.patch

23 months agolocalectl-disable-keymap-support
Luca Boccassi [Wed, 8 Feb 2023 20:34:38 +0000 (20:34 +0000)]
localectl-disable-keymap-support

We no longer support old debianisms such as /etc/default/keyboard,
so disable the keymap interface in localectl until a definitive
solution is found.

Update the test suite to skip tests for unsupported localectl features.

Gbp-Pq: Topic debian
Gbp-Pq: Name localectl-disable-keymap-support.patch

23 months agoSkip flaky test_resolved_domain_restricted_dns in networkd-test.py
Michael Biebl [Mon, 12 Dec 2022 23:32:17 +0000 (00:32 +0100)]
Skip flaky test_resolved_domain_restricted_dns in networkd-test.py

This test is part of DnsmasqClientTest and does not work reliably under
LXC/debci, so skip it for the time being.

Closes: #1025908
Gbp-Pq: Topic debian
Gbp-Pq: Name Skip-flaky-test_resolved_domain_restricted_dns-in-network.patch

23 months agoDowngrade a couple of warnings to debug
Michael Biebl [Mon, 15 Feb 2021 23:18:50 +0000 (00:18 +0100)]
Downgrade a couple of warnings to debug

If a package still ships only a SysV init script or if a service file or
tmpfile uses /var/run, downgrade those messages to debug. We can use
lintian to detect those issues.
For service files and tmpfiles in /etc, keep the warning, as those files
are typically added locally and aren't checked by lintian.

Closes: #981407
Gbp-Pq: Topic debian
Gbp-Pq: Name Downgrade-a-couple-of-warnings-to-debug.patch

23 months agosystemctl: do not shutdown immediately on scheduled shutdown
Ioanna Alifieraki [Thu, 17 Dec 2020 14:52:07 +0000 (14:52 +0000)]
systemctl: do not shutdown immediately on scheduled shutdown

When, for whatever reason, a scheduled shutdown fails to be set, systemd
will proceed with immediate shutdown without allowing the user to react.
This is counterintuitive because when a scheduled shutdown is issued,
it means the user wants to shutdown at a specified time in the future,
not immediately. This patch prevents the immediate shutdown and informs
the user that no action will be taken.

Fixes: #17575
Gbp-Pq: Topic debian
Gbp-Pq: Name systemctl-do-not-shutdown-immediately-on-scheduled-shutdo.patch

23 months agoRevert "core: set RLIMIT_CORE to unlimited by default"
Martin Pitt [Sat, 27 Feb 2016 11:27:06 +0000 (12:27 +0100)]
Revert "core: set RLIMIT_CORE to unlimited by default"

Partially revert commit 15a900327ab as this completely breaks core dumps
without systemd-coredump. It's also contradicting core(8), and it's not
systemd's place to redefine the kernel definitions of core files.

Commit bdfd7b2c now honours the process' RLIMIT_CORE for systemd-coredump. This
isn't what RLIMIT_CORE is supposed to do (it limits the size of the core
*file*, but the kernel deliberately ignores it for piping), so set a static
2^63 core size limit for systemd-coredump to go back to the previous behaviour
(otherwise the change above would break systemd-coredump).

Bug-Debian: https://bugs.debian.org/815020

Gbp-Pq: Topic debian
Gbp-Pq: Name Revert-core-set-RLIMIT_CORE-to-unlimited-by-default.patch

23 months agoSkip filesystem check if already done by the initramfs
Nis Martensen [Tue, 19 Jan 2016 21:01:43 +0000 (22:01 +0100)]
Skip filesystem check if already done by the initramfs

Newer versions of initramfs-tools already fsck and mount / and /usr in
the initramfs. Skip the filesystem check in this case.

Based on a previous patch by Michael Biebl <biebl@debian.org>.

Closes: #782522
Closes: #810748
Gbp-Pq: Topic debian
Gbp-Pq: Name Skip-filesystem-check-if-already-done-by-the-initram.patch

23 months agofsckd daemon for inter-fsckd communication
Didier Roche [Fri, 22 May 2015 11:04:38 +0000 (13:04 +0200)]
fsckd daemon for inter-fsckd communication

Global logic:
Add systemd-fsckd multiplexer which accepts multiple (via systemd-fsck's
/run/systemd/fsck.progress socket) fsck instances to connect to it and sends
progress report. systemd-fsckd then computes and writes to /dev/console the
number of devices currently being checked and the minimum fsck progress.

Plymouth and user interaction:
Forward the progress to plymouth and support canellation of in progress fsck.
Try to connect and send to plymouth (if running) some checked report progress,
using direct plymouth protocole.

Update message is the following:
fsckd:<num_devices>:<progress>:<string>
* num_devices corresponds to the current number of devices being checked (int)
* progress corresponds to the current minimum percentage of all devices being
  checked (float, from 0 to 100)
* string is a translated message ready to be displayed by the plymouth theme
  displaying the information above. It can be overridden by plymouth themes
  supporting i18n.

Grab in fsckd plymouth watch key Control+C, and propagate this cancel request
to systemd-fsck which will terminate fsck.

Send a message to signal to user what key we are grabbing for fsck cancel.

Message is: fsckd-cancel-msg:<string>
Where string is a translated string ready to be displayed by the plymouth theme
indicating that Control+C can be used to cancel current checks. It can be
overridden (matching only fsckd-cancel-msg prefix) for themes supporting i18n.

Misc:
systemd-fsckd stops on idle when no fsck is connected.
Add man page explaining the plymouth theme protocol, usage of the daemon
as well as the socket activation part. Adapt existing fsck man page.

Note that fsckd had lived in the upstream tree for a while, but was removed.
More information at
http://lists.freedesktop.org/archives/systemd-devel/2015-April/030175.html
-

Gbp-Pq: Topic debian
Gbp-Pq: Name fsckd-daemon-for-inter-fsckd-communication.patch

23 months agoMake /run/lock tmpfs an API fs
Michael Biebl [Thu, 4 Sep 2014 23:15:16 +0000 (01:15 +0200)]
Make /run/lock tmpfs an API fs

The /run/lock directory is world-writable in Debian due to historic
reasons. To avoid user processes filling up /run, we mount a separate
tmpfs for /run/lock. As this directory needs to be available during
early boot, we make it an API fs.

Drop it from tmpfiles.d/legacy.conf to not clobber the permissions.

Closes: #751392
Gbp-Pq: Topic debian
Gbp-Pq: Name Make-run-lock-tmpfs-an-API-fs.patch

23 months agoBring tmpfiles.d/tmp.conf in line with Debian defaults
Tollef Fog Heen [Tue, 5 Jun 2012 18:59:36 +0000 (20:59 +0200)]
Bring tmpfiles.d/tmp.conf in line with Debian defaults

Closes: #675422
Gbp-Pq: Topic debian
Gbp-Pq: Name Bring-tmpfiles.d-tmp.conf-in-line-with-Debian-defaul.patch

23 months agosystemd (255.2-4) sid; urgency=medium
Michael Biebl [Sat, 6 Jan 2024 15:21:03 +0000 (16:21 +0100)]
systemd (255.2-4) sid; urgency=medium

  * autopkgtest: add btrfs-progs Depends to upstream suite.
    Required by TEST-83-BTRFS and testcase_btrfs_basic from
    TEST-64-UDEV-STORAGE.
  * Revert "test: deny-list TEST-13-NSPAWN"
    This reverts commit df8e5367aca20e0c75c9c91f826d22d8a0f7e36d.
  * autopkgtest: add multipath-tools and kpartx Depends to upstream suite.
    Required by testcase_multipath_basic_failover from TEST-64-UDEV-STORAGE.
  * test: install correct kpartx udev rules on Debian

[dgit import unpatched systemd 255.2-4]

23 months agoImport systemd_255.2-4.debian.tar.xz
Michael Biebl [Sat, 6 Jan 2024 15:21:03 +0000 (16:21 +0100)]
Import systemd_255.2-4.debian.tar.xz

[dgit import tarball systemd 255.2-4 systemd_255.2-4.debian.tar.xz]

23 months agoMerge systemd (255.2-3) import into refs/heads/workingbranch
Michael Biebl [Tue, 2 Jan 2024 10:44:49 +0000 (11:44 +0100)]
Merge systemd (255.2-3) import into refs/heads/workingbranch

23 months agotest: flush the socket once the triggered unit exits
Frantisek Sumsal [Sun, 24 Dec 2023 11:53:53 +0000 (12:53 +0100)]
test: flush the socket once the triggered unit exits

Since the triggered unit intentionally fails without consuming any data
from the socket, we'd try to trigger it again and again, and we might
try to check the unit state in one of the "in-between" states, failing
the test:

[  165.271698] H testsuite-07.sh[1032]: + systemctl start badbin_assert.socket
[  165.977637] H testsuite-07.sh[1032]: + socat - ABSTRACT-CONNECT:badbin_assert.socket
[  165.983787] H systemd[1]: Cannot find unit for notify message of PID 1039, ignoring.
[  166.817187] H testsuite-07.sh[1032]: + timeout 10 sh -c 'while systemctl is-active badbin_assert.service; do sleep .5; done'
[  167.049218] H testsuite-07.sh[1065]: active
[  167.146854] H systemd[1]: Listening on badbin_assert.socket.
[  167.163473] H systemd[1]: badbin_assert.socket: Incoming traffic
[  167.542626] H systemd[1]: Cannot find unit for notify message of PID 1065, ignoring.
[  167.543437] H (badbin)[1062]: badbin_assert.service: Failed to execute /tmp/badbin: Exec format error
[  167.548346] H systemd[1]: badbin_assert.service: Main process exited, code=exited, status=203/EXEC
[  167.549482] H systemd[1]: badbin_assert.service: Failed with result 'exit-code'.
[  167.561537] H systemd[1]: badbin_assert.socket: Incoming traffic
[  167.933390] H systemd[1]: Started badbin_assert.service.
[  167.950489] H (badbin)[1070]: badbin_assert.service: Failed to execute /tmp/badbin: Exec format error
[  167.956318] H systemd[1]: badbin_assert.service: Main process exited, code=exited, status=203/EXEC
[  167.957173] H systemd[1]: badbin_assert.service: Failed with result 'exit-code'.
[  167.974609] H systemd[1]: badbin_assert.socket: Incoming traffic
[  168.042838] H testsuite-07.sh[1072]: failed
[  168.094431] H testsuite-07.sh[1075]: ++ systemctl show -P ExecMainStatus badbin_assert.service
[  168.704022] H systemd[1]: Started badbin_assert.service.
[  168.778680] H (badbin)[1074]: badbin_assert.service: Failed to execute /tmp/badbin: Exec format error
[  168.826881] H systemd[1]: badbin_assert.service: Main process exited, code=exited, status=203/EXEC
[  168.833825] H systemd[1]: badbin_assert.service: Failed with result 'exit-code'.
[  168.923931] H testsuite-07.sh[1032]: + [[ 0 == 203 ]]
[  168.951492] H systemd[1]: Cannot find unit for notify message of PID 1075, ignoring.
[  168.999862] H testsuite-07.sh[615]: + echo 'Subtest /usr/lib/systemd/tests/testdata/units/testsuite-07.issue-30412.sh failed'
[  168.999862] H testsuite-07.sh[615]: Subtest /usr/lib/systemd/tests/testdata/units/testsuite-07.issue-30412.sh failed

Follow-up for 1eeaa93de36 and 28a2d27650c.

(cherry picked from commit 4ddf27c57bbaaa66bed5cfa951e60a83b9f64e29)

Gbp-Pq: Name test-flush-the-socket-once-the-triggered-unit-exits.patch

23 months agotest: tell delv to load anchors from /etc/bind.keys explicitly
Frantisek Sumsal [Thu, 14 Dec 2023 15:59:21 +0000 (16:59 +0100)]
test: tell delv to load anchors from /etc/bind.keys explicitly

Since [0] delv no longer does that automagically, so we have to that
explicitly with each delv invocation.

Resolves: #30477

[0] https://github.com/isc-projects/bind9/commit/c144fd2871206d209ccdb916f5959a3ceab1d44c

(cherry picked from commit 438c7cb20e83a3b88f6accc3e78d3da5e21f6db2)

Gbp-Pq: Name test-tell-delv-to-load-anchors-from-etc-bind.keys-explici.patch

23 months agotest: don't check for -Dinstall-tests=true with NO_BUILD=1
Frantisek Sumsal [Thu, 14 Dec 2023 14:06:46 +0000 (15:06 +0100)]
test: don't check for -Dinstall-tests=true with NO_BUILD=1

(cherry picked from commit 58bcbad86cc910e007fae3c66c3a5cfc17046801)

Gbp-Pq: Name test-don-t-check-for-Dinstall-tests-true-with-NO_BUILD-1.patch

23 months agotest: install empty directories with NO_BUILD=1
Frantisek Sumsal [Thu, 14 Dec 2023 14:06:12 +0000 (15:06 +0100)]
test: install empty directories with NO_BUILD=1

Resolves: #30478
(cherry picked from commit fdd380dde2ec2cbcecbd20b91cf6b819ef3dc0db)

Gbp-Pq: Name test-install-empty-directories-with-NO_BUILD-1.patch

23 months agotest: skip TEST-08-INITRD if systemd didn't run in the initrd
Frantisek Sumsal [Fri, 15 Dec 2023 10:04:39 +0000 (11:04 +0100)]
test: skip TEST-08-INITRD if systemd didn't run in the initrd

This test requires systemd in the initrd, which is not the case in
mkinitrd-based initrds (Ubuntu/Debian).

Resolves: #30481
(cherry picked from commit 57d61ff319ec217294d9e0c4646010322b8be5e5)

Gbp-Pq: Name test-skip-TEST-08-INITRD-if-systemd-didn-t-run-in-the-ini.patch

23 months agotest: deny-list TEST-13-NSPAWN
Michael Biebl [Tue, 2 Jan 2024 10:09:56 +0000 (11:09 +0100)]
test: deny-list TEST-13-NSPAWN

The default ram size of 1024M for qemu virt is not sufficient
to make the test pass reliably on Debian sid/trixie.
Disable the test for now until this has been addressed in debci:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1059840

Gbp-Pq: Topic debian
Gbp-Pq: Name test-deny-list-TEST-13-NSPAWN.patch

23 months agolocalectl-disable-keymap-support
Luca Boccassi [Wed, 8 Feb 2023 20:34:38 +0000 (20:34 +0000)]
localectl-disable-keymap-support

We no longer support old debianisms such as /etc/default/keyboard,
so disable the keymap interface in localectl until a definitive
solution is found.

Update the test suite to skip tests for unsupported localectl features.

Gbp-Pq: Topic debian
Gbp-Pq: Name localectl-disable-keymap-support.patch

23 months agoSkip flaky test_resolved_domain_restricted_dns in networkd-test.py
Michael Biebl [Mon, 12 Dec 2022 23:32:17 +0000 (00:32 +0100)]
Skip flaky test_resolved_domain_restricted_dns in networkd-test.py

This test is part of DnsmasqClientTest and does not work reliably under
LXC/debci, so skip it for the time being.

Closes: #1025908
Gbp-Pq: Topic debian
Gbp-Pq: Name Skip-flaky-test_resolved_domain_restricted_dns-in-network.patch