B-AROL-O / ble-testsuite

Automated test suite for Bluetooth Low Energy devices
https://ble-testsuite.netlify.app
MIT License
1 stars 1 forks source link

[BUG]: install-freisa.sh terminates if AF_BLUETOOTH is not supported #39

Closed gmacario closed 5 months ago

gmacario commented 5 months ago

Description of the bug

See below

Steps To Reproduce

  1. Launch the script inside a LXC container with no AF_BLUETOOTH installed
apt install -y curl
curl -fsSL https://ble-testsuite.netlify.app/install-freisa.sh | sh
  1. Verify that the script terminates prematurely
...
Setting up tailscale (1.58.2) ...
Created symlink /etc/systemd/system/multi-user.target.wants/tailscaled.service -> /lib/systemd/system/tailscaled.service.
+ [ false = true ]
+ set +x
Installation complete! Log in to start using Tailscale by running:

tailscale up
Linux arolto-ubnt201 6.5.11-7-pve #1 SMP PREEMPT_DYNAMIC PMX 6.5.11-7 (2023-12-05T09:44Z) x86_64 x86_64 x86_64 GNU/Linux
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 22.04.3 LTS
Release:        22.04
Codename:       jammy
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version         Architecture Description
+++-==============-===============-============-=================================
ii  bluez          5.64-0ubuntu1.1 amd64        Bluetooth tools and daemons
192.168.69.146 192.168.69.147 
Can't open HCI socket.: Address family not supported by protocol
root@arolto-ubnt201:~#
  1. Verify that Docker has not been installed
root@arolto-ubnt201:~# docker version
Command 'docker' not found, but can be installed with:
apt install podman-docker  # version 3.4.4+ds1-1ubuntu1.22.04.2, or
apt install docker.io      # version 24.0.5-0ubuntu1~22.04.1
root@arolto-ubnt201:~#

Additional Information

See https://man7.org/linux/man-pages/man7/address_families.7.html