aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXi Ruoyao <xry111@mengyan1223.wang>2021-05-02 16:35:34 +0800
committerXi Ruoyao <xry111@mengyan1223.wang>2021-05-02 16:35:34 +0800
commit7a57861d01a844f377969cf3faf618869dcb5f8d (patch)
tree5cc769c244bc65a2e80b9d270573e21cb6b8ee98
parentb7dc3d884f979c59d99bc1da8d60de4f417fe8e5 (diff)
usr-move: /bin and /sbin are no longer needed in $PATH
-rw-r--r--chapter07/chroot.xml2
-rw-r--r--chapter08/revisedchroot.xml2
2 files changed, 2 insertions, 2 deletions
diff --git a/chapter07/chroot.xml b/chapter07/chroot.xml
index 7f85a73e8..d018cb218 100644
--- a/chapter07/chroot.xml
+++ b/chapter07/chroot.xml
@@ -22,7 +22,7 @@
HOME=/root \
TERM="$TERM" \
PS1='(lfs chroot) \u:\w\$ ' \
- PATH=/bin:/usr/bin:/sbin:/usr/sbin \
+ PATH=/usr/bin:/usr/sbin \
/bin/bash --login +h</userinput></screen>
<para>The <parameter>-i</parameter> option given to the <command>env</command>
diff --git a/chapter08/revisedchroot.xml b/chapter08/revisedchroot.xml
index 3a2defb07..3627cd603 100644
--- a/chapter08/revisedchroot.xml
+++ b/chapter08/revisedchroot.xml
@@ -23,7 +23,7 @@
chroot "$LFS" /usr/bin/env -i \
HOME=/root TERM="$TERM" \
PS1='(lfs chroot) \u:\w\$ ' \
- PATH=/bin:/usr/bin:/sbin:/usr/sbin \
+ PATH=/usr/bin:/usr/sbin \
/bin/bash --login</userinput></screen>
<para>Here the <parameter>+h</parameter> option is not used anymore, since