X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@lists.alpinelinux.org Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.189]) by lists.alpinelinux.org (Postfix) with ESMTP id 3FA29170000B7 for ; Fri, 7 Nov 2008 10:50:57 +0000 (UTC) Received: by nf-out-0910.google.com with SMTP id d21so625126nfb.35 for ; Fri, 07 Nov 2008 02:50:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:cc :in-reply-to:references:content-type:date:message-id:mime-version :x-mailer:content-transfer-encoding; bh=8XWhvA2jwi87+CjBoU75CPZYBeWttYg1AhTos1IJHTU=; b=WU8s7dKo2uKF53JNmxEUq52fEdZ/lXI7Q46QRieGdm+iA/biDKJCsaxB9QL11ZvhLu bGWEzPT/4IdlB0q6uSbor2Y94affV2N20lqGxaHMwl/UpcvFG/1zuinPL0F8zHUjtP9Y 2ptruQzLb+XVzz6xh0xyfbogBobo0XCJ1kIr0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:cc:in-reply-to:references:content-type:date :message-id:mime-version:x-mailer:content-transfer-encoding; b=l1nve6sCFwbOJWRvugID8KAi2r756Ks6EU/3Fr5RDpnktKu05vtldCYfNJL8u3k9zY fA4zfxXsVQraLnHbaOZVln0BnnrbwdywXLvVJOIe9J2arOSvfAp3lZcFDpEkM+fL0tZ+ wJGAfhjAqrJRB0pY6mw3kJDwTkEnLWETYghxc= Received: by 10.210.81.10 with SMTP id e10mr3721108ebb.187.1226055056017; Fri, 07 Nov 2008 02:50:56 -0800 (PST) Received: from ?10.65.0.5? (149-13-151.oke2-bras2.adsl.tele2.no [90.149.13.151]) by mx.google.com with ESMTPS id 7sm3208263eyb.1.2008.11.07.02.50.54 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 07 Nov 2008 02:50:55 -0800 (PST) Subject: Re: [alpine-devel] How Alpine stores OS in RAM? From: Natanael Copa To: Jan Klod Cc: alpine-devel@lists.alpinelinux.org In-Reply-To: <200811071330.45777.janklodvan@gmail.com> References: <200811071330.45777.janklodvan@gmail.com> Content-Type: text/plain Date: Fri, 07 Nov 2008 11:50:52 +0100 Message-Id: <1226055052.31131.43.camel@nc> X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 Content-Transfer-Encoding: 7bit On Fri, 2008-11-07 at 14:30 +0300, Jan Klod wrote: > Since I still try building a gentoo-similar OS in RAM, I would appreciate, if > someone tells me how Alpine is stored in RAM? alpine is compiled with gentoo. since gentoo's pacakge manager does not handles package splitting the packages are splitted and converted to apk, (which basicly is a tar.gz archive) The base system (alpine-baselayout, alpine-conf, uclibc, busybox, sfic, tdb and openssl) are installed in a temp root and compressed as base.tar.bz2. During boot, the initramfs script will mount a tmpfs root where the base.tar.bz2 is extracted and then it just 'switch_root' and 'exec init' Now we are in a new root, which is an allocated tmpfs. The init scripts will find an apkovl.tar.gz which contains a list of the applications user installed last time and the config files. all the wanted applications will be installed and the services will be started. Does that explain? The alpine runtime is not really a gentoo system. Its alot smaller alpien system. > Jan -nc --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---