From 85e7f3ce1d59872b3ea26b3f4332b934fc1af2af Mon Sep 17 00:00:00 2001 From: Bruce Dubbs Date: Tue, 14 May 2013 21:25:54 +0000 Subject: 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 --- chapter06/createfiles.xml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'chapter06/createfiles.xml') diff --git a/chapter06/createfiles.xml b/chapter06/createfiles.xml index 7f32e89b6..5139dce0f 100644 --- a/chapter06/createfiles.xml +++ b/chapter06/createfiles.xml @@ -46,13 +46,14 @@ ln -sv /tools/lib/libstdc++.so{,.6} /usr/lib sed 's/tools/usr/' /tools/lib/libstdc++.la > /usr/lib/libstdc++.la ln -sv bash /bin/sh - A proper Linux system maintains a list of the mounted file systems in - the file /etc/mtab. Normally, this file would be - created when we mount a new file system. Since we will not be mounting any - file systems inside our chroot environment, create an empty file for - utilities that expect the presence of /etc/mtab: - -touch /etc/mtab + Historically, Linux maintains a list of the mounted file systems in the + file /etc/mtab. Modern kernels maintain this list + internally and exposes it to the user via the /proc filesystem. To satisfy utilities that + expect the presence of /etc/mtab, create the following + symbolic link: + +ln -sv /proc/self/mounts /etc/mtab In order for user root to be able to login and for the name root to be recognized, there -- cgit v1.2.3-54-g00ecf