We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f58b510 commit 7099539Copy full SHA for 7099539
contrib/cloud/aws-import
@@ -16,7 +16,7 @@ BLOCKSIZE = 512 * 1024
16
def detect_architecture(image):
17
"""Detect CPU architecture"""
18
mdir = subprocess.run(['mdir', '-b', '-i', image, '::/EFI/BOOT'],
19
- capture_output=True)
+ stdout=subprocess.PIPE, stderr=subprocess.PIPE)
20
if any(b'BOOTAA64.EFI' in x for x in mdir.stdout.splitlines()):
21
return 'arm64'
22
return 'x86_64'
0 commit comments