[rock-user] Error in build_stage2 of building bootdisk configuration ?

Tuan Anh TRINH trinhtuan at gmail.com
Fri May 5 17:45:04 CEST 2006


Tobias Hintze wrote:
>>> can you please detail what you did exactly? starting with `svn checkout`
>> I do `svn update` because I have already previous revision.
> [...]
> 
> can you please continue from after the `svn update`?
Thanks, but no need to show it here. I figured out the problem, it is:

I set " ROCKCFG_PKGFILE_VER='1' " in " .script/Config -cfg bootdisk " by 
default and that not work with some checks in 
./target/bootdisk/build_stage2.sh (line marked with "<<---") because all 
compiled packages in ./build/bootdisk.../ROCK/pkgs/*.bz2 are post-fix 
with version number and the list of patterns in $package_map do not have 
the version number:

....
echo_status "Extracting the packages archives."
for x in $( ls ../../pkgs/*.tar.bz2 | tr . / | cut -f8 -d/ )
do
         if [ -z "${x##*:dev*}" -o -z "${x##*:doc*}" ]
         then
                 # simply ignore :dev and :doc packages
                 true
         elif echo "" $package_map "" | grep -q " +$x "		<<---
         then
                 echo_status "\`- Extracting $x.tar.bz2 ..."
                 tar --use-compress-program=bzip2 -xpf ../../pkgs/$x.tar.bz2
         elif ! echo "" $package_map "" | grep -q " -$x "	<<---
         then
....

After set " ROCKCFG_PKGFILE_VER='0' " and build agains, it pass that 
reported errors but I meets the other problem. The 
"./script/Build-Target -cfg bootdisk" only stop at :

....
Creating initrd filesystem image (ext2fs):
-> Creating temporary files.

Running Build-Target cleanup procedure
-> Killing lingering processes and removing parallel build queue.
-> Umounting lingering mounts in build/bootdisk-TRUNK-x86-bootdisk-expert.
-> READY.

[root at localhost TEST]#

And the problem is a strange line (marked with "<<---") in 
./target/bootdisk/build_stage1.sh :

...
         echo_status "Creating temporary files."
         tmpdir=`mktemp -d` ; mkdir -p ${tmpdir}
         dd if=/dev/zero of=${initrd_img} bs=${block_size} 
count=${block_count} &> /dev/null
         tmpdev="`losetup -f 2>/dev/null`"		<<---
         if [ -z "${tmpdev}" ] ; then
...

I change this line to:

...
tmpdev=""
...

every things are ok, and I can create an instalation CD. Sorry, but it 
seems that your newsgroup isn't active, I saw very few messages each 
day? Rarely post and reply? :-)

BTW, after use the aboved CD (I use minimun KDE desktop template) to 
install on my VMWare Workstation 5.5 and QEMU, it cann't run X because 
of driver for frame buffer device is not working. Do you have any 
experience in testing with QEMU or VMWare?

Thanks,
Tuan

PS: all reported errors are done with the version:

2.0-stable > svn info
Path: .
URL: http://www.rocklinux.net/svn/rock-linux/trunk
Repository Root: http://www.rocklinux.net/svn/rock-linux
Repository UUID: c5f82cb5-29bc-0310-9cd0-bff59a50e3bc
Revision: 7582
Node Kind: directory
Schedule: normal
Last Changed Author: daja77
Last Changed Rev: 7582
Last Changed Date: 2006-05-03 22:12:57 +0700 (Wed, 03 May 2006)
Properties Last Updated: 2006-04-19 20:06:18 +0700 (Wed, 19 Apr 2006)
2.0-stable >

> 
> th



More information about the rock-user mailing list