]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
repart: Add note about UIDs/GIDs of copied files and directories 26153/head
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 23 Jan 2023 15:43:58 +0000 (16:43 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 23 Jan 2023 15:43:58 +0000 (16:43 +0100)
man/repart.d.xml

index 846e1984e59125c1674a28795ef7071ff5bbb11d..b7862029057b293529f35d968033b06dd1527367 100644 (file)
         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