Gentoo Archives: gentoo-portage-dev

From: Ned Ludd <solar@g.o>
To: "Peter S. Mazinger" <ps.m@×××.net>
Cc: gentoo-portage-dev@l.g.o
Subject: Re: [gentoo-portage-dev] Re: mkinitrd
Date: Thu, 28 Oct 2004 07:02:28
Message-Id: 1098946841.458.349.camel@simple
1 On Thu, 2004-10-28 at 02:30, Peter S. Mazinger wrote:
2 > On Thu, 28 Oct 2004, Ned Ludd wrote:
3 >
4 > > On Wed, 2004-10-27 at 18:43, Ned Ludd wrote:
5 > > > On Wed, 2004-10-27 at 15:20, Peter S. Mazinger wrote:
6 > > > > On Wed, 27 Oct 2004, Ned Ludd wrote:
7 > > > >
8 > > > > > I've been thinking about initrd and I'd like to move down that path at some point for my own use.
9 > > > > > Perhaps kernel+busybox for the initd then another partition for packages.
10 > > > > > I'd like to go right from building packages on my own system to dishing (http:// || ftp:// ) them up from my $PKGDIR and installing right to the device when it's mounted +rw.
11 > > > > > Problem I see however with the idea now is that the native portage format is a tad bloated (noman|nodoc|noinfo) all run at the installing phase vs the before packages phase which would force me to put a strip on the runtime device to keep packages small enough.
12 > > > > > So my first goal is to get the dev-portage guys talking with me about redefining/extending the portage binary format a little.
13 > > > > >
14 > > > > > hrmm I guess I'll subscribe to gentoo-portage-dev-subscribe@g.o
15 > > > > > and spark up a conversation.
16 > > > >
17 > > > > Are you thinking of adding subpackaging and/or foreign format support,
18 > > > > like ipkg?
19 > >
20 > > Here is a mocked up version to do what I(we?) need for embedded devices.
21 > > while trying to cope with the existing portage binary format.
22 > >
23 > > uCpie etc # cat make.conf
24 > > PKGDIR=/dev/shm/portage/packages/
25 > > PORTAGE_TMPDIR=/dev/shm/portage/tmp
26 > > PORTAGE_BINHOST=http://oc12.net/~solar/uclibc/gentoo/x86/packages/world/
27 > > INDEX_DIR=$PKGDIR
28 > > FEATURES="noman noinfo nodoc distclean"
29 > > INSTALL_MASK="*.a *.o *.h *.pl *.sample /usr/include /etc/init.d /etc/conf.d /usr/share/locale/"
30 > > INSTALL_MASK="${INSTALL_MASK} /usr/share/gcc-data/"
31 >
32 > Do we not need /etc/conf.d /etc/init.d? I am not sure about that. I
33 > can't imagine that we will have a real baselayout-lite, that will work
34 > w/o these. I would also add *.pyc, *.pyo.
35 >
36 > What does distclean?
37
38 In the context of the script it does
39 if hasq distclean $FEATURES; then
40 CLEAN=1
41 size="$(/bin/ls -lh ${pkg} | /bin/awk '{print $5}')"
42 einfo "Freeing up ${size} by removing ${P}${file_ext}"
43 rm ${pkg}
44 fi
45
46 which would remove the package after it's done installing it.
47 Being that we are only using a tmpfs this all sits in memory. So no need to keep a large distfiles tre hanging around chewing up memory.
48 I also implanted this feature in an /etc/portage/bashrc I posted to gentoo-dev titled "portage toys"
49
50 >
51 > Your busybox "applet" uses /dev/shm. This is not supported/needed for
52 > uClibc, so it is not sure to have it set up, and I do not know, if the
53 > PKGDIR[_TMPDIR] dirs do not need dev? What happens if /dev/shm is mounted
54 > w/ nodev, or similar options discussed on the hardened list and proposed
55 > as default on ml?
56
57 yeah? i defined it to use /dev/shm which I happen to mount rw on my
58 devs..
59
60
61 >
62 > Peter
63 --
64 Ned Ludd <solar@g.o>
65 Gentoo (hardened,security,infrastructure,embedded) Developer

Attachments

File name MIME type
signature.asc application/pgp-signature