summaryrefslogtreecommitdiffstats
path: root/man/repart.d.xml
diff options
context:
space:
mode:
authorDaan De Meyer <daan.j.demeyer@gmail.com>2023-01-23 16:43:58 +0100
committerDaan De Meyer <daan.j.demeyer@gmail.com>2023-01-23 16:43:58 +0100
commitcd53cc149ef007a31b8ed567b33ad7e7e9579da9 (patch)
tree078c28e0f192df8c77191ebe2576ba3103412319 /man/repart.d.xml
parentRevert "repart: Ensure files end up owned by root in generated filesystems" (diff)
downloadsystemd-cd53cc149ef007a31b8ed567b33ad7e7e9579da9.tar.xz
systemd-cd53cc149ef007a31b8ed567b33ad7e7e9579da9.zip
repart: Add note about UIDs/GIDs of copied files and directories
Diffstat (limited to '')
-rw-r--r--man/repart.d.xml6
1 files changed, 6 insertions, 0 deletions
diff --git a/man/repart.d.xml b/man/repart.d.xml
index 846e1984e5..b786202905 100644
--- a/man/repart.d.xml
+++ b/man/repart.d.xml
@@ -425,6 +425,12 @@
target filesystem (e.g symlinks, fifos, sockets and devices on vfat). When an unsupported file type
is encountered, repart will skip copying this file and write a log message about it.</para>
+ <para>Note that <command>systemd-repart</command> does not change the UIDs/GIDs of any copied files
+ and directories. When running <command>systemd-repart</command> as an unprivileged user to build an
+ image of files and directories owned by the same user, you can run <command>systemd-repart</command>
+ in a user namespace with the current user mapped to the root user to make sure the files and
+ directories in the image are owned by the root user.</para>
+
<para>This option cannot be combined with <varname>CopyBlocks=</varname>.</para>
<para>When