]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
man: adjust the description of ReadOnly
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 11 Oct 2021 18:56:07 +0000 (20:56 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 12 Oct 2021 08:18:47 +0000 (10:18 +0200)
The reader might think that the flag actually enforces this somehow,
but it's just a hint that is easy to ignore.

Inspired by https://github.com/systemd/mkosi/issues/821.

man/mkosi.1
mkosi.md

index 2f157f4b871feb25e4648817a5e9a08da611e2d9..1f7ba9178fc8f0d4d0609f94ac3384f571115f26 100644 (file)
@@ -497,10 +497,15 @@ SecureBoot keys via mkosi\[cq]s \f[C]genkey\f[R] command.
 Defaults to two years (730 days).
 .TP
 \f[B]\f[CB]ReadOnly=\f[B]\f[R], \f[B]\f[CB]--read-only\f[B]\f[R]
-Make root file system read-only.
+Set the read-only flag on the root partition in the partition table.
 Only applies to \f[C]gpt_ext4\f[R], \f[C]gpt_xfs\f[R],
 \f[C]gpt_btrfs\f[R], \f[C]subvolume\f[R] output formats, and is implied
 on \f[C]gpt_squashfs\f[R] and \f[C]plain_squashfs\f[R].
+The read-only flag is essentially a hint to tools using the image (see
+https://systemd.io/DISCOVERABLE_PARTITIONS/).
+In particular, all systemd tools like \f[C]systemd-nspawn\f[R] and
+\f[C]systemd-gpt-auto-generator\f[R] will mount such partitions
+read-only, but tools from other project may ignore the flag.
 .TP
 \f[B]\f[CB]Minimize=\f[B]\f[R], \f[B]\f[CB]--minimize\f[B]\f[R]
 Attempt to make the resulting root file system as small as possible by
index dc12dd61e6fdb8e53321be3f6ee3cbd14406337f..29a7eaa6a72662f9dd0bc1931e25fe3f92f7a486 100644 (file)
--- a/mkosi.md
+++ b/mkosi.md
@@ -502,9 +502,17 @@ a boolean argument: either "1", "yes", or "true" to enable, or "0",
 
 `ReadOnly=`, `--read-only`
 
-: Make root file system read-only. Only applies to `gpt_ext4`,
-  `gpt_xfs`, `gpt_btrfs`, `subvolume` output formats, and is implied on
-  `gpt_squashfs` and `plain_squashfs`.
+: Set the read-only flag on the root partition in the partition table.
+  Only applies to `gpt_ext4`, `gpt_xfs`, `gpt_btrfs`, `subvolume`
+  output formats, and is implied on `gpt_squashfs` and `plain_squashfs`.
+
+: The read-only flag is essentially a hint to tools using the image
+  (see https://systemd.io/DISCOVERABLE_PARTITIONS/). In particular,
+  all systemd tools like `systemd-nspawn` and
+  `systemd-gpt-auto-generator` will mount such partitions read-only,
+  but tools from other project may ignore the flag.
+
+[//]: # (Please add external tools to the list here.)
 
 `Minimize=`, `--minimize`