Author: jciccone Date: 2006-05-28 08:11:26 -0600 (Sun, 28 May 2006) New Revision: 1668
Added: branches/clfs-2.0/BOOK/bootable/common/chowning.xml Modified: branches/clfs-2.0/BOOK/bootable/arm-chapter.xml branches/clfs-2.0/BOOK/final-preps/creatingfiles.xml branches/clfs-2.0/BOOK/final-system/common/sysvinit.xml Log: Added information about changing the ownership of the system and creating the neccesary device nodes. Modified: branches/clfs-2.0/BOOK/bootable/arm-chapter.xml =================================================================== --- branches/clfs-2.0/BOOK/bootable/arm-chapter.xml 2006-05-28 01:13:38 UTC (rev 1667) +++ branches/clfs-2.0/BOOK/bootable/arm-chapter.xml 2006-05-28 14:11:26 UTC (rev 1668) @@ -14,5 +14,6 @@ <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/introduction.xml"/> <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/fstab.xml"/> <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="arm/kernel.xml"/> + <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/chowning.xml"/> </chapter> Added: branches/clfs-2.0/BOOK/bootable/common/chowning.xml =================================================================== --- branches/clfs-2.0/BOOK/bootable/common/chowning.xml (rev 0) +++ branches/clfs-2.0/BOOK/bootable/common/chowning.xml 2006-05-28 14:11:26 UTC (rev 1668) @@ -0,0 +1,51 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" + "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [ + <!ENTITY % general-entities SYSTEM "../../general.ent"> + %general-entities; +]> + +<sect1 id="ch-bootable-chowning"> + <?dbhtml filename="chowning.html"?> + + <title>Changing the Ownership Of The CLFS System</title> + + <para>Throughout the book, every package has been compiled and installed as + the <systemitem class="username">lfs</systemitem> user. The final system + should be owned by <systemitem class="username">root</systemitem>.</para> + + <important> + + <para>The commands in the remainder of this book must be performed while + logged in as <systemitem class="username">root</systemitem>. Check that + $LFS is still set:</para> + + <screen><userinput>echo $LFS</userinput></screen> + + </important> + + <para>First, Change the <systemitem class="username">user</systemitem>: + <systemitem class="group">group</systemitem> on the entire lfs system.</para> + +<screen><userinput>chown -Rv root:root ${LFS}</userinput></screen> + + <para>The following files require a <systemitem class="username">user</systemitem> + :<systemitem class="group">group</systemitem> combination other then + <systemitem class="username">root</systemitem>:<systemitem class="group">root + </systemitem>.</para> + +<screen><userinput>chgrp -v utmp ${LFS}/var/run/utmp ${LFS}/var/log/lastlog</userinput></screen> + + <para>The following device nodes need to be created for the system to + boot.</para> + +<screen><userinput>mknod -m 0666 ${LFS}/dev/null c 1 3 +mknod -m 0600 ${LFS}/dev/console c 5 1</userinput></screen> + + <para>If you did not create the following rules in <xref linkend="ch-scripts-udev-rules"/>. You + need to create them now.</para> + +<screen><userinput>mknod -m 0666 ${LFS}/lib/udev/devices/null c 1 3 +mknod -m 0600 ${LFS}/lib/udev/devices/console c 5 1</userinput></screen> + +</sect1> Modified: branches/clfs-2.0/BOOK/final-preps/creatingfiles.xml =================================================================== --- branches/clfs-2.0/BOOK/final-preps/creatingfiles.xml 2006-05-28 01:13:38 UTC (rev 1667) +++ branches/clfs-2.0/BOOK/final-preps/creatingfiles.xml 2006-05-28 14:11:26 UTC (rev 1668) @@ -98,7 +98,6 @@ proper permissions:</para> <screen><userinput>touch ${LFS}/var/run/utmp ${LFS}/var/log/{btmp,lastlog,wtmp} -chgrp -v utmp ${LFS}/var/run/utmp ${LFS}/var/log/lastlog chmod -v 664 ${LFS}/var/run/utmp ${LFS}/var/log/lastlog</userinput></screen> <para>The <filename>/var/run/utmp</filename> file records the users Modified: branches/clfs-2.0/BOOK/final-system/common/sysvinit.xml =================================================================== --- branches/clfs-2.0/BOOK/final-system/common/sysvinit.xml 2006-05-28 01:13:38 UTC (rev 1667) +++ branches/clfs-2.0/BOOK/final-system/common/sysvinit.xml 2006-05-28 14:11:26 UTC (rev 1668) @@ -42,16 +42,16 @@ <para os="s1">The following sed makes changes in the Makefile required for cross-compiling</para> <screen os="s2"><userinput>cp -v src/Makefile src/Makefile.orig -sed -e '[EMAIL PROTECTED]@[EMAIL PROTECTED]' \ - -e "s@/dev/[EMAIL PROTECTED]&@g" \ +sed -e 's@/dev/[EMAIL PROTECTED](ROOT)&@g' \ -e '[EMAIL PROTECTED](mknod \)-m \([0-9]* \)\(.* \)[EMAIL PROTECTED]; chmod [EMAIL PROTECTED]' \ - -e "s@/usr/[EMAIL PROTECTED]&@" \ + -e '/^ifeq/s/$(ROOT)//' \ + -e 's@/usr/[EMAIL PROTECTED](ROOT)&@' \ src/Makefile.orig > src/Makefile</userinput></screen> <para os="c">Compile the package:</para> <screen os="d"><userinput>make -C src clobber -make -C src CC="${CC}"</userinput></screen> +make -C src ROOT=${LFS} CC="${CC}"</userinput></screen> <para os="e">Install the package:</para> -- http://linuxfromscratch.org/mailman/listinfo/cross-lfs FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
