Gentoo Archives: gentoo-catalyst

From: Luca Casagrande <luca.casagrande@×××××.com>
To: gentoo-catalyst@l.g.o
Subject: [gentoo-catalyst] postgresql and fsscript.sh
Date: Fri, 05 Jan 2007 15:41:42
Message-Id: 20070105164106.530ccdf5@gekomachine.casa
1 Hi to all!
2
3 For my livecd, i plan to use postgresql and store some sample data inside it. The merging part has been
4 done with no error in livecd-stage1, instead the configuration process it's in the fsscript;
5
6 This is a part of my fsscript
7
8 [..]
9 emerge --config postgresql
10 /etc/init.d/postgresql start
11 su postgres -c 'createdb livecd;createlang plpgsql livecd;psql -d livecd -f /usr/share/postgresql/contrib/lwpostgis.sql;psql -d livecd -f /usr/share/postgresql/contribspatial_ref_sys.sql;exit'
12 shp2pgsql -s -1 /home/ominiverdi/data/qgis/alaska.shp alaska livecd > /home/ominiverdi/data/qgis/alaska.sql
13 psql -h localhost -U postgres -d livecd -f /home/ominiverdi/data/qgis/alaska.sql
14 /etc/init.d/postgresql stop
15 [..]
16
17 Catalyst exec the fsscript with no error and reach the rc-update section; at the end of it i got this:
18
19 * postgresql added to runlevel default
20 removing /var/tmp/catalyst/tmp/default/livecd-stage2-i686-ominiverdi/tmp/chroot-functions.sh from the chroot
21 Running action sequence: unmerge
22 copying unmerge.sh to /var/tmp/catalyst/tmp/default/livecd-stage2-i686-ominiverdi/tmp/
23 copying chroot-functions.sh to /var/tmp/catalyst/tmp/default/livecd-stage2-i686-ominiverdi/tmp/
24 Running unmerge.sh in chroot /var/tmp/catalyst/tmp/default/livecd-stage2-i686-ominiverdi/
25 ---'profiles/arch.list' is empty or not available. Empty portage tree?
26 >>> Regenerating /etc/ld.so.cache...
27 ROOT=/ emerge -pt -C sys-kernel/gentoo-sources
28 --- 'profiles/arch.list' is empty or not available. Empty portage tree?
29 --- 'profiles/updates' is empty or not available. Empty portage tree?
30 --- 'profiles/arch.list' is empty or not available. Empty portage tree?
31 !!! ARCH is not set... Are you missing the '/etc/make.profile' symlink?
32 !!! Is the symlink correct? Is your portage tree complete?
33
34
35 !!! catalyst: Unmerge script failed.
36
37 umount: /var/tmp/catalyst/tmp/default/livecd-stage2-i686-ominiverdi/proc: device is busy
38 umount: /var/tmp/catalyst/tmp/default/livecd-stage2-i686-ominiverdi/proc: device is busy !!!
39 catalyst: First attempt to unmount: /var/tmp/catalyst/tmp/default/livecd-stage2-i686-ominiverdi//proc failed.
40
41 If i remove from fsscript, all except emerge --config postgresql, the iso is created succesfully.
42
43 Thanks for your help
44
45 Luca
46 --
47 Join the world's largest wifi conunity! http://en.fon.com/
48
49 LINUX User #411601
50 GENTOO-GIS Development Team
51 jabber: casagrande@××××××××××××.it
52
53
54 --
55 gentoo-catalyst@g.o mailing list