Merge commit 'f0921f2f3749a95e867fcfa90e2b9b8063986d75'

This commit is contained in:
Stefan Reimer 2022-11-04 14:47:17 +01:00
commit 8fba004dab
1 changed files with 2 additions and 2 deletions

View File

@ -196,9 +196,9 @@ def install_qemu_firmware():
log.error('STDERR:\n%s', err.decode('utf8'))
sys.exit(1)
firm_bin = os.path.join(firm_dir, f"uefi-{arch}.bin")
os.symlink(bin, firm_bin)
if args.pad_uefi_bins:
firm_bin = os.path.join(firm_dir, f"uefi-{arch}.bin")
os.symlink(bin, firm_bin)
log.info('Padding "%s" to 67108864 bytes', firm_bin)
subprocess.run(['truncate', '-s', '67108864', firm_bin])