diff options
author | Xi Ruoyao <xry111@mengyan1223.wang> | 2021-05-08 21:17:59 +0800 |
---|---|---|
committer | Xi Ruoyao <xry111@mengyan1223.wang> | 2021-05-08 21:19:49 +0800 |
commit | 7c1fce4e9070c0a09e1e3e98d6490fc2aa268226 (patch) | |
tree | 6bf20566519ce0c527fc0af10c8d0ba8d73c12c4 | |
parent | be628b7962e89f08f2000c7765a474e172be873f (diff) |
usr-move: change references to /lib/{udev,systemd} to their /usr counterparts
-rw-r--r-- | chapter08/eudev.xml | 8 | ||||
-rw-r--r-- | chapter08/glibc.xml | 2 | ||||
-rw-r--r-- | chapter08/systemd.xml | 4 | ||||
-rw-r--r-- | chapter09/symlinks.xml | 2 | ||||
-rw-r--r-- | chapter09/udev.xml | 4 |
5 files changed, 10 insertions, 10 deletions
diff --git a/chapter08/eudev.xml b/chapter08/eudev.xml index 6a4ff7a71..0dee78d68 100644 --- a/chapter08/eudev.xml +++ b/chapter08/eudev.xml @@ -64,7 +64,7 @@ <para>Create some directories now that are needed for tests, but will also be used as a part of installation:</para> -<screen><userinput remap="test">mkdir -pv /lib/udev/rules.d +<screen><userinput remap="test">mkdir -pv /usr/lib/udev/rules.d mkdir -pv /etc/udev/rules.d</userinput></screen> <para>To test the results, issue:</para> @@ -97,7 +97,7 @@ make -f &udev-lfs-version;/Makefile.lfs install</userinput></screen> <para>Information about hardware devices is maintained in the <filename class="directory">/etc/udev/hwdb.d</filename> and - <filename class="directory">/lib/udev/hwdb.d</filename> directories. + <filename class="directory">/usr/lib/udev/hwdb.d</filename> directories. <application>Eudev</application> needs that information to be compiled into a binary database <filename>/etc/udev/hwdb.bin</filename>. Create the initial database:</para> @@ -118,13 +118,13 @@ make -f &udev-lfs-version;/Makefile.lfs install</userinput></screen> <segtitle>Installed directories</segtitle> <seglistitem> - <seg><!-- These are in /lib/udev and not to be called by the user: + <seg><!-- These are in /usr/lib/udev and not to be called by the user: accelerometer, ata_id, cdrom_id, collect, mtd_probe, scsi_id, v4l_id,--> udevadm and udevd</seg> <seg>libudev.so</seg> - <seg>/etc/udev, /lib/udev, and /usr/share/doc/udev-&udev-lfs-version;</seg> + <seg>/etc/udev, /usr/lib/udev, and /usr/share/doc/udev-&udev-lfs-version;</seg> </seglistitem> </segmentedlist> diff --git a/chapter08/glibc.xml b/chapter08/glibc.xml index 59f639d3c..b5f34ee98 100644 --- a/chapter08/glibc.xml +++ b/chapter08/glibc.xml @@ -221,7 +221,7 @@ mkdir -pv /var/cache/nscd</userinput></screen> <command>nscd</command>:</para> <screen revision="systemd"><userinput remap="install">install -v -Dm644 ../nscd/nscd.tmpfiles /usr/lib/tmpfiles.d/nscd.conf -install -v -Dm644 ../nscd/nscd.service /lib/systemd/system/nscd.service</userinput></screen> +install -v -Dm644 ../nscd/nscd.service /usr/lib/systemd/system/nscd.service</userinput></screen> <para>Next, install the locales that can make the system respond in a different language. None of the locales are required, but if some of them diff --git a/chapter08/systemd.xml b/chapter08/systemd.xml index 19648944e..bcbf92d81 100644 --- a/chapter08/systemd.xml +++ b/chapter08/systemd.xml @@ -239,11 +239,11 @@ meson --prefix=/usr \ udevadm</seg> <seg>libnss_myhostname.so.2, libnss_mymachines.so.2, libnss_resolve.so.2, libnss_systemd.so.2, - libsystemd.so, libsystemd-shared-&systemd-version;.so (in /lib/systemd), + libsystemd.so, libsystemd-shared-&systemd-version;.so (in /usr/lib/systemd), and libudev.so</seg> <seg>/etc/binfmt.d, /etc/init.d, /etc/kernel, /etc/modules-load.d, /etc/sysctl.d, /etc/systemd, /etc/tmpfiles.d, /etc/udev, - /etc/xdg/systemd, /lib/systemd, /lib/udev, /usr/include/systemd, + /etc/xdg/systemd, /usr/lib/systemd, /usr/lib/udev, /usr/include/systemd, /usr/lib/binfmt.d, /usr/lib/environment.d, /usr/lib/kernel, /usr/lib/modules-load.d, /usr/lib/sysctl.d, /usr/lib/systemd, /usr/lib/tmpfiles.d, diff --git a/chapter09/symlinks.xml b/chapter09/symlinks.xml index 3b46a67b0..c4ddd4eaf 100644 --- a/chapter09/symlinks.xml +++ b/chapter09/symlinks.xml @@ -48,7 +48,7 @@ rules. A script has been included that generates the initial rules. Generate these rules by running:</para> -<screen role="install"><userinput>bash /lib/udev/init-net-rules.sh</userinput></screen> +<screen role="install"><userinput>bash /usr/lib/udev/init-net-rules.sh</userinput></screen> <para> Now, inspect the <filename>/etc/udev/rules.d/70-persistent-net.rules</filename> file, to diff --git a/chapter09/udev.xml b/chapter09/udev.xml index a3a7c0cf9..20b311284 100644 --- a/chapter09/udev.xml +++ b/chapter09/udev.xml @@ -108,7 +108,7 @@ <para>A short time later, the kernel will send a uevent to <command> udevd</command>. Based on the rules specified in the files within the <filename class="directory">/etc/udev/rules.d</filename>, <filename - class="directory">/lib/udev/rules.d</filename>, and <filename + class="directory">/usr/lib/udev/rules.d</filename>, and <filename class="directory">/run/udev/rules.d</filename> directories, <command> udevd</command> will create additional symlinks to the device node, or change its permissions, owner, or group, or modify the internal @@ -285,7 +285,7 @@ driver does not export its data to <systemitem class="filesystem">sysfs</systemitem>. This is most common with third party drivers from outside the kernel tree. Create a static - device node in <filename>/lib/udev/devices</filename> with the + device node in <filename>/usr/lib/udev/devices</filename> with the appropriate major/minor numbers (see the file <filename>devices.txt</filename> inside the kernel documentation or the documentation provided by the third party driver vendor). The static |