Throughout the book, every package has been compiled and installed as
the clfs
user. The final system
should be owned by root
.
The commands on this page of the book must be performed while
logged in as root
, or in a fakeroot
session. Check that ${CLFS} is still set:
echo ${CLFS}
Make root
the owner of the entire
CLFS system:
cd ${CLFS}/build chown -Rv root:root final
The following device nodes need to be created for some systems to boot correctly:
mknod -m 0666 ${CLFS}/build/final/dev/null c 1 3 mknod -m 0600 ${CLFS}/build/final/dev/console c 5 1
The following files should not to belong to the root
group, they should belong to the
utmp
group (group 13):
chgrp -v 13 ${CLFS}/build/final/var/run/utmp ${CLFS}/build/final/var/log/lastlog
Finally we create a initramfs as follows:
cd final ( find . | cpio -o --format=newc | gzip ) > ../initramfs