From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: Installer, ISO9660, etc. Date: Mon, 10 Jul 2017 23:02:36 +0200 Message-ID: <8737a43t03.fsf@gnu.org> References: <20170627221608.A23B52013B@smtp.hushmail.com> <20170628154943.36021286@scratchpost.org> <20170705152024.4dfde1c5@scratchpost.org> <87mv8gbhur.fsf_-_@gnu.org> <20170707181315.2f998f1d@scratchpost.org> <877ezhv0dt.fsf@gnu.org> <20170710154118.2c0262eb@scratchpost.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:4830:134:3::10]:39396) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dUfpM-0003C2-Ij for guix-devel@gnu.org; Mon, 10 Jul 2017 17:02:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dUfpH-0002Pk-Jl for guix-devel@gnu.org; Mon, 10 Jul 2017 17:02:44 -0400 In-Reply-To: <20170710154118.2c0262eb@scratchpost.org> (Danny Milosavljevic's message of "Mon, 10 Jul 2017 15:41:18 +0200") 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.org@gnu.org Sender: "Guix-devel" To: Danny Milosavljevic Cc: guix-devel@gnu.org Danny Milosavljevic skribis: > Aha! > > I finally found why I couldn't use the iso9660 image on an usb stick. > > Fix: > > diff --git a/gnu/build/file-systems.scm b/gnu/build/file-systems.scm > index b6930497d..7f2c5dcb0 100644 > --- a/gnu/build/file-systems.scm > +++ b/gnu/build/file-systems.scm > @@ -398,7 +398,7 @@ not valid header was found." > (match (string-tokenize line) > (((=3D string->number major) (=3D string->number minor) > blocks name) > - (if (partition? name major minor) > + (if #t ;(partition? name major minor) > (loop (cons name parts)) > (loop parts)))))))))) > > Then it works fine on CD, on USB stick, whereever. > > Is there a reason why (disk-partitions) second-guesses the Linux kernel a= nd filters out some entries from /proc/partitions ? It has this: (define (partition? name major minor) ;; Select device names that end in a digit, like libblkid's 'probe_all' ;; function does. Checking for "/sys/dev/block/MAJOR:MINOR/partition" ;; doesn't work for partitions coming from mapped devices. (and (char-set-contains? char-set:digit (last-character name)) (> major 2))) ;ignore RAM disks and floppy di= sks What=E2=80=99s the /dev name in your case? Ludo=E2=80=99.