Danny Milosavljevic <dan...@scratchpost.org> 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)
>                  (((= string->number major) (= 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 and 
> 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 disks

What’s the /dev name in your case?

Ludo’.

Reply via email to