machinectl read-only does not work
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
systemd (Ubuntu) |
Fix Released
|
Low
|
Unassigned | ||
Focal |
Won't Fix
|
Low
|
Unassigned | ||
Jammy |
Fix Released
|
Low
|
Unassigned | ||
Kinetic |
Fix Released
|
Low
|
Unassigned |
Bug Description
[impact]
machinectl read-only does not work
[test case]
On a system where the systemd machines dir is *not* on a btrfs volume (e.g. it's on a normal ext4 fs), create an image 'test' and then:
$ sudo machinectl image-status test
test
Type: directory
Path: /var/lib/
Hostname: ubuntu
OS: Ubuntu 20.04.5 LTS
RO: writable
Created: Wed 2022-10-05 13:41:15 EDT; 34s ago
$ sudo machinectl read-only test
Could not mark image read-only: Access denied
[regression potential]
failure marking images ro or rw
[scope]
this is needed in all releases that include machinectl
this is fixed upstream by 137d162c42ed858
Related branches
- Lukas Märdian: Approve
-
Diff: 796 lines (+623/-45)16 files modifieddebian/patches/lp1977630-fix_machinectl_pull_tar.patch (+81/-0)
debian/patches/lp1978079-efi-pstore-not-cleared-on-boot.patch (+5/-4)
debian/patches/lp1991829-add-CAP_LINUX_IMMUTABLE-to-systemd-machined-so-it-ca.patch (+29/-0)
debian/patches/lp1999275/binfmt-check-if-binfmt-is-mounted-before-applying-rules.patch (+80/-0)
debian/patches/lp1999275/binfmt-util-also-check-if-binfmt-is-mounted-in-read-write.patch (+41/-0)
debian/patches/lp1999275/binfmt-util-split-out-binfmt_mounted.patch (+69/-0)
debian/patches/lp1999275/unit-check-more-specific-path-to-be-written-by-systemd-bi.patch (+26/-0)
debian/patches/lp2009743/network-dhcp4-do-not-ignore-the-gateway-even-if-the-desti.patch (+59/-0)
debian/patches/lp2009743/test-network-add-one-more-testcase-for-DHCPv4-classless-r.patch (+33/-0)
debian/patches/lp2013543-core-reorder-systemd-arguments-on-reexec.patch (+58/-0)
debian/patches/lp2025563-shutdown-get-only-active-md-arrays.patch (+67/-0)
debian/patches/lp2028180-udev-rules-fix-nvme-symlink-creation-on-namespace-changes.patch (+47/-0)
debian/patches/series (+11/-1)
debian/systemd.postinst (+16/-1)
debian/tests/tests-in-lxd (+1/-1)
dev/null (+0/-38)
- Lukas Märdian: Approve
-
Diff: 84 lines (+53/-0)4 files modifieddebian/changelog (+17/-0)
debian/patches/lp1991829-add-CAP_LINUX_IMMUTABLE-to-systemd-machined-so-it-ca.patch (+29/-0)
debian/patches/series (+1/-0)
debian/tests/upstream (+6/-0)
- Nick Rosbrook: Approve
-
Diff: 149 lines (+121/-0)4 files modifieddebian/changelog (+9/-0)
debian/patches/lp1977630-fix_machinectl_pull_tar.patch (+81/-0)
debian/patches/lp1991829-add-CAP_LINUX_IMMUTABLE-to-systemd-machined-so-it-ca.patch (+29/-0)
debian/patches/series (+2/-0)
- Nick Rosbrook: Approve
-
Diff: 59 lines (+37/-0)3 files modifieddebian/changelog (+7/-0)
debian/patches/lp1991829-add-CAP_LINUX_IMMUTABLE-to-systemd-machined-so-it-ca.patch (+29/-0)
debian/patches/series (+1/-0)
Changed in systemd (Ubuntu Kinetic): | |
importance: | Undecided → Low |
Changed in systemd (Ubuntu Jammy): | |
importance: | Undecided → Low |
Changed in systemd (Ubuntu Focal): | |
importance: | Undecided → Low |
Changed in systemd (Ubuntu Kinetic): | |
status: | New → Triaged |
Changed in systemd (Ubuntu Focal): | |
status: | New → Triaged |
Changed in systemd (Ubuntu Jammy): | |
status: | New → Triaged |
Changed in systemd (Ubuntu Jammy): | |
status: | Triaged → In Progress |
Changed in systemd (Ubuntu Focal): | |
status: | Triaged → Won't Fix |
This bug was fixed in the package systemd - 251.4-1ubuntu7
---------------
systemd (251.4-1ubuntu7) kinetic; urgency=medium
[ Nick Rosbrook ] tests/upstream /git.launchpad. net/~ubuntu- core-dev/ ubuntu/ +source/ systemd/ commit/ ?id=5ab2b8ad13a 3d7441935d6f43b b81fbd540e2c33
* autopkgtest: do not allow qemu to be used on ppc64el (LP: #1992178)
Almost every run on ppc64el takes 12 to 24 hours, so do this as a last
resort to relieve pressure on autopkgtest infrastructure.
File: debian/
https:/
[ Dan Streetman ] patches/ lp1991829- add-CAP_ LINUX_IMMUTABLE -to-systemd- machined- so-it-ca. patch /git.launchpad. net/~ubuntu- core-dev/ ubuntu/ +source/ systemd/ commit/ ?id=a8a41b11d71 2c8cfbf595d34f3 9d95096f23e202
* make machinectl read-only work (LP: #1991829)
Author: Dan Streetman
File: debian/
https:/
-- Nick Rosbrook <email address hidden> Tue, 11 Oct 2022 11:51:25 -0400