summaryrefslogtreecommitdiff
path: root/writeexts.py
diff options
context:
space:
mode:
Diffstat (limited to 'writeexts.py')
-rwxr-xr-xwriteexts.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/writeexts.py b/writeexts.py
index 23b876ae..6c28f7fb 100755
--- a/writeexts.py
+++ b/writeexts.py
@@ -223,9 +223,13 @@ class WriteExtension(cliapp.Application):
'''
+ def is_x86(arch):
+ return (arch == 'x86_64' or
+ (arch.startswith('i') and arch.endswith('86')))
+
value = os.environ.get('BOOTLOADER', 'auto')
if value == 'auto':
- if os.uname()[-1] in ['x86_32', 'x86_64']:
+ if ix_x86(os.uname()[-1]):
value = 'yes'
else:
value = 'no'