From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/6776 Path: news.gmane.org!not-for-mail From: "piranna@gmail.com" Newsgroups: gmane.linux.lib.musl.general Subject: Re: Failed to execute /init (error -2) for system-wide musl libc Date: Thu, 1 Jan 2015 21:02:52 +0100 Message-ID: References: <20141231194014.GE1809@newbook> <20141231215549.GF1809@newbook> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1420142618 14854 80.91.229.3 (1 Jan 2015 20:03:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 1 Jan 2015 20:03:38 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-6789-gllmg-musl=m.gmane.org@lists.openwall.com Thu Jan 01 21:03:31 2015 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1Y6lxu-0005rd-VX for gllmg-musl@m.gmane.org; Thu, 01 Jan 2015 21:03:27 +0100 Original-Received: (qmail 11981 invoked by uid 550); 1 Jan 2015 20:03:25 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 11973 invoked from network); 1 Jan 2015 20:03:24 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; bh=z1UzZ3GHn3e6K2Q1WyibPApT9L+NWrVHagHuR3XYMVI=; b=0nXGl0HXYT25+fAZgREuBAxOuVUqUNt+98iSxHT/qIhkyxMRJsQosVloXdxFWN9Xik kMKjkAnyPwBpX6/p/sFZZdPD9GrxYvK208K5wecq3FnI3KB2pbq/FWGd2k0A0T/zmNcB XuRgcrnjMAKY8E5Um1h0k7uf3Q0oHTP61FADqLv6ThtizrpwjV1u7pN93MZ9sb19bqy1 6qoWzgdTwwYLvyoc00aidpnzVfVtFNooaqx7VFJTqxZ8+ujIubou0Fg62osv8jaHMzPd KbeRE8TgHyYsuDdI6eWvRv2UtKoQ6V3ilIGzWp5vzMS4lCkY9XCFsOFEniewRd8RVBg0 dQiA== X-Received: by 10.180.78.233 with SMTP id e9mr110272192wix.25.1420142592928; Thu, 01 Jan 2015 12:03:12 -0800 (PST) In-Reply-To: <20141231215549.GF1809@newbook> Xref: news.gmane.org gmane.linux.lib.musl.general:6776 Archived-At: > Glad you figured it out. Thank you! :-) > This is one of the arcane details of cpio: > as originally designed, every input that you specify corresponds to > exactly one record, and every record creates at most one file/directory. > The Linux kernel follows this approach; if you create /lib/file but not > /lib in your initrd, the non-existence of /lib will result in /lib/file > not being created. Yeah, it's a simple algorythm, but if you de-compress the generated .cpio.gz file the /lib/file are already there, so it doesn't make sense. I've opened an issue on Linux bugtracker so gen_init_cpio command exit with an error if trying to add a file on a directory that doesn't exists: https://bugzilla.kernel.org/show_bug.cgi?id=3D90561 --=20 "Si quieres viajar alrededor del mundo y ser invitado a hablar en un monton de sitios diferentes, simplemente escribe un sistema operativo Unix." =E2=80=93 Linus Tordvals, creador del sistema operativo Linux