From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mathieu Othacehe Subject: Re: Use genimage for disk-image creation. Date: Sun, 29 Mar 2020 20:13:30 +0200 Message-ID: <877dz3t4fp.fsf@gmail.com> References: <87eetgo9o6.fsf@gmail.com> <874kub9p2f.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:56105) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jIcRD-0007MP-J7 for guix-devel@gnu.org; Sun, 29 Mar 2020 14:13:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jIcRC-0005yv-4N for guix-devel@gnu.org; Sun, 29 Mar 2020 14:13:35 -0400 In-reply-to: <874kub9p2f.fsf@gnu.org> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane-mx.org@gnu.org Sender: "Guix-devel" To: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: guix-devel Hey! > I=E2=80=99m completely sold to the idea. :-) I'm glad you like it! > Looking at =E2=80=98image-ext2.c=E2=80=99 reveals that genimage actually = just shells out > to mke2fs. Indeed, I discovered that =E2=80=98mke2fs -d /my/root=E2=80= =99 copies > /my/root as the image=E2=80=99s root directory. Likewise, for ISO, it ju= st > shells out to =E2=80=98genisoimage=E2=80=99. > > So I think that we could avoid =E2=80=98genimage=E2=80=99 altogether and = implement > similar functionality for ext4/ISO in (gnu build disk-image). Ok! One useful functionality of genimage seems to be that's its capable of creating complex partitioning layouts. Of course we can re-implement it in (gnu build disk-image), but I don't know how complex will it be. Danny, I found the genimage files for each arm/aarch64 boards inside Buildroot repository. They are a valuable source of information, but regardless of the decision we take for (gnu build disk-image), we can find a way to import them and store them as Guile records.=20 I guess I'll start a small implementation to have a clearer view of this topic. Thank you all for the feedback, Mathieu