mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 13:58:15 -05:00
file-systems: Improve error handling in the iso9660 case - fixes boot problem.
* gnu/build/file-systems.scm (read-iso9660-superblock): Modify.
This commit is contained in:
parent
b92e8da0a8
commit
fb03f44bb1
1 changed files with 5 additions and 1 deletions
|
@ -260,7 +260,11 @@ (define (read-iso9660-superblock device)
|
||||||
"Return the raw contents of DEVICE's iso9660 primary volume descriptor
|
"Return the raw contents of DEVICE's iso9660 primary volume descriptor
|
||||||
as a bytevector, or #f if DEVICE does not contain an iso9660 file system."
|
as a bytevector, or #f if DEVICE does not contain an iso9660 file system."
|
||||||
;; Start reading at sector 16.
|
;; Start reading at sector 16.
|
||||||
(read-iso9660-primary-volume-descriptor device (* 2048 16)))
|
;; Since we are not sure that the device contains an ISO9660 filesystem,
|
||||||
|
;; we have to find that out first.
|
||||||
|
(if (read-superblock device (* 2048 16) 2048 iso9660-superblock?)
|
||||||
|
(read-iso9660-primary-volume-descriptor device (* 2048 16))
|
||||||
|
#f)) ; Device does not contain an iso9660 filesystem.
|
||||||
|
|
||||||
(define (iso9660-superblock-uuid sblock)
|
(define (iso9660-superblock-uuid sblock)
|
||||||
"Return the modification time of an iso9660 primary volume descriptor
|
"Return the modification time of an iso9660 primary volume descriptor
|
||||||
|
|
Loading…
Reference in a new issue