aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXi Ruoyao <xry111@xry111.site>2023-07-29 09:53:44 +0800
committerXi Ruoyao <xry111@xry111.site>2023-07-29 09:56:55 +0800
commit57f16783edb41bf517c52d453278f5b3b4bac434 (patch)
tree5d8d517ee7c0ed56f971aae2168983c3f679897b
parent7dcd8c782bab203dcba04013f4ecc6846a12bd93 (diff)
systemd: Add --no-same-owner for man page extraction
Well, I forgot to create the man pages tarball as root, so if we don't use --no-same-owner the man pages will be owned by UID 1000 :(. Instead of regenerating the tarball again let's just fix this in the book.
-rw-r--r--chapter08/systemd.xml4
1 files changed, 3 insertions, 1 deletions
diff --git a/chapter08/systemd.xml b/chapter08/systemd.xml
index c71616725..eb8ea77b0 100644
--- a/chapter08/systemd.xml
+++ b/chapter08/systemd.xml
@@ -192,7 +192,9 @@ meson setup \
<!-- Please make sure systemd man pages tarball has a common leading
component in the path. -->
-<screen><userinput remap="install">tar -xf ../../systemd-man-pages-&systemd-man-version;.tar.xz --strip-components=1 -C /usr/share/man</userinput></screen>
+<screen><userinput remap="install">tar -xf ../../systemd-man-pages-&systemd-version;.tar.xz \
+ --no-same-owner --strip-components=1 \
+ -C /usr/share/man</userinput></screen>
<para>Create the <filename>/etc/machine-id</filename> file needed by
<command>systemd-journald</command>:</para>