diff options
author | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2013-05-08 13:27:21 +0100 |
---|---|---|
committer | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2013-05-08 13:27:21 +0100 |
commit | b4db5cdc3a24166954739dac29c78e541b908613 (patch) | |
tree | be542638a4baa7b79e0d2c0e45a6dad3b2329076 /morphlib/writeexts.py | |
parent | af8631ec28ff9e060ae54f06db75a06ac872936b (diff) | |
download | morph-b4db5cdc3a24166954739dac29c78e541b908613.tar.gz |
Fix recognition of x86-32
Reported-by: Richard Maw
Diffstat (limited to 'morphlib/writeexts.py')
-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' |