From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 1B9C6138B45 for ; Wed, 20 Feb 2013 16:55:34 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id EBF87E0539; Wed, 20 Feb 2013 16:55:31 +0000 (UTC) Received: from mail-ia0-f175.google.com (mail-ia0-f175.google.com [209.85.210.175]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 6D32CE0539 for ; Wed, 20 Feb 2013 16:55:31 +0000 (UTC) Received: by mail-ia0-f175.google.com with SMTP id r4so7254735iaj.20 for ; Wed, 20 Feb 2013 08:55:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=quJeJGmze+jsYVQZQn0q5BJa1kkX67Mtc/L1Yc5cqUY=; b=KRa8so+Bsn5o9GovWFlwfxfKhHcuMczWs2mmowhr08p9Tk+8LK1fJhyQSsfIZF9Y4Q +jDLYV9IxF59KvEUIQQz/LEdV/cda7tF1qQJnmBR+ZDqrZ8AqlnQsbBX3USk03qE1nI7 EHyJWm15k1ART/kjdzAQjMkD0tVPkMLK6vqCN4IA2NeTbjlrN+SvEl+gBoC1Ohjjb3oC NX10SGkvS+SUxdItrp63YflCAw1hRCX2PEQN2QXvtggnEhLEyWgliuVWqo8qKqjKevVj 4WTnQwA6Ifq5BO5RFVgYBIMkAds+FYvnzt0hZyXh+1tDY3qbVEDMtQ1x2yZwnNbMsm1Q GGTA== Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-catalyst@lists.gentoo.org Reply-to: gentoo-catalyst@lists.gentoo.org MIME-Version: 1.0 X-Received: by 10.50.194.129 with SMTP id hw1mr11361911igc.8.1361379330691; Wed, 20 Feb 2013 08:55:30 -0800 (PST) Received: by 10.64.176.161 with HTTP; Wed, 20 Feb 2013 08:55:30 -0800 (PST) In-Reply-To: <5124FF04.5020201@arskom.com.tr> References: <5124FF04.5020201@arskom.com.tr> Date: Wed, 20 Feb 2013 08:55:30 -0800 Message-ID: Subject: Re: [gentoo-catalyst] ship /usr/portage with stage4 From: Chris White To: gentoo-catalyst@lists.gentoo.org Content-Type: multipart/alternative; boundary=14dae9340e5b6911d804d62ad32e X-Archives-Salt: 7a1c763b-e89b-4110-a411-88f406b9d1fe X-Archives-Hash: 5cdf55125a8a562bd8b02d56b4ecff60 --14dae9340e5b6911d804d62ad32e Content-Type: text/plain; charset=ISO-8859-1 On Wed, Feb 20, 2013 at 8:51 AM, Burak Arslan wrote: > Hi there, > > I've set up my first stage4 catalyst job and everything seems to be in > order. > > My final gripe with it is that I couldn't get it to ship the contents of > /usr/portage inside the stage4 tarball. Having looked at the source, I > guess that's because the latest portage snapshot is mount --bind'ed to the > chroot environment, which is unmounted before creating the tarball. > > Any suggestions? Am I missing something obvious here? > Yes, you need to disable snapcache in your catalyst config `options` value: # snapcache = cache the snapshot so that it can be bind-mounted into the chroot. # WARNING: moving parts of the portage tree from within fsscript *will* break # your cache. The cache is unlinked before any empty or rm processing, though. # In general I tend to keep a different catalyst config for stage 4 and stage 1-3, passing in the appropriate config file using `-c` - Chris --14dae9340e5b6911d804d62ad32e Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
On Wed, Feb 20, 2013 at 8:51 AM, Burak Arslan <b= urak.arslan@arskom.com.tr> wrote:
Hi there,

I've set up my first stage4 catalyst job and everything seems to be in = order.

My final gripe with it is that I couldn't get it to ship the contents o= f /usr/portage inside the stage4 tarball. Having looked at the source, I gu= ess that's because the latest portage snapshot is mount --bind'ed t= o the chroot environment, which is unmounted before creating the tarball.
Any suggestions? Am I missing something obvious here?

Yes, you need= to disable snapcache in your catalyst config `options` value:

# snapcache =3D cache the snapshot so that it can be bind-mounted into the = chroot.
# WARNING: moving parts of the portage tree from within fssc= ript *will* break
# your cache. The cache is unlinked before any empty or rm processing, th= ough.
#
In general I tend to keep a different cata= lyst config for stage 4 and stage 1-3, passing in the appropriate config fi= le using `-c`

- Chris
--14dae9340e5b6911d804d62ad32e--