Merge ~enr0n/ubuntu/+source/systemd:ubuntu-jammy into ~ubuntu-core-dev/ubuntu/+source/systemd:ubuntu-jammy

Proposed by Nick Rosbrook
Status: Merged
Merged at revision: 231aae0993d7533796dfa07d2e64bdd3936282a3
Proposed branch: ~enr0n/ubuntu/+source/systemd:ubuntu-jammy
Merge into: ~ubuntu-core-dev/ubuntu/+source/systemd:ubuntu-jammy
Diff against target: 105 lines (+72/-1)
4 files modified
debian/changelog (+6/-1)
debian/patches/lp1979952-Revert-core-mount-fail-early-if-directory-cannot-be-creat.patch (+33/-0)
debian/patches/lp1979952-core-mount-downgrade-log-level-about-several-mkdir-failur.patch (+31/-0)
debian/patches/series (+2/-0)
Reviewer Review Type Date Requested Status
Lukas Märdian Approve
Review via email: mp+428423@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Nick Rosbrook (enr0n) wrote :

I will link PPA autopkgtest results when able.

Revision history for this message
Lukas Märdian (slyon) wrote :

+1, matches the upstream fixes and PPA build is green (https://launchpad.net/~enr0n/+archive/ubuntu/systemd-249/+packages).

We can merge this after a passing PPA autopkgtest log is provided.

review: Approve
Revision history for this message
Lukas Märdian (slyon) wrote :

Ah, one more note: We still need to prepare the SRU template in LP: #1979952, we should do this before merging, too.

Revision history for this message
Nick Rosbrook (enr0n) wrote :
Revision history for this message
Lukas Märdian (slyon) wrote :

Thanks, merged!

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
diff --git a/debian/changelog b/debian/changelog
index 2892adb..da2d281 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -16,8 +16,13 @@ systemd (249.11-0ubuntu3.5) UNRELEASED; urgency=medium
16 * pstore: do not try to load mtdpstore (LP: #1981622)16 * pstore: do not try to load mtdpstore (LP: #1981622)
17 File: debian/patches/lp1978079-efi-pstore-not-cleared-on-boot.patch17 File: debian/patches/lp1978079-efi-pstore-not-cleared-on-boot.patch
18 https://git.launchpad.net/~ubuntu-core-dev/ubuntu/+source/systemd/commit/?id=15225032c3657f5906ee49d48929f9295a8664a018 https://git.launchpad.net/~ubuntu-core-dev/ubuntu/+source/systemd/commit/?id=15225032c3657f5906ee49d48929f9295a8664a0
19 * core/mount: downgrade log level about several mkdir failures (LP: #1979952)
20 Files:
21 - debian/patches/lp1979952-Revert-core-mount-fail-early-if-directory-cannot-be-creat.patch
22 - debian/patches/lp1979952-core-mount-downgrade-log-level-about-several-mkdir-failur.patch
23 https://git.launchpad.net/~ubuntu-core-dev/ubuntu/+source/systemd/commit/?id=ee8cfcf500698fab2e990de291ecf4c3ab87a4ae
1924
20 -- Nick Rosbrook <nick.rosbrook@canonical.com> Fri, 22 Jul 2022 15:27:16 -040025 -- Nick Rosbrook <nick.rosbrook@canonical.com> Tue, 16 Aug 2022 17:45:46 -0400
2126
22systemd (249.11-0ubuntu3.4) jammy; urgency=medium27systemd (249.11-0ubuntu3.4) jammy; urgency=medium
2328
diff --git a/debian/patches/lp1979952-Revert-core-mount-fail-early-if-directory-cannot-be-creat.patch b/debian/patches/lp1979952-Revert-core-mount-fail-early-if-directory-cannot-be-creat.patch
24new file mode 10064429new file mode 100644
index 0000000..3469980
--- /dev/null
+++ b/debian/patches/lp1979952-Revert-core-mount-fail-early-if-directory-cannot-be-creat.patch
@@ -0,0 +1,33 @@
1From: Yu Watanabe <watanabe.yu+github@gmail.com>
2Date: Tue, 26 Jul 2022 23:15:01 +0900
3Subject: Revert "core/mount: fail early if directory cannot be created"
4
5Origin: upstream, https://github.com/systemd/systemd/commit/e5e6b7c225987551ebda14d2d7feadb66a64fb3c
6Bug-Ubuntu: https://launchpad.net/bugs/1979952
7
8This reverts commit e4de58c8231e47509ffeb3aa47620ca42f22d7f6.
9
10If mkdir() fails and the path does exist, then the later mount
11command fails anyway. Hence, it is not necessary to fail here.
12
13Fixes #24120.
14---
15 src/core/mount.c | 4 +---
16 1 file changed, 1 insertion(+), 3 deletions(-)
17
18diff --git a/src/core/mount.c b/src/core/mount.c
19index 673eec3..af39db2 100644
20--- a/src/core/mount.c
21+++ b/src/core/mount.c
22@@ -1035,10 +1035,8 @@ static void mount_enter_mounting(Mount *m) {
23 r = mkdir_p_label(p->what, m->directory_mode);
24 /* mkdir_p_label() can return -EEXIST if the target path exists and is not a directory - which is
25 * totally OK, in case the user wants us to overmount a non-directory inode. */
26- if (r < 0 && r != -EEXIST) {
27+ if (r < 0 && r != -EEXIST)
28 log_unit_error_errno(UNIT(m), r, "Failed to make bind mount source '%s': %m", p->what);
29- goto fail;
30- }
31 }
32
33 if (p) {
diff --git a/debian/patches/lp1979952-core-mount-downgrade-log-level-about-several-mkdir-failur.patch b/debian/patches/lp1979952-core-mount-downgrade-log-level-about-several-mkdir-failur.patch
0new file mode 10064434new file mode 100644
index 0000000..5f2e1cc
--- /dev/null
+++ b/debian/patches/lp1979952-core-mount-downgrade-log-level-about-several-mkdir-failur.patch
@@ -0,0 +1,31 @@
1From: Yu Watanabe <watanabe.yu+github@gmail.com>
2Date: Tue, 26 Jul 2022 23:23:01 +0900
3Subject: core/mount: downgrade log level about several mkdir failures
4
5Origin: upstream, https://github.com/systemd/systemd/commit/574febda6b0e00aae164b18b70aa80744d950500
6Bug-Ubuntu: https://launchpad.net/bugs/1979952
7
8---
9 src/core/mount.c | 8 ++++++--
10 1 file changed, 6 insertions(+), 2 deletions(-)
11
12diff --git a/src/core/mount.c b/src/core/mount.c
13index af39db2..ca8a6cf 100644
14--- a/src/core/mount.c
15+++ b/src/core/mount.c
16@@ -1034,9 +1034,13 @@ static void mount_enter_mounting(Mount *m) {
17 if (p && mount_is_bind(p)) {
18 r = mkdir_p_label(p->what, m->directory_mode);
19 /* mkdir_p_label() can return -EEXIST if the target path exists and is not a directory - which is
20- * totally OK, in case the user wants us to overmount a non-directory inode. */
21+ * totally OK, in case the user wants us to overmount a non-directory inode. Also -EROFS can be
22+ * returned on read-only filesystem. Moreover, -EACCES (and also maybe -EPERM?) may be returned
23+ * when the path is on NFS. See issue #24120. All such errors will be logged in the debug level. */
24 if (r < 0 && r != -EEXIST)
25- log_unit_error_errno(UNIT(m), r, "Failed to make bind mount source '%s': %m", p->what);
26+ log_unit_full_errno(UNIT(m),
27+ (r == -EROFS || ERRNO_IS_PRIVILEGE(r)) ? LOG_DEBUG : LOG_WARNING,
28+ r, "Failed to make bind mount source '%s', ignoring: %m", p->what);
29 }
30
31 if (p) {
diff --git a/debian/patches/series b/debian/patches/series
index 3ac0c71..eb05e93 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -93,3 +93,5 @@ lp1975667-Ensure-dns_search_domain_unlink_marked-removes-all-marked.patch
93lp1981042-core-firstboot-workaround-timezone-issues-caused-by-Ubunt.patch93lp1981042-core-firstboot-workaround-timezone-issues-caused-by-Ubunt.patch
94lp1979951-network-do-not-remove-localhost-address.patch94lp1979951-network-do-not-remove-localhost-address.patch
95lp1982462-units-remove-the-restart-limit-on-the-modprobe-.service.patch95lp1982462-units-remove-the-restart-limit-on-the-modprobe-.service.patch
96lp1979952-Revert-core-mount-fail-early-if-directory-cannot-be-creat.patch
97lp1979952-core-mount-downgrade-log-level-about-several-mkdir-failur.patch

Subscribers

People subscribed via source and target branches