image: Use 512 byte blocks for EFI partitions.
Addresses <https://issues.guix.gnu.org/59695>. * gnu/build/image.scm (make-vfat-image): When creating a fat filesystem for UEFI bootable partition use 512 byte blocks.
This commit is contained in:
		
							parent
							
								
									2d989ad597
								
							
						
					
					
						commit
						45f5feb279
					
				
					 1 changed files with 4 additions and 1 deletions
				
			
		|  | @ -111,7 +111,10 @@ turn doesn't take any constant overhead into account, force a 1-MiB minimum." | ||||||
|                            (if (eq? size 'guess) |                            (if (eq? size 'guess) | ||||||
|                                (estimate-partition-size root) |                                (estimate-partition-size root) | ||||||
|                                size)) |                                size)) | ||||||
|                     (if (member 'esp flags) (list "-S" "1024") '())) |                     ;; u-boot in particular needs the formatted block | ||||||
|  |                     ;; size and the physical block size to be equal. | ||||||
|  |                     ;; TODO: What about 4k blocks? | ||||||
|  |                     (if (member 'esp flags) (list "-S" "512") '())) | ||||||
|     (for-each (lambda (file) |     (for-each (lambda (file) | ||||||
|                 (unless (member file '("." "..")) |                 (unless (member file '("." "..")) | ||||||
|                   (invoke "mcopy" "-bsp" "-i" target |                   (invoke "mcopy" "-bsp" "-i" target | ||||||
|  |  | ||||||
		Reference in a new issue