[Bug 1991829] Re: machinectl read-only does not work
Nick Rosbrook
1991829 at bugs.launchpad.net
Mon Aug 28 19:54:44 UTC 2023
I have verified the fix using systemd-container 249.11-0ubuntu3.10 from
jammy-proposed:
nr at clean-jammy-amd64:~$ apt-cache policy systemd-container
systemd-container:
Installed: 249.11-0ubuntu3.10
Candidate: 249.11-0ubuntu3.10
Version table:
*** 249.11-0ubuntu3.10 500
500 http://archive.ubuntu.com/ubuntu jammy-proposed/main amd64 Packages
500 http://security.ubuntu.com/ubuntu jammy-proposed/main amd64 Packages
100 /var/lib/dpkg/status
249.11-0ubuntu3.9 500
500 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages
249.11-0ubuntu3.7 500
500 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages
249.11-0ubuntu3 500
500 http://archive.ubuntu.com/ubuntu jammy/main amd64 Packages
nr at clean-jammy-amd64:~$ machinectl image-status test
test
Type: directory
Path: /var/lib/machines/test
Hostname: ubuntu
OS: Ubuntu 22.04.3 LTS
RO: writable
Created: Mon 2023-08-28 15:44:25 EDT; 6min ago
nr at clean-jammy-amd64:~$ machinectl read-only test
nr at clean-jammy-amd64:~$ machinectl image-status test
test
Type: directory
Path: /var/lib/machines/test
Hostname: ubuntu
OS: Ubuntu 22.04.3 LTS
RO: read-only
Created: Mon 2023-08-28 15:44:25 EDT; 6min ago
nr at clean-jammy-amd64:~$ machinectl read-only test false
nr at clean-jammy-amd64:~$ machinectl image-status test
test
Type: directory
Path: /var/lib/machines/test
Hostname: ubuntu
OS: Ubuntu 22.04.3 LTS
RO: writable
Created: Mon 2023-08-28 15:44:25 EDT; 8min ago
** Tags removed: verification-needed verification-needed-jammy
** Tags added: verification-done verification-done-jammy
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1991829
Title:
machinectl read-only does not work
Status in systemd package in Ubuntu:
Fix Released
Status in systemd source package in Focal:
Won't Fix
Status in systemd source package in Jammy:
Fix Committed
Status in systemd source package in Kinetic:
Fix Released
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/machines/test
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 137d162c42ed858613afc3d7493d08d4ae6d5c1b
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1991829/+subscriptions
More information about the foundations-bugs
mailing list