mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
build: Make ISO-9660 image bootable from USB flash drive.
* gnu/build/vm.scm (make-iso9660-image): Make image bootable from USB flash drive.
This commit is contained in:
parent
0bc6fe323d
commit
911a53a53f
1 changed files with 13 additions and 0 deletions
|
@ -367,6 +367,19 @@ (define* (make-iso9660-image grub config-file os-drv target
|
||||||
"var=/tmp/root/var"
|
"var=/tmp/root/var"
|
||||||
"run=/tmp/root/run"
|
"run=/tmp/root/run"
|
||||||
"--"
|
"--"
|
||||||
|
;; Store two copies of the headers.
|
||||||
|
;; The resulting ISO-9660 image has a DOS MBR and
|
||||||
|
;; one protective partition (with type 0xCD).
|
||||||
|
;; Because GuixSD only uses actual partitions
|
||||||
|
;; rather than what /proc/partitions returns, work
|
||||||
|
;; around it by storing the primary volume
|
||||||
|
;; descriptor twice, once where it should be and
|
||||||
|
;; once in the partition.
|
||||||
|
;; Allegedly, otherwise, many other GNU tools
|
||||||
|
;; (automounters etc) would also be confused by
|
||||||
|
;; the extra partition so it makes sense to
|
||||||
|
;; store two copies in any case.
|
||||||
|
"-boot_image" "any" "partition_offset=16"
|
||||||
"-volid" ,(string-upcase volume-id)
|
"-volid" ,(string-upcase volume-id)
|
||||||
,@(if volume-uuid
|
,@(if volume-uuid
|
||||||
`("-volume_date" "uuid"
|
`("-volume_date" "uuid"
|
||||||
|
|
Loading…
Reference in a new issue