diff options
author | Xi Ruoyao <xry111@xry111.site> | 2023-07-16 11:58:01 +0800 |
---|---|---|
committer | Xi Ruoyao <xry111@xry111.site> | 2023-07-16 12:06:37 +0800 |
commit | cce6c924637464556f437bb9eb417967966c5be1 (patch) | |
tree | 5bc571c2f69ea3d024d012c9f1d71a918b5dd637 /chapter08/udev.xml | |
parent | 13288b9165e60ff8537091d8dbd49cdf91485efa (diff) |
udev: Install man pages from systemd man pages tarball
Diffstat (limited to 'chapter08/udev.xml')
-rw-r--r-- | chapter08/udev.xml | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/chapter08/udev.xml b/chapter08/udev.xml index c1e2af312..4e79ef899 100644 --- a/chapter08/udev.xml +++ b/chapter08/udev.xml @@ -133,6 +133,20 @@ install -vm755 $(find src/udev -type f | grep -F -v ".") /usr/lib/udev</userinpu <screen><userinput remap="install">tar -xvf ../../&udev-lfs-version;.tar.xz make -f &udev-lfs-version;/Makefile.lfs install</userinput></screen> + <para>Install the man pages:</para> + + <!-- Please make sure systemd man pages tarball has a common leading + component in the path. --> +<screen><userinput remap="install">tar -xf ../../systemd-man-pages-253.tar.xz --strip-components=1 \ + -C /usr/share/man --wildcards '*/udev*' '*/libudev*' \ + '*/systemd-'{hwdb,udevd.service}.8 +sed 's/systemd\(\\\?-\)/udev-/' /usr/share/man/man8/systemd-hwdb.8 \ + > /usr/share/man/man8/udev-hwdb.8 +sed 's|lib.*udevd|sbin/udevd|' \ + /usr/share/man/man8/systemd-udevd.service.8 \ + > /usr/share/man/man8/udevd.8 +rm /usr/share/man/man8/systemd-*.8</userinput></screen> + </sect2> <sect2 id="conf-udev" role="configuration"> |