mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
Merge pull request #3637 from holta/apt_install_ansible-core_tighter
"32-bit" OS's more resilient: Verify that apt package 'ansible-core' is in fact available (equivalent to testing for Debian 12+ but safer!)
This commit is contained in:
commit
1b68242409
1 changed files with 4 additions and 1 deletions
|
@ -206,7 +206,10 @@ $APT_PATH/apt -y install python3-venv
|
|||
# to force boot its 32-bit kernel; its 64-bit kernel should work too!)
|
||||
# IN SHORT: This ugly hack appears sufficient for all "32-bit" Bookworm+ OS's
|
||||
# (similar to 32-bit Debian 12 on AMD/Intel a month ago, i.e. PR #3617).
|
||||
if ! dpkg --print-architecture | grep -q 64 && ! grep -q 11 /etc/debian_version; then
|
||||
# 2023-09-10: Even safer test than querying for Debian 12+ -- verify that apt
|
||||
# package ansible-core is truly available:
|
||||
if ! dpkg --print-architecture | grep -q 64 && apt-cache show ansible-core > /dev/null; then
|
||||
#if ! dpkg --print-architecture | grep -q 64 && ! grep -q ^11 /etc/debian_version; then
|
||||
#if [[ $(dpkg --print-architecture) == i386 ]]; then
|
||||
# 2023-08-10: Quick+Dirty (BRUTE FORCE) on legacy 32-bit i386 avoids #3547
|
||||
# rust/wheels/cryptography compiling mess! DEBIAN 12+ OR SIMILAR REQUIRED!
|
||||
|
|
Loading…
Add table
Reference in a new issue