diff options
-rwxr-xr-x | morphlib/writeexts.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/morphlib/writeexts.py b/morphlib/writeexts.py index 23b876ae..6c28f7fb 100755 --- a/morphlib/writeexts.py +++ b/morphlib/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' |