mirror of
https://github.com/rocky-linux/createhdds.git
synced 2024-12-22 10:08:30 +00:00
Provide alternative function to detect cpu arch
This commit is contained in:
parent
f6bfd46d04
commit
094371b749
@ -42,6 +42,7 @@ from six.moves.urllib.request import urlopen
|
|||||||
# directory.
|
# directory.
|
||||||
SCRIPTDIR = os.path.abspath(os.path.dirname(sys.argv[0]))
|
SCRIPTDIR = os.path.abspath(os.path.dirname(sys.argv[0]))
|
||||||
CPUARCH = platform.processor()
|
CPUARCH = platform.processor()
|
||||||
|
if CPUARCH == '' : CPUARCH = platform.machine()
|
||||||
logger = logging.getLogger('createhdds')
|
logger = logging.getLogger('createhdds')
|
||||||
|
|
||||||
def handle_size(size):
|
def handle_size(size):
|
||||||
|
Loading…
Reference in New Issue
Block a user