From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= Subject: Re: Modifying squashfs usage for `guix pack` for supporting singularity Date: Thu, 12 Mar 2020 14:51:46 +0100 Message-ID: <87v9n9smtp.fsf@gnu.org> References: 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]:58028) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jCOFc-0005ss-O1 for guix-devel@gnu.org; Thu, 12 Mar 2020 09:51:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jCOFb-0000Qf-2l for guix-devel@gnu.org; Thu, 12 Mar 2020 09:51:52 -0400 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:15331) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jCOFa-0000Pq-Nz for guix-devel@gnu.org; Thu, 12 Mar 2020 09:51:51 -0400 In-Reply-To: (Josh Marshall's message of "Wed, 4 Mar 2020 21:00:37 +0000") 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: Josh Marshall Cc: "guix-devel@gnu.org" Hi Josh, Apologies for the delay! (In general, it=E2=80=99s probably safer to report bugs to bug-guix@gnu.org because they=E2=80=99re tracked and are less likel= y to fall through the cracks.) Josh Marshall skribis: > I ran into some trouble today when trying to package an image for singula= rity on CentOS7. nxck suggested I go into the cdoe and try adding the "-no= append" option to mksquashfs in 'guix/guix/scripts/pack.scm'. While lookin= g at it, it seems that it performs a multistep process to modify the squash= fs image, which kind of goes against the design of the utility. A SO page = ( https://unix.stackexchange.com/a/459372 ) suggested the full hierarchy be= created and then added in a single invocation. Does anyone have any opini= ons on such a change or useful insights? [...] > It also appears the `-mkfs-time 0`, `-all-time 0`, and `-UTC` arguments h= ave been missing. Could you explain what error you got and what makes you think these options were missing? IME, the images produced by =E2=80=98guix pack -f squashfs=E2=80=99 work fi= ne with Singularity 2.x and 3.x. > Docker and Singularity havebeen moving towards support of the Open Contai= ners Initative, which prompts the discussion of if the docker and sinfulari= ty (squashfs) pack options should be depricated in favor of this standard: = https://github.com/opencontainers/image-spec In fact, =E2=80=98guix pack -f docker=E2=80=99 produces an OCI image, IIUC. Singularity 3.x introduced the Singularity Image Format (SIF), which is yet another format. AIUI, SIF is the recommended format for Singularity 3.x, isn=E2=80=99t it? Thanks, Ludo=E2=80=99.