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 07AA51381F3 for ; Mon, 9 Sep 2013 06:30:47 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7FE25E0A8D; Mon, 9 Sep 2013 06:30:37 +0000 (UTC) Received: from mx1.hadt.biz (sil.hadt.biz [5.9.16.100]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 66D86E09E4 for ; Mon, 9 Sep 2013 06:30:33 +0000 (UTC) Received: from [192.168.255.100] (p5DCC6558.dip0.t-ipconnect.de [93.204.101.88]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.hadt.biz (Postfix) with ESMTPSA id EA06E40035 for ; Mon, 9 Sep 2013 08:30:29 +0200 (CEST) Message-ID: <522D6B00.2050404@hadt.biz> Date: Mon, 09 Sep 2013 08:30:24 +0200 From: Michael Hampicke Organization: Hampicke Datentechnik User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] creating an image of the system References: <20130908185125.GA18762@zlug.org> In-Reply-To: <20130908185125.GA18762@zlug.org> X-Enigmail-Version: 1.5.2 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="cNX5s3A7XpoJtWik7bLEEICjjXVAVc3r4" X-Archives-Salt: fe29a689-8e96-40e6-b5d2-1b1024829ef8 X-Archives-Hash: 15e6058757d090e6271db461a1eb0d5d This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --cNX5s3A7XpoJtWik7bLEEICjjXVAVc3r4 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Am 08.09.2013 20:51, schrieb Benjamin Block: > Hej folks, >=20 > I wonder what is a good way to create an image of a gentoo-system, so > that one can apply it later to the same or other computers. >=20 > In my case it is a rather simple setup: one partition, no encryption or= > lvm. Its a debug-setup, so its only used for certain programming-tasks > and not for daily work, so no need for something fancy. The time I setu= p > that system I also used only conservative compilation-flags and > optimisation, so that it can be used on other CPUs (well, they have to > be x86_64 and have to have mmx/sse[23] - but I think every setup that I= > intend to use this on will have these properties). >=20 > So I reckon that one could just use tar with permission-preservation an= d > some excludes like dev/sys/proc/tmp. But is this a good idea or is ther= e > a better way to do this? I never cloned a gentoo-system, so thats why I= > would like to be at least somewhat sure about it, so that I don't have > to reconfigure it later again, because I messed it up :D >=20 Tar with permission preservation is fine. Just exlude everything in dev/sys/proc/tmp as you said. But make sure, that these directories are in your tar file, it does not matter if they are empty, but they have to exist in order to boot proplery. One special case. To boot you most likely will need /dev/console and /dev/null. Just inlcude those two device nodes in your tar file. Optionally use compression (gz, bz2, xz, ...) on your tar to safe some space. --cNX5s3A7XpoJtWik7bLEEICjjXVAVc3r4 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.21 (GNU/Linux) iQEcBAEBAgAGBQJSLWsAAAoJEK7HowNX6Bk+b4oH+wVVauHAZaPXTQBwsTyU79vt USvAPSeB/1jaWDmClGdfR4TajQaiTIuBF8uTMjTUBGo+TQu1kon2ghPSEF7emCul MY69wd9HuPrh9IWd9kYmlmUPU0VmxrVXThl93iz7+prOu6jm7veeY96xl0xHhpe3 yVs5FJjBmiGxYLsb50PzAeUItygtM67N24QTJMfrD51BGpbT1YxluBNZ4M2PwTFd EemzGHkyVWEO3LNGdsFIIkgIrD4zbfjs7FNBjLr+QwLsuogfmD/C3g3SLxofrQaz GlXplZ3A2mTDTpuypyLpQsz2ln+LqB6PHDXKlOzrfwKc3nAbPn6B82l0t+unTsI= =lIEB -----END PGP SIGNATURE----- --cNX5s3A7XpoJtWik7bLEEICjjXVAVc3r4--