Ignore:
Timestamp:
05/14/2013 09:25:54 PM (11 years ago)
Author:
Bruce Dubbs <bdubbs@…>
Branches:
10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 7.4, 7.5, 7.6, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
Children:
28c4c1e
Parents:
32ce725c
Message:

Change /etc/mtab to be a symbolic link to /proc/self/mounts.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@10274 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter06/createfiles.xml

    r32ce725c r85e7f3c  
    4747ln -sv bash /bin/sh</userinput></screen>
    4848
    49   <para>A proper Linux system maintains a list of the mounted file systems in
    50   the file <filename>/etc/mtab</filename>.  Normally, this file would be
    51   created when we mount a new file system. Since we will not be mounting any
    52   file systems inside our chroot environment, create an empty file for
    53   utilities that expect the presence of <filename>/etc/mtab</filename>:</para>
     49  <para>Historically, Linux maintains a list of the mounted file systems in the
     50  file <filename>/etc/mtab</filename>.  Modern kernels maintain this list
     51  internally and exposes it to the user via the <filename
     52  class="directory">/proc</filename> filesystem.  To satisfy utilities that
     53  expect the presence of <filename>/etc/mtab</filename>, create the following
     54  symbolic link:</para>
    5455
    55 <screen><userinput>touch /etc/mtab</userinput></screen>
     56<screen><userinput>ln -sv /proc/self/mounts /etc/mtab</userinput></screen>
    5657
    5758  <para>In order for user <systemitem class="username">root</systemitem> to be
Note: See TracChangeset for help on using the changeset viewer.