$LFS shouldn't be owned by root, instead it should be owned by your lfs
build user, as root
chown lfs:lfs $LFS -R
tbh off the top of my head I can't recall if this is detailed in chapter4
Personally I create a build dir on the root of LFS
mkdir $LFS/build
I then symlink the sources/patch files into it
ln -s $LFS/sources/* $LFS/build/
This way if I decide I want to start over I can just delete everthing
except sources
which is easier than cleaning up dirs in source
to make the untar and cd a little quicker ( and much easier for scripts )
I create this 'function'
untar () { cd $( tar -vxf $1 | awk -F\/ 'END{print $1}' ) }
it is very basic, it could be expanded to do checks ( like file exists etc.
)
untar sometarball.tar.bz2
very useful if you are scripting a build, as you don't need to guess where
stuff was untared to, you automatically end up in the desired dir.
On Dec 28, 2011 10:53 AM, "Dave H" <[email protected]> wrote:
> hi, i am at Chapter 5.4 of the lfs manual v7.0 and i'm confused where it
> says to make the binutils-build directory.
>
>
>
> i am assuming at this step, i should be user lfs and currently in the
> $LFS/sources directory.
>
> however the command mkdir -v ../binutils-build cannot successfully issued
> by user lfs, because the $LFS is owned by root (partition that was
> mounted as root).
>
>
> SO question would be...
> *A: Should the owner:group of $LFS be root:root or lfs:lfs ?*
> **or**
> *B: Should the commands listed in Chapter 5.4 be issued as user rootinstead
> of user
> lfs?*
>
>
> (the page i am currently viewing)
>
> http://www.linuxfromscratch.org/lfs/view/stable/chapter05/binutils-pass1.html
>
>
>
> thank you for your time and i appreciate your generous work on
> linuxfromscratch.
>
> best regards,
> dave
>
> --
> http://linuxfromscratch.org/mailman/listinfo/lfs-support
> FAQ: http://www.linuxfromscratch.org/lfs/faq.html
> Unsubscribe: See the above information page
>
>
--
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page