diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index beac24c58..0aa6eb44a 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -35,6 +35,16 @@ --> + + 2013-05-14 + + + [bdubbs] - Change /etc/mtab to be a symbolic link + to /proc/self/mounts. + + + + 2013-05-12 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: + 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: -touch /etc/mtab +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 diff --git a/general.ent b/general.ent index 055c9816f..3fb2ea84f 100644 --- a/general.ent +++ b/general.ent @@ -1,5 +1,5 @@ - - + +