Commit 17c7444f authored by Vitaly Lipatov's avatar Vitaly Lipatov

distro_info: use getconf LONG_BIT for get_bit_size

parent 9d8b86e2
...@@ -516,9 +516,15 @@ get_distro_arch() ...@@ -516,9 +516,15 @@ get_distro_arch()
get_bit_size() get_bit_size()
{ {
local DIST_BIT local DIST_BIT
# Check if we are running on 64bit platform, seems like a workaround for now...
DIST_BIT="$(get_uname -m)" DIST_BIT="$(getconf LONG_BIT 2>/dev/null)"
case "$DIST_BIT" in if [ -n "$DIST_BIT" ] ; then
echo "$DIST_BIT"
exit
fi
# Try detect arch size by arch name
case "$(get_uname -m)" in
'amd64' | 'ia64' | 'x86_64' | 'ppc64') 'amd64' | 'ia64' | 'x86_64' | 'ppc64')
DIST_BIT="64" DIST_BIT="64"
;; ;;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment