mirror of
				https://github.com/linuxkit/linuxkit.git
				synced 2025-11-04 03:59:14 +00:00 
			
		
		
		
	tools: Fix make-efi script
mkfs.vfat prints output (even without the -v option) which ends up in front of the ISO, which is cat'ed to stdout. This made the generated ISO unbootable. Redirect stdout of mkfs.vfat to /dev/null. Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
This commit is contained in:
		@@ -41,7 +41,7 @@ mkdir -p iso
 | 
				
			|||||||
# headroom seems to be enough; (x+31)/32*32 rounds up to multiple of 32.
 | 
					# headroom seems to be enough; (x+31)/32*32 rounds up to multiple of 32.
 | 
				
			||||||
mkfs.vfat -v -C iso/efi.raw \
 | 
					mkfs.vfat -v -C iso/efi.raw \
 | 
				
			||||||
        $(( ($(stat -c %s "mobylinux.efi") / 1024 + 511) \
 | 
					        $(( ($(stat -c %s "mobylinux.efi") / 1024 + 511) \
 | 
				
			||||||
		/ 32 * 32 ))
 | 
							/ 32 * 32 )) > /dev/null
 | 
				
			||||||
echo "mtools_skip_check=1" >> /etc/mtools.conf && \
 | 
					echo "mtools_skip_check=1" >> /etc/mtools.conf && \
 | 
				
			||||||
mmd -i iso/efi.raw ::/EFI
 | 
					mmd -i iso/efi.raw ::/EFI
 | 
				
			||||||
mmd -i iso/efi.raw ::/EFI/BOOT
 | 
					mmd -i iso/efi.raw ::/EFI/BOOT
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user