From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10327 invoked from network); 28 Oct 2004 07:02:28 +0000 Received: from smtp.gentoo.org (156.56.111.197) by lists.gentoo.org with AES256-SHA encrypted SMTP; 28 Oct 2004 07:02:28 +0000 Received: from lists.gentoo.org ([156.56.111.196] helo=parrot.gentoo.org) by smtp.gentoo.org with esmtp (Exim 4.41) id 1CN4Im-0004yu-4i for arch-gentoo-portage-dev@lists.gentoo.org; Thu, 28 Oct 2004 07:02:28 +0000 Received: (qmail 2591 invoked by uid 89); 28 Oct 2004 07:02:26 +0000 Mailing-List: contact gentoo-portage-dev-help@gentoo.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail Reply-To: gentoo-portage-dev@lists.gentoo.org X-BeenThere: gentoo-portage-dev@gentoo.org Received: (qmail 3179 invoked from network); 28 Oct 2004 07:02:26 +0000 From: Ned Ludd Reply-To: solar@gentoo.org To: "Peter S. Mazinger" Cc: gentoo-portage-dev@lists.gentoo.org In-Reply-To: References: Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-XwrjNebErG7lY3sNhE4w" Organization: Gentoo (hardened,security,infrastructure,embedded) Developer Message-Id: <1098946841.458.349.camel@simple> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Thu, 28 Oct 2004 03:00:42 -0400 Subject: Re: [gentoo-portage-dev] Re: mkinitrd X-Archives-Salt: a8dc5c91-73de-4e5f-b204-1fb7e9c72474 X-Archives-Hash: 667f81b5b1ac64bcb8415175bc7dc5c0 --=-XwrjNebErG7lY3sNhE4w Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Thu, 2004-10-28 at 02:30, Peter S. Mazinger wrote: > On Thu, 28 Oct 2004, Ned Ludd wrote: >=20 > > 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: > > > >=20 > > > > > I've been thinking about initrd and I'd like to move down that pa= th at some point for my own use. > > > > > Perhaps kernel+busybox for the initd then another partition for p= ackages. > > > > > I'd like to go right from building packages on my own system to d= ishing (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 portag= e format is a tad bloated (noman|nodoc|noinfo) all run at the installing ph= ase 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 a= bout redefining/extending the portage binary format a little. > > > > >=20 > > > > > hrmm I guess I'll subscribe to gentoo-portage-dev-subscribe@gento= o.org > > > > > and spark up a conversation. > > > >=20 > > > > Are you thinking of adding subpackaging and/or foreign format suppo= rt,=20 > > > > like ipkg? > >=20 > > 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. > >=20 > > uCpie etc # cat make.conf=20 > > PKGDIR=3D/dev/shm/portage/packages/ > > PORTAGE_TMPDIR=3D/dev/shm/portage/tmp > > PORTAGE_BINHOST=3Dhttp://oc12.net/~solar/uclibc/gentoo/x86/packages/wor= ld/ > > INDEX_DIR=3D$PKGDIR > > FEATURES=3D"noman noinfo nodoc distclean" > > INSTALL_MASK=3D"*.a *.o *.h *.pl *.sample /usr/include /etc/init.d /etc= /conf.d /usr/share/locale/" > > INSTALL_MASK=3D"${INSTALL_MASK} /usr/share/gcc-data/" >=20 > Do we not need /etc/conf.d /etc/init.d? I am not sure about that. I=20 > can't imagine that we will have a real baselayout-lite, that will work =20 > w/o these. I would also add *.pyc, *.pyo. >=20 > What does distclean? In the context of the script it does=20 if hasq distclean $FEATURES; then CLEAN=3D1 size=3D"$(/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.=20 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" >=20 > Your busybox "applet" uses /dev/shm. This is not supported/needed for=20 > uClibc, so it is not sure to have it set up, and I do not know, if the=20 > PKGDIR[_TMPDIR] dirs do not need dev? What happens if /dev/shm is mounted= =20 > w/ nodev, or similar options discussed on the hardened list and proposed=20 > as default on ml? yeah? i defined it to use /dev/shm which I happen to mount rw on my devs.. >=20 > Peter --=20 Ned Ludd Gentoo (hardened,security,infrastructure,embedded) Developer --=-XwrjNebErG7lY3sNhE4w Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQBBgJkZ94CCfB4KcwwRAtRVAJ4kbF9ULbnebuUGE2fbnIZdKtfTtgCgoYsu fxopuMaa22vtU602OTBL4Es= =y65a -----END PGP SIGNATURE----- --=-XwrjNebErG7lY3sNhE4w--