On Thu, 2004-10-28 at 02:30, Peter S. Mazinger wrote: > On Thu, 28 Oct 2004, Ned Ludd wrote: > > > On Wed, 2004-10-27 at 18:43, Ned Ludd wrote: > > > On Wed, 2004-10-27 at 15:20, Peter S. Mazinger wrote: > > > > On Wed, 27 Oct 2004, Ned Ludd wrote: > > > > > > > > > I've been thinking about initrd and I'd like to move down that path at some point for my own use. > > > > > Perhaps kernel+busybox for the initd then another partition for packages. > > > > > 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. > > > > > 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. > > > > > So my first goal is to get the dev-portage guys talking with me about redefining/extending the portage binary format a little. > > > > > > > > > > hrmm I guess I'll subscribe to gentoo-portage-dev-subscribe@gentoo.org > > > > > and spark up a conversation. > > > > > > > > Are you thinking of adding subpackaging and/or foreign format support, > > > > like ipkg? > > > > Here is a mocked up version to do what I(we?) need for embedded devices. > > while trying to cope with the existing portage binary format. > > > > uCpie etc # cat make.conf > > PKGDIR=/dev/shm/portage/packages/ > > PORTAGE_TMPDIR=/dev/shm/portage/tmp > > PORTAGE_BINHOST=http://oc12.net/~solar/uclibc/gentoo/x86/packages/world/ > > INDEX_DIR=$PKGDIR > > FEATURES="noman noinfo nodoc distclean" > > INSTALL_MASK="*.a *.o *.h *.pl *.sample /usr/include /etc/init.d /etc/conf.d /usr/share/locale/" > > INSTALL_MASK="${INSTALL_MASK} /usr/share/gcc-data/" > > Do we not need /etc/conf.d /etc/init.d? I am not sure about that. I > can't imagine that we will have a real baselayout-lite, that will work > w/o these. I would also add *.pyc, *.pyo. > > What does distclean? In the context of the script it does if hasq distclean $FEATURES; then CLEAN=1 size="$(/bin/ls -lh ${pkg} | /bin/awk '{print $5}')" einfo "Freeing up ${size} by removing ${P}${file_ext}" rm ${pkg} fi which would remove the package after it's done installing it. 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. I also implanted this feature in an /etc/portage/bashrc I posted to gentoo-dev titled "portage toys" > > Your busybox "applet" uses /dev/shm. This is not supported/needed for > uClibc, so it is not sure to have it set up, and I do not know, if the > PKGDIR[_TMPDIR] dirs do not need dev? What happens if /dev/shm is mounted > w/ nodev, or similar options discussed on the hardened list and proposed > as default on ml? yeah? i defined it to use /dev/shm which I happen to mount rw on my devs.. > > Peter -- Ned Ludd Gentoo (hardened,security,infrastructure,embedded) Developer