Bruce Dubbs <[EMAIL PROTECTED]> wrote in
news:[EMAIL PROTECTED]: 

> Steve Crosby wrote:
>> Bruce Dubbs <[EMAIL PROTECTED]> wrote in
>> news:[EMAIL PROTECTED]: 
>> 
>> 
>>>Steve Crosby wrote:
>>>
>>>>I've added some script-foo to my build scripts to automatically
>>>>generate SBU's, Disk Usage and Installed Files details, and am
>>>>sharing below. 
>>>
>> 
>> <snip>
>> 
>>>before2=`df -k $LFS | grep $LFS | sed -e "s/ \{2,\}/ /g" | cut -d' '
>>>-f3` 
>>>
>> 
>> 
>> in Chapter 6 LFS chroot, the /etc/fstab doesn't exist, so df -k fails
>> 
>> 
>>>echo "`du -k ../$PROGRAM.tar.gz` size" | tee -a ../build.log
>>>after2=`df -k $LFS | grep $LFS | sed -e "s/ \{2,\}/ /g" | cut -d" "
>>>-f3` echo "$(($after2-$before2)) kilobytes / build size - $PROGRAM" \
>>>      | tee -a ../build.log
>> 
>> 
>> in Chapter 5 LFS, the LFS user doesn't have perms for most of /proc,
>> so du- k spits a lot of errors, and df -k fails in Chapter 6 as per
>> above. 
>> 
>> but thanks for the comments.
> 
> If you have $LFS defined, in Chapter 5, as instructed by the book, it 
> doesn't search /proc.  In Chapter 6, s:$LFS:/:.
> 
> You don't need fstab if you specify the mount point.
> 
> I've been using this method without problems for about two years.
> 
>    -- Bruce
> 
> 

*lightbulb*

Thanks - I was doing a df -k /mnt/lfs in the chroot, instead of a df -k /,
and of course that was reporting an error.

-- -
Steve Crosby
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to