Openhabian Boot-Loop

  • Platform information:
    • Hardware: Raspberry Pi 3B+/32GB SD-Card
    • OS: Openhabian (Raspberry PI OS LITE) - Tried 32 and 64 bit
    • Java Runtime Environment: Delivired with Openhabian (via Raspberry Pi Imager)
    • openHAB version: 3
  • Issue of the topic:

I set up a SD card using the Raspberry Pi Imager with Openhabian, got this SD-Card put it in my Pi and it goes into a boot loop. At first boot it runs up to the stage “First-Boot: Setting up Ethernet - OK” (I do not have the exact text), then reboots. From second boot it shows “First-Boot: Setting up Ethernet - Failed”, some info that the public internet cannot be reached then continues up to the NTP configuration after then reboots… runs up to “First-Boot NTP Configuration”, reboots, …

I am using a wired connection to my network, doublechecked the cable, switch configuration, …

I have tried different SD-Cards, I tried the 32 and 64 bit version of Openhabian, with no success.

I can install a “normal” Raspbian on that specific Pi, so I can say that the Hardware is OK.

Provide a full debug level log please, see debug guide.

Hi,

could you please point me to the debug guide?

To be clear: I cannot access the Pi… the only thing I can try is to mount the SD-Card on another Pi and hopefully can extract some logs.

OK, here is the log:

2022-09-22_01:24:00_BST [openHABian] Starting the openHABian initial setup.
2022-09-22_01:24:00_BST [openHABian] Storing configuration... OK
2022-09-22_01:24:00_BST [openHABian] Enable maximum debugging output
+ rfkill unblock wifi
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -n '2022-09-22_01:24:00_BST [openHABian] Starting webserver with installation log... '
2022-09-22_01:24:00_BST [openHABian] Starting webserver with installation log... ++ command -v python3
+ [[ -x /usr/bin/python3 ]]
+ bash /boot/webserver.bash start
+ sleep 5
++ ps -ef
++ pgrep python3
+ isWebRunning=808
+ [[ -n 808 ]]
+ echo OK
OK
+ defaultUserAndGroup=openhabian
+ userName=openhabian
+ groupName=openhabian
+ is_raspbian
+ [[ '' == \r\a\s\p\b\i\a\n ]]
++ cat /etc/os-release
+ [[ PRETTY_NAME="Raspbian GNU/Linux 11 (bullseye)"
NAME="Raspbian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs" =~ Raspbian ]]
+ return 0
+ rm -f /etc/sudoers.d/010_pi-nopasswd
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -n '2022-09-22_01:24:05_BST [openHABian] Changing default username and password... '
2022-09-22_01:24:05_BST [openHABian] Changing default username and password... + [[ -v openhabian ]]
+ id openhabian
+ id openhabian
+ echo SKIPPED
SKIPPED
+ echo 'watch cat /boot/first-boot.log'
+ [[ -z '' ]]
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -n '2022-09-22_01:24:05_BST [openHABian] Setting up Ethernet connection... '
2022-09-22_01:24:05_BST [openHABian] Setting up Ethernet connection... + grep -qs up /sys/class/net/eth0/operstate
+ echo OK
OK
+ running_in_docker
+ [[ -n '' ]]
+ grep -qs 'docker\|lxc' /proc/1/cgroup
+ [[ -f /.dockerenv ]]
+ return 1
+ tryUntil 'ping -c1 8.8.8.8 &> /dev/null || curl --silent --head http://www.openhab.org/docs |& grep -qs '\''HTTP/1.1 200 OK'\''' 5 1
+ local cmd
+ local attempts
+ local interval
+ cmd='ping -c1 8.8.8.8 &> /dev/null || curl --silent --head http://www.openhab.org/docs |& grep -qs '\''HTTP/1.1 200 OK'\'''
+ attempts=5
+ interval=1
+ [[ 5 -le 0 ]]
+ cond_echo '\nexecuting ping -c1 8.8.8.8 &> /dev/null || curl --silent --head http://www.openhab.org/docs |& grep -qs '\''HTTP/1.1 200 OK'\'' \c'
+ [[ -z 1 ]]
+ eval 'ping -c1 8.8.8.8 &> /dev/null || curl --silent --head http://www.openhab.org/docs |& grep -qs '\''HTTP/1.1 200 OK'\'''
++ ping -c1 8.8.8.8
++ curl --silent --head http://www.openhab.org/docs
++ grep -qs 'HTTP/1.1 200 OK'
+ out=1
+ [[ 1 -eq 0 ]]
+ sleep 1
+ [[ -z 1 ]]
+ (( attempts-=1 ))
+ [[ 4 -le 0 ]]
+ cond_echo '\nexecuting ping -c1 8.8.8.8 &> /dev/null || curl --silent --head http://www.openhab.org/docs |& grep -qs '\''HTTP/1.1 200 OK'\'' \c'
+ [[ -z 1 ]]
+ eval 'ping -c1 8.8.8.8 &> /dev/null || curl --silent --head http://www.openhab.org/docs |& grep -qs '\''HTTP/1.1 200 OK'\'''
++ ping -c1 8.8.8.8
++ curl --silent --head http://www.openhab.org/docs
++ grep -qs 'HTTP/1.1 200 OK'
+ out=1
+ [[ 1 -eq 0 ]]
+ sleep 1
+ [[ -z 1 ]]
+ (( attempts-=1 ))
+ [[ 3 -le 0 ]]
+ cond_echo '\nexecuting ping -c1 8.8.8.8 &> /dev/null || curl --silent --head http://www.openhab.org/docs |& grep -qs '\''HTTP/1.1 200 OK'\'' \c'
+ [[ -z 1 ]]
+ eval 'ping -c1 8.8.8.8 &> /dev/null || curl --silent --head http://www.openhab.org/docs |& grep -qs '\''HTTP/1.1 200 OK'\'''
++ ping -c1 8.8.8.8
++ curl --silent --head http://www.openhab.org/docs
++ grep -qs 'HTTP/1.1 200 OK'
+ out=1
+ [[ 1 -eq 0 ]]
+ sleep 1
+ [[ -z 1 ]]
+ (( attempts-=1 ))
+ [[ 2 -le 0 ]]
+ cond_echo '\nexecuting ping -c1 8.8.8.8 &> /dev/null || curl --silent --head http://www.openhab.org/docs |& grep -qs '\''HTTP/1.1 200 OK'\'' \c'
+ [[ -z 1 ]]
+ eval 'ping -c1 8.8.8.8 &> /dev/null || curl --silent --head http://www.openhab.org/docs |& grep -qs '\''HTTP/1.1 200 OK'\'''
++ ping -c1 8.8.8.8
++ curl --silent --head http://www.openhab.org/docs
++ grep -qs 'HTTP/1.1 200 OK'
+ out=1
+ [[ 1 -eq 0 ]]
+ sleep 1
+ [[ -z 1 ]]
+ (( attempts-=1 ))
+ [[ 1 -le 0 ]]
+ cond_echo '\nexecuting ping -c1 8.8.8.8 &> /dev/null || curl --silent --head http://www.openhab.org/docs |& grep -qs '\''HTTP/1.1 200 OK'\'' \c'
+ [[ -z 1 ]]
+ eval 'ping -c1 8.8.8.8 &> /dev/null || curl --silent --head http://www.openhab.org/docs |& grep -qs '\''HTTP/1.1 200 OK'\'''
++ ping -c1 8.8.8.8
++ curl --silent --head http://www.openhab.org/docs
++ grep -qs 'HTTP/1.1 200 OK'
+ out=1
+ [[ 1 -eq 0 ]]
+ sleep 1
+ [[ -z 1 ]]
+ (( attempts-=1 ))
+ [[ 0 -le 0 ]]
+ [[ -z 1 ]]
+ return 0
+ [[ enable == \e\n\a\b\l\e ]]
++ command -v comitup
+ [[ -x '' ]]
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -n '2022-09-22_01:24:26_BST [openHABian] Installing comitup hotspot (will reboot after)... '
2022-09-22_01:24:26_BST [openHABian] Installing comitup hotspot (will reboot after)... + setup_hotspot install
+ [[ install == \i\n\s\t\a\l\l ]]
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -n '2022-09-22_01:24:26_BST [openHABian] Installing Comitup hotspot... '
2022-09-22_01:24:26_BST [openHABian] Installing Comitup hotspot... + apt install --yes network-manager
+ echo 'deb http://davesteele.github.io/comitup/repo comitup main'
+ cond_redirect apt-get --quiet update
+ [[ -n 1 ]]
+ apt-get --quiet update
+ return 0
+ cp /opt/openhabian/includes/comitup.conf /etc/comitup.conf
+ sed -i -e 's|ap_password:.*$|ap_password: openhabian|g' /etc/comitup.conf
+ cond_redirect apt install --yes -o Dpkg::Options::=--force-confdef comitup
+ [[ -n 1 ]]
+ apt install --yes -o Dpkg::Options::=--force-confdef comitup
+ return 0
+ echo OK
OK
+ echo 'denyinterfaces wlan0 eth0'
+ sed -i '3 i dhcp=internal' /etc/NetworkManager/NetworkManager.conf
+ install -m 644 includes/generic/100-disable-wifi-mac-randomization.conf /etc/NetworkManager/conf.d/
install: cannot stat 'includes/generic/100-disable-wifi-mac-randomization.conf': No such file or directory
+ cp /opt/openhabian/includes/interfaces /etc/network/
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo '2023-06-07_23:49:29_BST [openHABian] hotspot software installed. Rebooting your system to make it take effect!'
2023-06-07_23:49:29_BST [openHABian] hotspot software installed. Rebooting your system to make it take effect!
+ reboot

Then the next boot:

2023-06-07_23:49:47_BST [openHABian] Starting the openHABian initial setup.
2023-06-07_23:49:47_BST [openHABian] Storing configuration... OK
2023-06-07_23:49:47_BST [openHABian] Enable maximum debugging output
+ rfkill unblock wifi
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -n '2023-06-07_23:49:47_BST [openHABian] Starting webserver with installation log... '
2023-06-07_23:49:47_BST [openHABian] Starting webserver with installation log... ++ command -v python3
+ [[ -x /usr/bin/python3 ]]
+ bash /boot/webserver.bash start
+ sleep 5
++ ps -ef
++ pgrep python3
+ isWebRunning=562
+ [[ -n 562 ]]
+ echo OK
OK
+ defaultUserAndGroup=openhabian
+ userName=openhabian
+ groupName=openhabian
+ is_raspbian
+ [[ '' == \r\a\s\p\b\i\a\n ]]
++ cat /etc/os-release
+ [[ PRETTY_NAME="Raspbian GNU/Linux 11 (bullseye)"
NAME="Raspbian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs" =~ Raspbian ]]
+ return 0
+ rm -f /etc/sudoers.d/010_pi-nopasswd
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -n '2023-06-07_23:49:52_BST [openHABian] Changing default username and password... '
2023-06-07_23:49:52_BST [openHABian] Changing default username and password... + [[ -v openhabian ]]
+ id openhabian
+ id openhabian
+ echo SKIPPED
SKIPPED
+ echo 'watch cat /boot/first-boot.log'
+ [[ -z '' ]]
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -n '2023-06-07_23:49:52_BST [openHABian] Setting up Ethernet connection... '
2023-06-07_23:49:52_BST [openHABian] Setting up Ethernet connection... + grep -qs up /sys/class/net/eth0/operstate
+ echo FAILED
FAILED
+ running_in_docker
+ [[ -n '' ]]
+ grep -qs 'docker\|lxc' /proc/1/cgroup
+ [[ -f /.dockerenv ]]
+ return 1
+ tryUntil 'ping -c1 8.8.8.8 &> /dev/null || curl --silent --head http://www.openhab.org/docs |& grep -qs '\''HTTP/1.1 200 OK'\''' 5 1
+ local cmd
+ local attempts
+ local interval
+ cmd='ping -c1 8.8.8.8 &> /dev/null || curl --silent --head http://www.openhab.org/docs |& grep -qs '\''HTTP/1.1 200 OK'\'''
+ attempts=5
+ interval=1
+ [[ 5 -le 0 ]]
+ cond_echo '\nexecuting ping -c1 8.8.8.8 &> /dev/null || curl --silent --head http://www.openhab.org/docs |& grep -qs '\''HTTP/1.1 200 OK'\'' \c'
+ [[ -z 1 ]]
+ eval 'ping -c1 8.8.8.8 &> /dev/null || curl --silent --head http://www.openhab.org/docs |& grep -qs '\''HTTP/1.1 200 OK'\'''
++ ping -c1 8.8.8.8
++ curl --silent --head http://www.openhab.org/docs
++ grep -qs 'HTTP/1.1 200 OK'
+ out=1
+ [[ 1 -eq 0 ]]
+ sleep 1
+ [[ -z 1 ]]
+ (( attempts-=1 ))
+ [[ 4 -le 0 ]]
+ cond_echo '\nexecuting ping -c1 8.8.8.8 &> /dev/null || curl --silent --head http://www.openhab.org/docs |& grep -qs '\''HTTP/1.1 200 OK'\'' \c'
+ [[ -z 1 ]]
+ eval 'ping -c1 8.8.8.8 &> /dev/null || curl --silent --head http://www.openhab.org/docs |& grep -qs '\''HTTP/1.1 200 OK'\'''
++ ping -c1 8.8.8.8
++ curl --silent --head http://www.openhab.org/docs
++ grep -qs 'HTTP/1.1 200 OK'
+ out=1
+ [[ 1 -eq 0 ]]
+ sleep 1
+ [[ -z 1 ]]
+ (( attempts-=1 ))
+ [[ 3 -le 0 ]]
+ cond_echo '\nexecuting ping -c1 8.8.8.8 &> /dev/null || curl --silent --head http://www.openhab.org/docs |& grep -qs '\''HTTP/1.1 200 OK'\'' \c'
+ [[ -z 1 ]]
+ eval 'ping -c1 8.8.8.8 &> /dev/null || curl --silent --head http://www.openhab.org/docs |& grep -qs '\''HTTP/1.1 200 OK'\'''
++ ping -c1 8.8.8.8
++ curl --silent --head http://www.openhab.org/docs
++ grep -qs 'HTTP/1.1 200 OK'
+ out=1
+ [[ 1 -eq 0 ]]
+ sleep 1
+ [[ -z 1 ]]
+ (( attempts-=1 ))
+ [[ 2 -le 0 ]]
+ cond_echo '\nexecuting ping -c1 8.8.8.8 &> /dev/null || curl --silent --head http://www.openhab.org/docs |& grep -qs '\''HTTP/1.1 200 OK'\'' \c'
+ [[ -z 1 ]]
+ eval 'ping -c1 8.8.8.8 &> /dev/null || curl --silent --head http://www.openhab.org/docs |& grep -qs '\''HTTP/1.1 200 OK'\'''
++ ping -c1 8.8.8.8
++ curl --silent --head http://www.openhab.org/docs
++ grep -qs 'HTTP/1.1 200 OK'
+ out=1
+ [[ 1 -eq 0 ]]
+ sleep 1
+ [[ -z 1 ]]
+ (( attempts-=1 ))
+ [[ 1 -le 0 ]]
+ cond_echo '\nexecuting ping -c1 8.8.8.8 &> /dev/null || curl --silent --head http://www.openhab.org/docs |& grep -qs '\''HTTP/1.1 200 OK'\'' \c'
+ [[ -z 1 ]]
+ eval 'ping -c1 8.8.8.8 &> /dev/null || curl --silent --head http://www.openhab.org/docs |& grep -qs '\''HTTP/1.1 200 OK'\'''
++ ping -c1 8.8.8.8
++ curl --silent --head http://www.openhab.org/docs
++ grep -qs 'HTTP/1.1 200 OK'
+ out=1
+ [[ 1 -eq 0 ]]
+ sleep 1
+ [[ -z 1 ]]
+ (( attempts-=1 ))
+ [[ 0 -le 0 ]]
+ [[ -z 1 ]]
+ return 0
+ [[ enable == \e\n\a\b\l\e ]]
++ command -v comitup
+ [[ -x /usr/sbin/comitup ]]
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -n '2023-06-07_23:49:58_BST [openHABian] Ensuring network connectivity... '
2023-06-07_23:49:58_BST [openHABian] Ensuring network connectivity... + running_in_docker
+ [[ -n '' ]]
+ grep -qs 'docker\|lxc' /proc/1/cgroup
+ [[ -f /.dockerenv ]]
+ return 1
+ tryUntil 'ping -c1 8.8.8.8 &> /dev/null || curl --silent --head http://www.openhab.org/docs |& grep -qs '\''HTTP/1.1 200 OK'\''' 5 1
+ local cmd
+ local attempts
+ local interval
+ cmd='ping -c1 8.8.8.8 &> /dev/null || curl --silent --head http://www.openhab.org/docs |& grep -qs '\''HTTP/1.1 200 OK'\'''
+ attempts=5
+ interval=1
+ [[ 5 -le 0 ]]
+ cond_echo '\nexecuting ping -c1 8.8.8.8 &> /dev/null || curl --silent --head http://www.openhab.org/docs |& grep -qs '\''HTTP/1.1 200 OK'\'' \c'
+ [[ -z 1 ]]
+ eval 'ping -c1 8.8.8.8 &> /dev/null || curl --silent --head http://www.openhab.org/docs |& grep -qs '\''HTTP/1.1 200 OK'\'''
++ ping -c1 8.8.8.8
++ curl --silent --head http://www.openhab.org/docs
++ grep -qs 'HTTP/1.1 200 OK'
+ out=1
+ [[ 1 -eq 0 ]]
+ sleep 1
+ [[ -z 1 ]]
+ (( attempts-=1 ))
+ [[ 4 -le 0 ]]
+ cond_echo '\nexecuting ping -c1 8.8.8.8 &> /dev/null || curl --silent --head http://www.openhab.org/docs |& grep -qs '\''HTTP/1.1 200 OK'\'' \c'
+ [[ -z 1 ]]
+ eval 'ping -c1 8.8.8.8 &> /dev/null || curl --silent --head http://www.openhab.org/docs |& grep -qs '\''HTTP/1.1 200 OK'\'''
++ ping -c1 8.8.8.8
++ curl --silent --head http://www.openhab.org/docs
++ grep -qs 'HTTP/1.1 200 OK'
+ out=1
+ [[ 1 -eq 0 ]]
+ sleep 1
+ [[ -z 1 ]]
+ (( attempts-=1 ))
+ [[ 3 -le 0 ]]
+ cond_echo '\nexecuting ping -c1 8.8.8.8 &> /dev/null || curl --silent --head http://www.openhab.org/docs |& grep -qs '\''HTTP/1.1 200 OK'\'' \c'
+ [[ -z 1 ]]
+ eval 'ping -c1 8.8.8.8 &> /dev/null || curl --silent --head http://www.openhab.org/docs |& grep -qs '\''HTTP/1.1 200 OK'\'''
++ ping -c1 8.8.8.8
++ curl --silent --head http://www.openhab.org/docs
++ grep -qs 'HTTP/1.1 200 OK'
+ out=1
+ [[ 1 -eq 0 ]]
+ sleep 1
+ [[ -z 1 ]]
+ (( attempts-=1 ))
+ [[ 2 -le 0 ]]
+ cond_echo '\nexecuting ping -c1 8.8.8.8 &> /dev/null || curl --silent --head http://www.openhab.org/docs |& grep -qs '\''HTTP/1.1 200 OK'\'' \c'
+ [[ -z 1 ]]
+ eval 'ping -c1 8.8.8.8 &> /dev/null || curl --silent --head http://www.openhab.org/docs |& grep -qs '\''HTTP/1.1 200 OK'\'''
++ ping -c1 8.8.8.8
++ curl --silent --head http://www.openhab.org/docs
++ grep -qs 'HTTP/1.1 200 OK'
+ out=1
+ [[ 1 -eq 0 ]]
+ sleep 1
+ [[ -z 1 ]]
+ (( attempts-=1 ))
+ [[ 1 -le 0 ]]
+ cond_echo '\nexecuting ping -c1 8.8.8.8 &> /dev/null || curl --silent --head http://www.openhab.org/docs |& grep -qs '\''HTTP/1.1 200 OK'\'' \c'
+ [[ -z 1 ]]
+ eval 'ping -c1 8.8.8.8 &> /dev/null || curl --silent --head http://www.openhab.org/docs |& grep -qs '\''HTTP/1.1 200 OK'\'''
++ ping -c1 8.8.8.8
++ curl --silent --head http://www.openhab.org/docs
++ grep -qs 'HTTP/1.1 200 OK'
+ out=1
+ [[ 1 -eq 0 ]]
+ sleep 1
+ [[ -z 1 ]]
+ (( attempts-=1 ))
+ [[ 0 -le 0 ]]
+ [[ -z 1 ]]
+ return 0
+ echo FAILED
FAILED
+ grep -qs openHABian /etc/wpa_supplicant/wpa_supplicant.conf
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo '2023-06-07_23:50:03_BST [openHABian] The public internet is not reachable. Please check your local network environment.'
2023-06-07_23:50:03_BST [openHABian] The public internet is not reachable. Please check your local network environment.
++ grep ap_name: /etc/comitup.conf
++ cut '-d ' -f2
+ echo '                          We have launched a publicly accessible hotspot named openHABian-<n>.'
                          We have launched a publicly accessible hotspot named openHABian-<n>.
+ echo '                          Use a device to connect and go to http://raspberrypi.local or http://10.41.0.1/'
                          Use a device to connect and go to http://raspberrypi.local or http://10.41.0.1/
+ echo '                          and select the WiFi network you want to connect your openHABian system to.'
                          and select the WiFi network you want to connect your openHABian system to.
+ echo '                          After about an hour, we will continue trying to get your system installed,'
                          After about an hour, we will continue trying to get your system installed,
+ echo '                          but without proper Internet connectivity this is not guaranteed to work.'
                          but without proper Internet connectivity this is not guaranteed to work.
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -n '2023-06-07_23:50:03_BST [openHABian] Waiting for dpkg/apt to get ready... '
2023-06-07_23:50:03_BST [openHABian] Waiting for dpkg/apt to get ready... + wait_for_apt_to_be_ready
+ local attempts
+ local interval
+ local pid
+ attempts=10
+ interval=1
+ [[ 10 -le 0 ]]
+ pid=638
+ apt-get update
+++ tail --pid=638 -f /dev/null
++ eval ''
+ [[ '' -eq 0 ]]
+ return 0
+ echo OK
OK
++ dpkg -s raspberrypi-kernel
++ grep 'Version:[[:space:]]'
+ firmwareBefore='Version: 1:1.20221104-1'
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -n '2023-06-07_23:50:10_BST [openHABian] Updating repositories and upgrading installed packages... '
2023-06-07_23:50:10_BST [openHABian] Updating repositories and upgrading installed packages... + apt-get install --fix-broken --yes
+++ apt-get --yes upgrade
++ eval ''
+ [[ '' -eq 100 ]]
++ dpkg -s raspberrypi-kernel
++ grep 'Version:[[:space:]]'
+ [[ Version: 1:1.20221104-1 != \V\e\r\s\i\o\n\:\ \1\:\1\.\2\0\2\2\1\1\0\4\-\1 ]]
+ echo OK
OK
++ command -v python3
+ [[ -x /usr/bin/python3 ]]
+ bash /boot/webserver.bash reinsure_running
++ command -v git
+ [[ -x '' ]]
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -n '2023-06-07_23:50:16_BST [openHABian] Installing git package... '
2023-06-07_23:50:16_BST [openHABian] Installing git package... + apt-get install --yes git
+ echo OK
OK
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -n '2023-06-07_23:50:36_BST [openHABian] Updating myself from https://github.com/openhab/openhabian, openHAB3 branch... '
2023-06-07_23:50:36_BST [openHABian] Updating myself from https://github.com/openhab/openhabian, openHAB3 branch... +++ openhabian_update openHAB3
++ eval ''
+ [[ '' -eq 0 ]]
+ echo OK
OK
+ ln -sfn /opt/openhabian/openhabian-setup.sh /usr/local/bin/openhabian-config
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo '2023-06-07_23:50:36_BST [openHABian] Starting execution of '\''openhabian-config unattended'\''... OK'
2023-06-07_23:50:36_BST [openHABian] Starting execution of 'openhabian-config unattended'... OK
+ openhabian-config unattended
2023-06-07_23:50:36_BST [openHABian] Checking for root privileges... OK
+ export UNATTENDED SILENT DEBUGMAX INTERACTIVE
+ for shfile in "${BASEDIR:-/opt/openhabian}"/functions/*.bash
+ source /opt/openhabian/functions/auth.bash
+ for shfile in "${BASEDIR:-/opt/openhabian}"/functions/*.bash
+ source /opt/openhabian/functions/backup.bash
+ for shfile in "${BASEDIR:-/opt/openhabian}"/functions/*.bash
+ source /opt/openhabian/functions/config.bash
+ for shfile in "${BASEDIR:-/opt/openhabian}"/functions/*.bash
+ source /opt/openhabian/functions/ext-storage.bash
+ for shfile in "${BASEDIR:-/opt/openhabian}"/functions/*.bash
+ source /opt/openhabian/functions/find.bash
+ for shfile in "${BASEDIR:-/opt/openhabian}"/functions/*.bash
+ source /opt/openhabian/functions/habapp.bash
+ for shfile in "${BASEDIR:-/opt/openhabian}"/functions/*.bash
+ source /opt/openhabian/functions/helpers.bash
++ ESC='\033['
++ COL_DEF='\033[39;49;00m'
++ COL_RED='\033[31;01m'
++ COL_GREEN='\033[32;01m'
++ COL_YELLOW='\033[33;01m'
++ COL_BLUE='\033[34;01m'
++ COL_MAGENTA='\033[35;01m'
++ COL_CYAN='\033[36;01m'
++ COL_LGRAY='\033[37;01m'
++ COL_DGRAY='\033[90;01m'
++ export COL_DEF COL_RED COL_GREEN COL_YELLOW COL_BLUE COL_MAGENTA COL_CYAN COL_LGRAY COL_DGRAY
+ for shfile in "${BASEDIR:-/opt/openhabian}"/functions/*.bash
+ source /opt/openhabian/functions/influxdb+grafana.bash
+ for shfile in "${BASEDIR:-/opt/openhabian}"/functions/*.bash
+ source /opt/openhabian/functions/java-jre.bash
+ for shfile in "${BASEDIR:-/opt/openhabian}"/functions/*.bash
+ source /opt/openhabian/functions/menu.bash
+ for shfile in "${BASEDIR:-/opt/openhabian}"/functions/*.bash
+ source /opt/openhabian/functions/nodejs-apps.bash
+ for shfile in "${BASEDIR:-/opt/openhabian}"/functions/*.bash
+ source /opt/openhabian/functions/openhab.bash
+ for shfile in "${BASEDIR:-/opt/openhabian}"/functions/*.bash
+ source /opt/openhabian/functions/openhabian.bash
+ for shfile in "${BASEDIR:-/opt/openhabian}"/functions/*.bash
+ source /opt/openhabian/functions/packages.bash
+ for shfile in "${BASEDIR:-/opt/openhabian}"/functions/*.bash
+ source /opt/openhabian/functions/system.bash
+ for shfile in "${BASEDIR:-/opt/openhabian}"/functions/*.bash
+ source /opt/openhabian/functions/vpn.bash
+ for shfile in "${BASEDIR:-/opt/openhabian}"/functions/*.bash
+ source /opt/openhabian/functions/wifi.bash
+ for shfile in "${BASEDIR:-/opt/openhabian}"/functions/*.bash
+ source /opt/openhabian/functions/zram.bash
++ pwd
+ OLDWD=/
+ cd /opt
+ update_openhabian_conf
+ local configFile=/etc/openhabian.conf
+ local referenceConfig=/opt/openhabian/build-image/openhabian.conf
+ cp /etc/openhabian.conf /etc/openhabian.conf.BAK
+ read -r line
+ [[ # Origin: openhabian.conf =~ ^(#)?[a-zA-Z] ]]
+ echo '# Origin: openhabian.conf'
+ read -r line
+ [[ # =~ ^(#)?[a-zA-Z] ]]
+ echo '#'
+ read -r line
+ [[ # Modify your openHABian settings =~ ^(#)?[a-zA-Z] ]]
+ echo '# Modify your openHABian settings'
+ read -r line
+ [[ # Handle with care, only touch if you need to! =~ ^(#)?[a-zA-Z] ]]
+ echo '# Handle with care, only touch if you need to!'
+ read -r line
+ [[ # This file will only be used on unattended initial install. =~ ^(#)?[a-zA-Z] ]]
+ echo '# This file will only be used on unattended initial install.'
+ read -r line
+ [[ # If you want to change anything after unattended install completed, use menu in openhabian-config. =~ ^(#)?[a-zA-Z] ]]
+ echo '# If you want to change anything after unattended install completed, use menu in openhabian-config.'
+ read -r line
+ [[ '' =~ ^(#)?[a-zA-Z] ]]
+ echo ''
+ read -r line
+ [[ # ATTENTION: to disable an option a line MUST be of the format '# option=value' =~ ^(#)?[a-zA-Z] ]]
+ echo '# ATTENTION: to disable an option a line MUST be of the format '\''# option=value'\'''
+ read -r line
+ [[ # KEEP THE SPACE IT IS IMPORTANT !! =~ ^(#)?[a-zA-Z] ]]
+ echo '# KEEP THE SPACE IT IS IMPORTANT !!'
+ read -r line
+ [[ '' =~ ^(#)?[a-zA-Z] ]]
+ echo ''
+ read -r line
+ [[ # Hostname to set this one to =~ ^(#)?[a-zA-Z] ]]
+ echo '# Hostname to set this one to'
+ read -r line
+ [[ hostname=openhabian =~ ^(#)?[a-zA-Z] ]]
+ parsed=hostname=openhabian
+ [[ hostname=openhabian =~ ^#[a-zA-Z] ]]
++ echo hostname=openhabian
++ cut -d= -f1
+ param=hostname
+ [[ -v hostname ]]
+ [[ openhabian == *\ * ]]
+ echo hostname=openhabian
+ read -r line
+ [[ # if it exists, the default user (with its working environment) will be renamed to this username given here ... =~ ^(#)?[a-zA-Z] ]]
+ echo '# if it exists, the default user (with its working environment) will be renamed to this username given here ...'
+ read -r line
+ [[ username=openhabian =~ ^(#)?[a-zA-Z] ]]
+ parsed=username=openhabian
+ [[ username=openhabian =~ ^#[a-zA-Z] ]]
++ echo username=openhabian
++ cut -d= -f1
+ param=username
+ [[ -v username ]]
+ [[ openhabian == *\ * ]]
+ echo username=openhabian
+ read -r line
+ [[ # ... and given this password. The password will be removed from this file after completion for security reasons. =~ ^(#)?[a-zA-Z] ]]
+ echo '# ... and given this password. The password will be removed from this file after completion for security reasons.'
+ read -r line
+ [[ userpw=openhabian =~ ^(#)?[a-zA-Z] ]]
+ parsed=userpw=openhabian
+ [[ userpw=openhabian =~ ^#[a-zA-Z] ]]
++ echo userpw=openhabian
++ cut -d= -f1
+ param=userpw
+ [[ -v userpw ]]
+ [[ openhabian == *\ * ]]
+ echo userpw=openhabian
+ read -r line
+ [[ # set this to download a SSH key and authorize the owner to login as the admin user =~ ^(#)?[a-zA-Z] ]]
+ echo '# set this to download a SSH key and authorize the owner to login as the admin user'
+ read -r line
+ [[ adminkeyurl="" =~ ^(#)?[a-zA-Z] ]]
+ parsed='adminkeyurl=""'
+ [[ adminkeyurl="" =~ ^#[a-zA-Z] ]]
++ echo 'adminkeyurl=""'
++ cut -d= -f1
+ param=adminkeyurl
+ [[ -v adminkeyurl ]]
+ [[ '' == *\ * ]]
+ echo adminkeyurl=
+ read -r line
+ [[ '' =~ ^(#)?[a-zA-Z] ]]
+ echo ''
+ read -r line
+ [[ # Language and timezone. See Debian documentation for valid values. =~ ^(#)?[a-zA-Z] ]]
+ echo '# Language and timezone. See Debian documentation for valid values.'
+ read -r line
+ [[ timezone=Europe/Berlin =~ ^(#)?[a-zA-Z] ]]
+ parsed=timezone=Europe/Berlin
+ [[ timezone=Europe/Berlin =~ ^#[a-zA-Z] ]]
++ echo timezone=Europe/Berlin
++ cut -d= -f1
+ param=timezone
+ [[ -v timezone ]]
+ [[ Europe/Berlin == *\ * ]]
+ echo timezone=Europe/Berlin
+ read -r line
+ [[ locales="en_US.UTF-8 de_DE.UTF-8" =~ ^(#)?[a-zA-Z] ]]
+ parsed='locales="en_US.UTF-8 de_DE.UTF-8"'
+ [[ locales="en_US.UTF-8 de_DE.UTF-8" =~ ^#[a-zA-Z] ]]
++ echo 'locales="en_US.UTF-8 de_DE.UTF-8"'
++ cut -d= -f1
+ param=locales
+ [[ -v locales ]]
+ [[ en_US.UTF-8 de_DE.UTF-8 == *\ * ]]
+ echo 'locales="en_US.UTF-8 de_DE.UTF-8"'
+ read -r line
+ [[ system_default_locale="en_US.UTF-8" =~ ^(#)?[a-zA-Z] ]]
+ parsed='system_default_locale="en_US.UTF-8"'
+ [[ system_default_locale="en_US.UTF-8" =~ ^#[a-zA-Z] ]]
++ echo 'system_default_locale="en_US.UTF-8"'
++ cut -d= -f1
+ param=system_default_locale
+ [[ -v system_default_locale ]]
+ [[ en_US.UTF-8 == *\ * ]]
+ echo system_default_locale=en_US.UTF-8
+ read -r line
+ [[ '' =~ ^(#)?[a-zA-Z] ]]
+ echo ''
+ read -r line
+ [[ # WiFi settings. An ethernet connection is recommended. =~ ^(#)?[a-zA-Z] ]]
+ echo '# WiFi settings. An ethernet connection is recommended.'
+ read -r line
+ [[ # If you have a RPi4, RPi3, RPi0W or a supported external WiFi dongle, the WiFi =~ ^(#)?[a-zA-Z] ]]
+ echo '# If you have a RPi4, RPi3, RPi0W or a supported external WiFi dongle, the WiFi'
+ read -r line
+ [[ # interface can be setup and used for the initial installation. =~ ^(#)?[a-zA-Z] ]]
+ echo '# interface can be setup and used for the initial installation.'
+ read -r line
+ [[ # Fill in your SSID and password below, leave empty or put comment in front to =~ ^(#)?[a-zA-Z] ]]
+ echo '# Fill in your SSID and password below, leave empty or put comment in front to'
+ read -r line
+ [[ # have your WiFi remain unchanged/uninitialized. Make sure your Ethernet works. =~ ^(#)?[a-zA-Z] ]]
+ echo '# have your WiFi remain unchanged/uninitialized. Make sure your Ethernet works.'
+ read -r line
+ [[ # ATTENTION: you need to escape these special characters: $, `, ", \, (newline) =~ ^(#)?[a-zA-Z] ]]
+ echo '# ATTENTION: you need to escape these special characters: $, `, ", \, (newline)'
+ read -r line
+ [[ # 'Escaping' means to put an additional \ in front of that character =~ ^(#)?[a-zA-Z] ]]
+ echo '# '\''Escaping'\'' means to put an additional \ in front of that character'
+ read -r line
+ [[ wifi_ssid="" =~ ^(#)?[a-zA-Z] ]]
+ parsed='wifi_ssid=""'
+ [[ wifi_ssid="" =~ ^#[a-zA-Z] ]]
++ echo 'wifi_ssid=""'
++ cut -d= -f1
+ param=wifi_ssid
+ [[ -v wifi_ssid ]]
+ [[ '' == *\ * ]]
+ echo wifi_ssid=
+ read -r line
+ [[ wifi_password="" =~ ^(#)?[a-zA-Z] ]]
+ parsed='wifi_password=""'
+ [[ wifi_password="" =~ ^#[a-zA-Z] ]]
++ echo 'wifi_password=""'
++ cut -d= -f1
+ param=wifi_password
+ [[ -v wifi_password ]]
+ [[ '' == *\ * ]]
+ echo wifi_password=
+ read -r line
+ [[ '' =~ ^(#)?[a-zA-Z] ]]
+ echo ''
+ read -r line
+ [[ # Wi-Fi setting. Select a two-letter country code suitable for your location =~ ^(#)?[a-zA-Z] ]]
+ echo '# Wi-Fi setting. Select a two-letter country code suitable for your location'
+ read -r line
+ [[ # E.g. US (default), DE, AU, NZ... =~ ^(#)?[a-zA-Z] ]]
+ echo '# E.g. US (default), DE, AU, NZ...'
+ read -r line
+ [[ # You may infringe on local legislature otherwise =~ ^(#)?[a-zA-Z] ]]
+ echo '# You may infringe on local legislature otherwise'
+ read -r line
+ [[ # See https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 or /usr/share/zoneinfo/zone.tab =~ ^(#)?[a-zA-Z] ]]
+ echo '# See https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 or /usr/share/zoneinfo/zone.tab'
+ read -r line
+ [[ wifi_country="" =~ ^(#)?[a-zA-Z] ]]
+ parsed='wifi_country=""'
+ [[ wifi_country="" =~ ^#[a-zA-Z] ]]
++ echo 'wifi_country=""'
++ cut -d= -f1
+ param=wifi_country
+ [[ -v wifi_country ]]
+ [[ '' == *\ * ]]
+ echo wifi_country=
+ read -r line
+ [[ '' =~ ^(#)?[a-zA-Z] ]]
+ echo ''
+ read -r line
+ [[ # Eventually disable all IPv6 e.g. on installation problems =~ ^(#)?[a-zA-Z] ]]
+ echo '# Eventually disable all IPv6 e.g. on installation problems'
+ read -r line
+ [[ # values: "enable", "disable" =~ ^(#)?[a-zA-Z] ]]
+ echo '# values: "enable", "disable"'
+ read -r line
+ [[ ipv6=enable =~ ^(#)?[a-zA-Z] ]]
+ parsed=ipv6=enable
+ [[ ipv6=enable =~ ^#[a-zA-Z] ]]
++ echo ipv6=enable
++ cut -d= -f1
+ param=ipv6
+ [[ -v ipv6 ]]
+ [[ enable == *\ * ]]
+ echo ipv6=enable
+ read -r line
+ [[ '' =~ ^(#)?[a-zA-Z] ]]
+ echo ''
+ read -r line
+ [[ # repo and branch to clone from =~ ^(#)?[a-zA-Z] ]]
+ echo '# repo and branch to clone from'
+ read -r line
+ [[ repositoryurl=https://github.com/openhab/openhabian.git =~ ^(#)?[a-zA-Z] ]]
+ parsed=repositoryurl=https://github.com/openhab/openhabian.git
+ [[ repositoryurl=https://github.com/openhab/openhabian.git =~ ^#[a-zA-Z] ]]
++ echo repositoryurl=https://github.com/openhab/openhabian.git
++ cut -d= -f1
+ param=repositoryurl
+ [[ -v repositoryurl ]]
+ [[ https://github.com/openhab/openhabian == *\ * ]]
+ echo repositoryurl=https://github.com/openhab/openhabian
+ read -r line
+ [[ clonebranch=openHAB3 =~ ^(#)?[a-zA-Z] ]]
+ parsed=clonebranch=openHAB3
+ [[ clonebranch=openHAB3 =~ ^#[a-zA-Z] ]]
++ echo clonebranch=openHAB3
++ cut -d= -f1
+ param=clonebranch
+ [[ -v clonebranch ]]
+ [[ openHAB3 == *\ * ]]
+ echo clonebranch=openHAB3
+ read -r line
+ [[ '' =~ ^(#)?[a-zA-Z] ]]
+ echo ''
+ read -r line
+ [[ # initial openHAB configuration to import (URL or filename) =~ ^(#)?[a-zA-Z] ]]
+ echo '# initial openHAB configuration to import (URL or filename)'
+ read -r line
+ [[ # the file needs to be a zip archive created from openhab-cli backup =~ ^(#)?[a-zA-Z] ]]
+ echo '# the file needs to be a zip archive created from openhab-cli backup'
+ read -r line
+ [[ # initialconfig=/boot/initial.zip =~ ^(#)?[a-zA-Z] ]]
+ echo '# initialconfig=/boot/initial.zip'
+ read -r line
+ [[ '' =~ ^(#)?[a-zA-Z] ]]
+ echo ''
+ read -r line
+ [[ # debug verbosity mode =~ ^(#)?[a-zA-Z] ]]
+ echo '# debug verbosity mode'
+ read -r line
+ [[ # off, on (verbose output in log) or maximum (show every command) =~ ^(#)?[a-zA-Z] ]]
+ echo '# off, on (verbose output in log) or maximum (show every command)'
+ read -r line
+ [[ debugmode=off =~ ^(#)?[a-zA-Z] ]]
+ parsed=debugmode=off
+ [[ debugmode=off =~ ^#[a-zA-Z] ]]
++ echo debugmode=off
++ cut -d= -f1
+ param=debugmode
+ [[ -v debugmode ]]
+ [[ maximum == *\ * ]]
+ echo debugmode=maximum
+ read -r line
+ [[ '' =~ ^(#)?[a-zA-Z] ]]
+ echo ''
+ read -r line
+ [[ # the framebuffer on RPi is enabled by default =~ ^(#)?[a-zA-Z] ]]
+ echo '# the framebuffer on RPi is enabled by default'
+ read -r line
+ [[ framebuffer=enable =~ ^(#)?[a-zA-Z] ]]
+ parsed=framebuffer=enable
+ [[ framebuffer=enable =~ ^#[a-zA-Z] ]]
++ echo framebuffer=enable
++ cut -d= -f1
+ param=framebuffer
+ [[ -v framebuffer ]]
+ [[ enable == *\ * ]]
+ echo framebuffer=enable
+ read -r line
+ [[ '' =~ ^(#)?[a-zA-Z] ]]
+ echo ''
+ read -r line
+ [[ # fake hardware =~ ^(#)?[a-zA-Z] ]]
+ echo '# fake hardware'
+ read -r line
+ [[ # force treating your box as if it was a ... =~ ^(#)?[a-zA-Z] ]]
+ echo '# force treating your box as if it was a ...'
+ read -r line
+ [[ # pi4, pi4_8gb, cm4, pi400, pi3, cm3, pi3+, cm3+, pi2, pi1, cm1, pi0, pi0w, pi0w2, x86 =~ ^(#)?[a-zA-Z] ]]
+ echo '# pi4, pi4_8gb, cm4, pi400, pi3, cm3, pi3+, cm3+, pi2, pi1, cm1, pi0, pi0w, pi0w2, x86'
+ read -r line
+ [[ # hw= =~ ^(#)?[a-zA-Z] ]]
+ echo '# hw='
+ read -r line
+ [[ '' =~ ^(#)?[a-zA-Z] ]]
+ echo ''
+ read -r line
+ [[ # Hardware architecture =~ ^(#)?[a-zA-Z] ]]
+ echo '# Hardware architecture'
+ read -r line
+ [[ # x86_64, amd64, armv6l, armv7l, aarch64, arm64 =~ ^(#)?[a-zA-Z] ]]
+ echo '# x86_64, amd64, armv6l, armv7l, aarch64, arm64'
+ read -r line
+ [[ # hwarch= =~ ^(#)?[a-zA-Z] ]]
+ echo '# hwarch='
+ read -r line
+ [[ '' =~ ^(#)?[a-zA-Z] ]]
+ echo ''
+ read -r line
+ [[ # OS distribution/release =~ ^(#)?[a-zA-Z] ]]
+ echo '# OS distribution/release'
+ read -r line
+ [[ # Valid arguments: raspios, raspbian, debian, ubuntu, stretch, buster, bullseye, bionic, focal =~ ^(#)?[a-zA-Z] ]]
+ echo '# Valid arguments: raspios, raspbian, debian, ubuntu, stretch, buster, bullseye, bionic, focal'
+ read -r line
+ [[ # osrelease= =~ ^(#)?[a-zA-Z] ]]
+ echo '# osrelease='
+ read -r line
+ [[ '' =~ ^(#)?[a-zA-Z] ]]
+ echo ''
+ read -r line
+ [[ # Java version to install =~ ^(#)?[a-zA-Z] ]]
+ echo '# Java version to install'
+ read -r line
+ [[ java_opt=11 =~ ^(#)?[a-zA-Z] ]]
+ parsed=java_opt=11
+ [[ java_opt=11 =~ ^#[a-zA-Z] ]]
++ echo java_opt=11
++ cut -d= -f1
+ param=java_opt
+ [[ -v java_opt ]]
+ [[ 11 == *\ * ]]
+ echo java_opt=11
+ read -r line
+ [[ '' =~ ^(#)?[a-zA-Z] ]]
+ echo ''
+ read -r line
+ [[ # install zram per default, set to "disable" to skip installation =~ ^(#)?[a-zA-Z] ]]
+ echo '# install zram per default, set to "disable" to skip installation'
+ read -r line
+ [[ zraminstall=enable =~ ^(#)?[a-zA-Z] ]]
+ parsed=zraminstall=enable
+ [[ zraminstall=enable =~ ^#[a-zA-Z] ]]
++ echo zraminstall=enable
++ cut -d= -f1
+ param=zraminstall
+ [[ -v zraminstall ]]
+ [[ enable == *\ * ]]
+ echo zraminstall=enable
+ read -r line
+ [[ '' =~ ^(#)?[a-zA-Z] ]]
+ echo ''
+ read -r line
+ [[ # start comitup hotspot if internet is not reachable =~ ^(#)?[a-zA-Z] ]]
+ echo '# start comitup hotspot if internet is not reachable'
+ read -r line
+ [[ hotspot=enable =~ ^(#)?[a-zA-Z] ]]
+ parsed=hotspot=enable
+ [[ hotspot=enable =~ ^#[a-zA-Z] ]]
++ echo hotspot=enable
++ cut -d= -f1
+ param=hotspot
+ [[ -v hotspot ]]
+ [[ enable == *\ * ]]
+ echo hotspot=enable
+ read -r line
+ [[ hotspotpw=openhabian =~ ^(#)?[a-zA-Z] ]]
+ parsed=hotspotpw=openhabian
+ [[ hotspotpw=openhabian =~ ^#[a-zA-Z] ]]
++ echo hotspotpw=openhabian
++ cut -d= -f1
+ param=hotspotpw
+ [[ -v hotspotpw ]]
+ [[ openhabian == *\ * ]]
+ echo hotspotpw=openhabian
+ read -r line
+ [[ '' =~ ^(#)?[a-zA-Z] ]]
+ echo ''
+ read -r line
+ [[ # external SD card device to backup and mirror the internal SD card to =~ ^(#)?[a-zA-Z] ]]
+ echo '# external SD card device to backup and mirror the internal SD card to'
+ read -r line
+ [[ # backupdrive=/dev/sda =~ ^(#)?[a-zA-Z] ]]
+ echo '# backupdrive=/dev/sda'
+ read -r line
+ [[ storageconfig=openhab-dir =~ ^(#)?[a-zA-Z] ]]
+ parsed=storageconfig=openhab-dir
+ [[ storageconfig=openhab-dir =~ ^#[a-zA-Z] ]]
++ echo storageconfig=openhab-dir
++ cut -d= -f1
+ param=storageconfig
+ [[ -v storageconfig ]]
+ [[ openhab-dir == *\ * ]]
+ echo storageconfig=openhab-dir
+ read -r line
+ [[ storagedir=/storage =~ ^(#)?[a-zA-Z] ]]
+ parsed=storagedir=/storage
+ [[ storagedir=/storage =~ ^#[a-zA-Z] ]]
++ echo storagedir=/storage
++ cut -d= -f1
+ param=storagedir
+ [[ -v storagedir ]]
+ [[ /storage == *\ * ]]
+ echo storagedir=/storage
+ read -r line
+ [[ storagetapes=15 =~ ^(#)?[a-zA-Z] ]]
+ parsed=storagetapes=15
+ [[ storagetapes=15 =~ ^#[a-zA-Z] ]]
++ echo storagetapes=15
++ cut -d= -f1
+ param=storagetapes
+ [[ -v storagetapes ]]
+ [[ 15 == *\ * ]]
+ echo storagetapes=15
+ read -r line
+ [[ storagecapacity=1024 =~ ^(#)?[a-zA-Z] ]]
+ parsed=storagecapacity=1024
+ [[ storagecapacity=1024 =~ ^#[a-zA-Z] ]]
++ echo storagecapacity=1024
++ cut -d= -f1
+ param=storagecapacity
+ [[ -v storagecapacity ]]
+ [[ 1024 == *\ * ]]
+ echo storagecapacity=1024
+ read -r line
+ [[ '' =~ ^(#)?[a-zA-Z] ]]
+ echo ''
+ read -r line
+ [[ # mail relay settings =~ ^(#)?[a-zA-Z] ]]
+ echo '# mail relay settings'
+ read -r line
+ [[ # adminmail=john.doe@foo.bar =~ ^(#)?[a-zA-Z] ]]
+ echo '# adminmail=john.doe@foo.bar'
+ read -r line
+ [[ # relayuser=john.doe@foo.bar =~ ^(#)?[a-zA-Z] ]]
+ echo '# relayuser=john.doe@foo.bar'
+ read -r line
+ [[ # relaypass=secret =~ ^(#)?[a-zA-Z] ]]
+ echo '# relaypass=secret'
+ read -r line
+ [[ # smarthost=smtp.gmail.com =~ ^(#)?[a-zA-Z] ]]
+ echo '# smarthost=smtp.gmail.com'
+ read -r line
+ [[ # smartport=587 =~ ^(#)?[a-zA-Z] ]]
+ echo '# smartport=587'
+ read -r line
+ [[ '' =~ ^(#)?[a-zA-Z] ]]
+ echo ''
+ read -r line
+ [[ # Tailscale VPN =~ ^(#)?[a-zA-Z] ]]
+ echo '# Tailscale VPN'
+ read -r line
+ [[ # preauthkey=tskey-xxxxxxxxxxxxxxxxx =~ ^(#)?[a-zA-Z] ]]
+ echo '# preauthkey=tskey-xxxxxxxxxxxxxxxxx'
+ read -r line
+ [[ # tstags=tag:client =~ ^(#)?[a-zA-Z] ]]
+ echo '# tstags=tag:client'
+ read -r line
+ [[ '' =~ ^(#)?[a-zA-Z] ]]
+ echo ''
+ read -r line
+ [[ # Custom log files =~ ^(#)?[a-zA-Z] ]]
+ echo '# Custom log files'
+ read -r line
+ [[ # custom_log_files=("/var/log/foo.log" "/var/log/bar.log") =~ ^(#)?[a-zA-Z] ]]
+ echo '# custom_log_files=("/var/log/foo.log" "/var/log/bar.log")'
+ read -r line
+ [[ '' =~ ^(#)?[a-zA-Z] ]]
+ echo ''
+ read -r line
+ [[ # vim: filetype=sh =~ ^(#)?[a-zA-Z] ]]
+ echo '# vim: filetype=sh'
+ read -r line
+ [[ -f /etc/init.d/openhabian-config ]]
+ cond_redirect wget -nv -O /etc/init.d/openhabian-config https://github.com/RPi-Distro/raspi-config/raw/master/debian/raspi-config.init
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ wget -nv -O /etc/init.d/openhabian-config https://github.com/RPi-Distro/raspi-config/raw/master/debian/raspi-config.init \033[39;49;00m'

e[90;01m$ wget -nv -O /etc/init.d/openhabian-config https://github.com/RPi-Distro/raspi-config/raw/master/debian/raspi-config.init e[39;49;00m
+ wget -nv -O /etc/init.d/openhabian-config https://github.com/RPi-Distro/raspi-config/raw/master/debian/raspi-config.init
wget: unable to resolve host address ‘github.com’
+ return 4
+ sed -i -e s/raspi-config/openhabian-config/ /etc/init.d/openhabian-config
+ config_ipv6
+ local aptConf=/etc/apt/apt.conf.d/S90force-ipv4
+ local sysctlConf=/etc/sysctl.d/99-sysctl.conf
+ [[ enable == \d\i\s\a\b\l\e ]]
+ [[ enable == \e\n\a\b\l\e ]]
+ grep -qs '^[[:space:]]*# Disable all IPv6 functionality' /etc/sysctl.d/99-sysctl.conf
+ [[ -n 1 ]]
+ export DEBIAN_FRONTEND=noninteractive
+ DEBIAN_FRONTEND=noninteractive
+ wait_for_apt_to_finish_update
+ local 'spin=-\|/'
+ local i
+ [[ -z '' ]]
+ apt_update
+ export PID_APT=1627
+ PID_APT=1627
+ nohup apt-get update
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -n '2023-06-07_23:50:37_BST [openHABian] Updating Linux package information... '
2023-06-07_23:50:37_BST [openHABian] Updating Linux package information... + kill -0 1627
+ i=1
+ echo -ne '\ \033[2D'
\ e[2D+ sleep 0.5
+ kill -0 1627
+ i=2
+ echo -ne '| \033[2D'
| e[2D+ sleep 0.5
+ kill -0 1627
+ i=3
+ echo -ne '/ \033[2D'
/ e[2D+ sleep 0.5
+ kill -0 1627
+ i=0
+ echo -ne '- \033[2D'
- e[2D+ sleep 0.5
+ kill -0 1627
+ i=1
+ echo -ne '\ \033[2D'
\ e[2D+ sleep 0.5
+ kill -0 1627
+ i=2
+ echo -ne '| \033[2D'
| e[2D+ sleep 0.5
+ kill -0 1627
+ i=3
+ echo -ne '/ \033[2D'
/ e[2D+ sleep 0.5
+ kill -0 1627
+ i=0
+ echo -ne '- \033[2D'
- e[2D+ sleep 0.5
+ kill -0 1627
+ i=1
+ echo -ne '\ \033[2D'
\ e[2D+ sleep 0.5
+ kill -0 1627
+ i=2
+ echo -ne '| \033[2D'
| e[2D+ sleep 0.5
+ kill -0 1627
+ i=3
+ echo -ne '/ \033[2D'
/ e[2D+ sleep 0.5
+ kill -0 1627
+ echo OK
OK
+ load_create_config
+ local 'questionText=\nWelcome to openHABian!\n\nPlease provide the name of your Linux user i.e. the account you normally log in with.\n\nTypical user names are '\''pi'\'' or '\''ubuntu'\''.'
+ local input
+ [[ -f /etc/openhabian.conf ]]
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -n '2023-06-07_23:50:42_BST [openHABian] Loading configuration file '\''/etc/openhabian.conf'\''... '
2023-06-07_23:50:42_BST [openHABian] Loading configuration file '/etc/openhabian.conf'... ++ getent group openhabian
+ [[ ! -n openhabian:x:1000: ]]
+ id -u openhabian
+ source /etc/openhabian.conf
++ hostname=openhabian
++ username=openhabian
++ userpw=openhabian
++ adminkeyurl=
++ timezone=Europe/Berlin
++ locales='en_US.UTF-8 de_DE.UTF-8'
++ system_default_locale=en_US.UTF-8
++ wifi_ssid=
++ wifi_password=
++ wifi_country=
++ ipv6=enable
++ repositoryurl=https://github.com/openhab/openhabian
++ clonebranch=openHAB3
++ debugmode=maximum
++ framebuffer=enable
++ java_opt=11
++ zraminstall=enable
++ hotspot=enable
++ hotspotpw=openhabian
++ storageconfig=openhab-dir
++ storagedir=/storage
++ storagetapes=15
++ storagecapacity=1024
+ echo OK
OK
+ change_swapsize
+ is_pi
+ is_pifour
+ [[ '' == \p\i\4 ]]
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]11[0-9a-fA-F]$' /proc/cpuinfo
+ return 1
+ is_cmfour
+ [[ '' == \c\m\4 ]]
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]14[0-9a-fA-F]$' /proc/cpuinfo
+ return 1
+ is_pi400
+ [[ '' == \p\i\4\0\0 ]]
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]13[0-9a-fA-F]$' /proc/cpuinfo
+ return 1
+ is_cmthreeplus
+ [[ '' == \c\m\3\+ ]]
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]10[0-9a-fA-F]$' /proc/cpuinfo
+ return 1
+ is_cmthree
+ [[ '' == \c\m\3 ]]
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]0[aA][0-9a-fA-F]$' /proc/cpuinfo
+ return 1
+ is_pithreeplus
+ [[ '' == \p\i\3\+ ]]
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]0[dDeE][0-9a-fA-F]$' /proc/cpuinfo
+ return 0
+ return 0
+ local free
+ local minFree
+ local swap
+ local totalMemory
++ awk '/MemTotal/ {print $2}' /proc/meminfo
+ totalMemory=944268
+ [[ -z 944268 ]]
+ swap=1888536
+ minFree=3777072
++ df -hk /
++ awk '/dev/ { print $4 }'
+ free=26831744
+ [[ 26831744 -ge 3777072 ]]
+ size=1888536
+ (( size/=1024 ))
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -n '2023-06-07_23:50:42_BST [openHABian] Adjusting swap size to 1844 MB... '
2023-06-07_23:50:42_BST [openHABian] Adjusting swap size to 1844 MB... + cond_redirect dphys-swapfile swapoff
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ dphys-swapfile swapoff \033[39;49;00m'

e[90;01m$ dphys-swapfile swapoff e[39;49;00m
+ dphys-swapfile swapoff
+ return 0
+ cond_redirect sed -i 's|^#*.*CONF_SWAPSIZE=.*$|CONF_SWAPSIZE=1844|g' /etc/dphys-swapfile
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ sed -i s|^#*.*CONF_SWAPSIZE=.*$|CONF_SWAPSIZE=1844|g /etc/dphys-swapfile \033[39;49;00m'

e[90;01m$ sed -i s|^#*.*CONF_SWAPSIZE=.*$|CONF_SWAPSIZE=1844|g /etc/dphys-swapfile e[39;49;00m
+ sed -i 's|^#*.*CONF_SWAPSIZE=.*$|CONF_SWAPSIZE=1844|g' /etc/dphys-swapfile
+ return 0
+ cond_redirect dphys-swapfile swapon
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ dphys-swapfile swapon \033[39;49;00m'

e[90;01m$ dphys-swapfile swapon e[39;49;00m
+ dphys-swapfile swapon
+ return 0
+ echo 'OK (reboot required)'
OK (reboot required)
+ timezone_setting
+ [[ -n '' ]]
+ [[ -n Europe/Berlin ]]
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -n '2023-06-07_23:50:42_BST [openHABian] Setting timezone based on openhabian.conf... '
2023-06-07_23:50:42_BST [openHABian] Setting timezone based on openhabian.conf... + running_in_docker
+ [[ -n '' ]]
+ grep -qs 'docker\|lxc' /proc/1/cgroup
+ [[ -f /.dockerenv ]]
+ return 1
+ running_on_github
+ [[ -n '' ]]
+ return 1
+ cond_redirect timedatectl set-timezone Europe/Berlin
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ timedatectl set-timezone Europe/Berlin \033[39;49;00m'

e[90;01m$ timedatectl set-timezone Europe/Berlin e[39;49;00m
+ timedatectl set-timezone Europe/Berlin
+ return 0
++ cat /etc/timezone
+ echo 'OK (Europe/Berlin)'
OK (Europe/Berlin)
+ setup_ntp enable
+ running_in_docker
+ [[ -n '' ]]
+ grep -qs 'docker\|lxc' /proc/1/cgroup
+ [[ -f /.dockerenv ]]
+ return 1
+ is_raspios
+ [[ '' == \r\a\s\p\i\o\s ]]
+ is_raspbian
+ [[ '' == \r\a\s\p\b\i\a\n ]]
++ cat /etc/os-release
+ [[ PRETTY_NAME="Raspbian GNU/Linux 11 (bullseye)"
NAME="Raspbian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs" =~ Raspbian ]]
+ return 0
+ return 0
+ [[ enable == \e\n\a\b\l\e ]]
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -n '2023-06-08_00:50:43_CEST [openHABian] Enabling time synchronization using NTP... '
2023-06-08_00:50:43_CEST [openHABian] Enabling time synchronization using NTP... + cond_redirect cp /opt/openhabian/includes/generic/50-timesyncd.conf /lib/dhcpcd/dhcpcd-hooks/
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ cp /opt/openhabian/includes/generic/50-timesyncd.conf /lib/dhcpcd/dhcpcd-hooks/ \033[39;49;00m'

e[90;01m$ cp /opt/openhabian/includes/generic/50-timesyncd.conf /lib/dhcpcd/dhcpcd-hooks/ e[39;49;00m
+ cp /opt/openhabian/includes/generic/50-timesyncd.conf /lib/dhcpcd/dhcpcd-hooks/
+ return 0
+ cond_redirect timedatectl set-ntp true
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ timedatectl set-ntp true \033[39;49;00m'

e[90;01m$ timedatectl set-ntp true e[39;49;00m
+ timedatectl set-ntp true
+ return 0
+ echo OK
OK
+ locale_setting
+ local syslocale
+ dpkg -s locales
+ [[ -n '' ]]
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -n '2023-06-08_00:50:43_CEST [openHABian] Setting locale based on openhabian.conf... '
2023-06-08_00:50:43_CEST [openHABian] Setting locale based on openhabian.conf... + is_ubuntu
+ [[ '' == \u\b\u\n\t\u ]]
++ cat /etc/os-release
+ [[ PRETTY_NAME="Raspbian GNU/Linux 11 (bullseye)"
NAME="Raspbian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs" =~ Ubuntu ]]
+ return 1
+ for loc in $locales
+ sed -i '/^#[[:space:]]en_US.UTF-8/s/^#[[:space:]]//' /etc/locale.gen
+ for loc in $locales
+ sed -i '/^#[[:space:]]de_DE.UTF-8/s/^#[[:space:]]//' /etc/locale.gen
+ cond_redirect locale-gen
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ locale-gen \033[39;49;00m'

e[90;01m$ locale-gen e[39;49;00m
+ locale-gen
Generating locales (this might take a while)...
  de_DE.UTF-8... done
  en_GB.UTF-8... done
  en_US.UTF-8... done
Generation complete.
+ return 0
+ syslocale=en_US.UTF-8
+ cond_redirect update-locale LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LC_CTYPE=en_US.UTF-8 LANGUAGE=en_US.UTF-8
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ update-locale LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LC_CTYPE=en_US.UTF-8 LANGUAGE=en_US.UTF-8 \033[39;49;00m'

e[90;01m$ update-locale LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LC_CTYPE=en_US.UTF-8 LANGUAGE=en_US.UTF-8 e[39;49;00m
+ update-locale LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LC_CTYPE=en_US.UTF-8 LANGUAGE=en_US.UTF-8
+ return 0
+ echo 'OK (reboot required)'
OK (reboot required)
+ [[ -n '' ]]
+ hostname_change
+ running_in_docker
+ [[ -n '' ]]
+ grep -qs 'docker\|lxc' /proc/1/cgroup
+ [[ -f /.dockerenv ]]
+ return 1
+ local newHostname
+ [[ -n '' ]]
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -n '2023-06-08_00:51:22_CEST [openHABian] Setting hostname of the base system based on openhabian.conf... '
2023-06-08_00:51:22_CEST [openHABian] Setting hostname of the base system based on openhabian.conf... + newHostname=openhabian
+ cond_redirect hostnamectl set-hostname openhabian
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ hostnamectl set-hostname openhabian \033[39;49;00m'

e[90;01m$ hostnamectl set-hostname openhabian e[39;49;00m
+ hostnamectl set-hostname openhabian
+ return 0
+ sed -i 's|127.0.1.1.*$|127.0.1.1 openhabian|g' /etc/hosts
+ echo OK
OK
+ [[ -n '' ]]
+ memory_split
+ is_pi
+ is_pifour
+ [[ '' == \p\i\4 ]]
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]11[0-9a-fA-F]$' /proc/cpuinfo
+ return 1
+ is_cmfour
+ [[ '' == \c\m\4 ]]
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]14[0-9a-fA-F]$' /proc/cpuinfo
+ return 1
+ is_pi400
+ [[ '' == \p\i\4\0\0 ]]
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]13[0-9a-fA-F]$' /proc/cpuinfo
+ return 1
+ is_cmthreeplus
+ [[ '' == \c\m\3\+ ]]
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]10[0-9a-fA-F]$' /proc/cpuinfo
+ return 1
+ is_cmthree
+ [[ '' == \c\m\3 ]]
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]0[aA][0-9a-fA-F]$' /proc/cpuinfo
+ return 1
+ is_pithreeplus
+ [[ '' == \p\i\3\+ ]]
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]0[dDeE][0-9a-fA-F]$' /proc/cpuinfo
+ return 0
+ return 0
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -n '2023-06-08_00:51:22_CEST [openHABian] Setting the GPU memory split down to 16MB for headless system... '
2023-06-08_00:51:22_CEST [openHABian] Setting the GPU memory split down to 16MB for headless system... + grep -qs '^[[:space:]]*gpu_mem' /boot/config.txt
+ echo gpu_mem=16
+ echo OK
OK
+ sed -i '/^dtoverlay=vc4-f\?kms-v3d/d' /boot/config.txt
+ enable_rpi_audio
+ is_pi
+ is_pifour
+ [[ '' == \p\i\4 ]]
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]11[0-9a-fA-F]$' /proc/cpuinfo
+ return 1
+ is_cmfour
+ [[ '' == \c\m\4 ]]
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]14[0-9a-fA-F]$' /proc/cpuinfo
+ return 1
+ is_pi400
+ [[ '' == \p\i\4\0\0 ]]
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]13[0-9a-fA-F]$' /proc/cpuinfo
+ return 1
+ is_cmthreeplus
+ [[ '' == \c\m\3\+ ]]
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]10[0-9a-fA-F]$' /proc/cpuinfo
+ return 1
+ is_cmthree
+ [[ '' == \c\m\3 ]]
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]0[aA][0-9a-fA-F]$' /proc/cpuinfo
+ return 1
+ is_pithreeplus
+ [[ '' == \p\i\3\+ ]]
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]0[dDeE][0-9a-fA-F]$' /proc/cpuinfo
+ return 0
+ return 0
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -n '2023-06-08_00:51:22_CEST [openHABian] Enabling Audio output... '
2023-06-08_00:51:22_CEST [openHABian] Enabling Audio output... + grep -qs '^[[:space:]]*dtparam=audio' /boot/config.txt
+ cond_redirect sed -i 's|dtparam=audio.*$|dtparam=audio=on|g' /boot/config.txt
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ sed -i s|dtparam=audio.*$|dtparam=audio=on|g /boot/config.txt \033[39;49;00m'

e[90;01m$ sed -i s|dtparam=audio.*$|dtparam=audio=on|g /boot/config.txt e[39;49;00m
+ sed -i 's|dtparam=audio.*$|dtparam=audio=on|g' /boot/config.txt
+ return 0
+ cond_redirect adduser openhabian audio
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ adduser openhabian audio \033[39;49;00m'

e[90;01m$ adduser openhabian audio e[39;49;00m
+ adduser openhabian audio
The user `openhabian' is already a member of `audio'.
+ return 0
+ echo OK
OK
+ basic_packages
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -n '2023-06-08_00:51:23_CEST [openHABian] Installing basic can'\''t-be-wrong packages (screen, vim, ...)... '
2023-06-08_00:51:23_CEST [openHABian] Installing basic can't-be-wrong packages (screen, vim, ...)... ++ command -v raspi-config
+ [[ -x /usr/bin/raspi-config ]]
+ cp /etc/init.d/raspi-config /etc/init.d/openhabian-config
+ sed -i -e s/raspi-config/openhabian-config/ /etc/init.d/openhabian-config
+ cond_redirect apt-get purge --yes raspi-config
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ apt-get purge --yes raspi-config \033[39;49;00m'

e[90;01m$ apt-get purge --yes raspi-config e[39;49;00m
+ apt-get purge --yes raspi-config
Reading package lists...
Building dependency tree...
Reading state information...
The following packages were automatically installed and are no longer required:
  alsa-topology-conf alsa-ucm-conf alsa-utils bluez bluez-firmware dos2unix
  libasound2 libasound2-data libatopology2 libfftw3-single3 libsamplerate0
  python3-toml rfkill triggerhappy
Use 'apt autoremove' to remove them.
The following packages will be REMOVED:
  pi-bluetooth* raspberrypi-net-mods* raspberrypi-sys-mods* raspi-config*
  userconf-pi*
0 upgraded, 0 newly installed, 5 to remove and 0 not upgraded.
After this operation, 316 kB disk space will be freed.
(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 45394 files and directories currently installed.)
Removing pi-bluetooth (0.1.19) ...
Removing raspberrypi-net-mods (1.3.4) ...
Removing raspberrypi-sys-mods (20221019) ...
Removing userconf-pi (0.5) ...
Removing raspi-config (20221214) ...
(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 45341 files and directories currently installed.)
Purging configuration files for pi-bluetooth (0.1.19) ...
Purging configuration files for userconf-pi (0.5) ...
Purging configuration files for raspberrypi-sys-mods (20221019) ...
Purging configuration files for raspberrypi-net-mods (1.3.4) ...
Purging configuration files for raspi-config (20221214) ...
+ return 0
+ cond_redirect apt-get install --yes acl arping apt-utils bash-completion bzip2 coreutils curl dirmngr git htop man-db mc multitail nano nmap lsb-release screen software-properties-common telnet usbutils util-linux vfu vim wget whiptail xz-utils zip
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ apt-get install --yes acl arping apt-utils bash-completion bzip2 coreutils curl dirmngr git htop man-db mc multitail nano nmap lsb-release screen software-properties-common telnet usbutils util-linux vfu vim wget whiptail xz-utils zip \033[39;49;00m'

e[90;01m$ apt-get install --yes acl arping apt-utils bash-completion bzip2 coreutils curl dirmngr git htop man-db mc multitail nano nmap lsb-release screen software-properties-common telnet usbutils util-linux vfu vim wget whiptail xz-utils zip e[39;49;00m
+ apt-get install --yes acl arping apt-utils bash-completion bzip2 coreutils curl dirmngr git htop man-db mc multitail nano nmap lsb-release screen software-properties-common telnet usbutils util-linux vfu vim wget whiptail xz-utils zip
Reading package lists...
Building dependency tree...
Reading state information...
apt-utils is already the newest version (2.2.4).
bash-completion is already the newest version (1:2.11-2).
bzip2 is already the newest version (1.0.8-4).
bzip2 set to manually installed.
coreutils is already the newest version (8.32-4).
curl is already the newest version (7.74.0-1.3+deb11u3).
dirmngr is already the newest version (2.2.27-2+deb11u2).
git is already the newest version (1:2.30.2-1).
htop is already the newest version (3.0.5-7).
lsb-release is already the newest version (11.1.0+rpi1).
lsb-release set to manually installed.
man-db is already the newest version (2.9.4-2).
nano is already the newest version (5.4-2+deb11u2).
usbutils is already the newest version (1:013-3).
util-linux is already the newest version (2.36.1-8+deb11u1).
wget is already the newest version (1.21-1+deb11u1).
wget set to manually installed.
whiptail is already the newest version (0.52.21-4+b2).
whiptail set to manually installed.
xz-utils is already the newest version (5.2.5-2.1~deb11u1).
xz-utils set to manually installed.
zip is already the newest version (3.0-12).
The following packages were automatically installed and are no longer required:
  alsa-topology-conf alsa-ucm-conf alsa-utils bluez bluez-firmware dos2unix
  libasound2 libasound2-data libatopology2 libfftw3-single3 libsamplerate0
  python3-toml rfkill triggerhappy
Use 'apt autoremove' to remove them.
The following additional packages will be installed:
  gir1.2-packagekitglib-1.0 libappstream4 libglib2.0-bin libglib2.0-data
  libgpm2 liblinear4 liblua5.3-0 libnet1 libpackagekit-glib2-18 libstemmer0d
  libutempter0 lua-lpeg mc-data nmap-common packagekit packagekit-tools
  python3-distro-info python3-pycurl python3-software-properties
  unattended-upgrades vim-runtime
Suggested packages:
  gpm liblinear-tools liblinear-dev arj catdvi | texlive-binaries dbview
  djvulibre-bin epub-utils genisoimage gv imagemagick libaspell-dev links
  | w3m | lynx odt2txt poppler-utils python python-boto python-tz unar
  wimtools xpdf | pdf-viewer ncat ndiff zenmap appstream libcurl4-gnutls-dev
  python-pycurl-doc python3-pycurl-dbg byobu | screenie | iselect bsd-mailx
  default-mta | mail-transport-agent needrestart powermgmt-base ctags vim-doc
  vim-scripts
The following NEW packages will be installed:
  acl arping gir1.2-packagekitglib-1.0 libappstream4 libglib2.0-bin
  libglib2.0-data libgpm2 liblinear4 liblua5.3-0 libnet1
  libpackagekit-glib2-18 libstemmer0d libutempter0 lua-lpeg mc mc-data
  multitail nmap nmap-common packagekit packagekit-tools python3-distro-info
  python3-pycurl python3-software-properties screen software-properties-common
  telnet unattended-upgrades vfu vim vim-runtime
0 upgraded, 31 newly installed, 0 to remove and 0 not upgraded.
Need to get 6,013 kB/18.8 MB of archives.
After this operation, 86.5 MB of additional disk space will be used.
Err:1 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf telnet armhf 0.17-42
  Temporary failure resolving 'raspbian.raspberrypi.org'
Err:2 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf liblinear4 armhf 2.3.0+dfsg-5
  Temporary failure resolving 'raspbian.raspberrypi.org'
Err:3 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf liblua5.3-0 armhf 5.3.3-1.1+b1
  Temporary failure resolving 'raspbian.raspberrypi.org'
Err:4 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf lua-lpeg armhf 1.0.2-1
  Temporary failure resolving 'raspbian.raspberrypi.org'
Err:5 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf nmap-common all 7.91+dfsg1+really7.80+dfsg1-2
  Temporary failure resolving 'raspbian.raspberrypi.org'
Err:6 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf nmap armhf 7.91+dfsg1+really7.80+dfsg1-2
  Temporary failure resolving 'raspbian.raspberrypi.org'
E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/pool/main/n/netkit-telnet/telnet_0.17-42_armhf.deb  Temporary failure resolving 'raspbian.raspberrypi.org'
E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/pool/main/libl/liblinear/liblinear4_2.3.0%2bdfsg-5_armhf.deb  Temporary failure resolving 'raspbian.raspberrypi.org'
E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/pool/main/l/lua5.3/liblua5.3-0_5.3.3-1.1%2bb1_armhf.deb  Temporary failure resolving 'raspbian.raspberrypi.org'
E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/pool/main/l/lua-lpeg/lua-lpeg_1.0.2-1_armhf.deb  Temporary failure resolving 'raspbian.raspberrypi.org'
E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/pool/main/n/nmap/nmap-common_7.91%2bdfsg1%2breally7.80%2bdfsg1-2_all.deb  Temporary failure resolving 'raspbian.raspberrypi.org'
E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/pool/main/n/nmap/nmap_7.91%2bdfsg1%2breally7.80%2bdfsg1-2_armhf.deb  Temporary failure resolving 'raspbian.raspberrypi.org'
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
+ return 100
+ echo FAILED
FAILED
+ exit 1
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo '2023-06-08_00:52:02_CEST [openHABian] We tried our best to get your system installed, but this may not have worked properly.'
2023-06-08_00:52:02_CEST [openHABian] We tried our best to get your system installed, but this may not have worked properly.
+ dpkg --configure -a
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo '2023-06-08_00:52:03_CEST [openHABian] Execution of '\''openhabian-config unattended'\'' completed.'
2023-06-08_00:52:03_CEST [openHABian] Execution of 'openhabian-config unattended' completed.
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo '2023-06-08_00:52:03_CEST [openHABian] First time setup successfully finished. Rebooting your system!'
2023-06-08_00:52:03_CEST [openHABian] First time setup successfully finished. Rebooting your system!
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo '2023-06-08_00:52:03_CEST [openHABian] After rebooting the openHAB dashboard will be available at: http://openhabian:8080'
2023-06-08_00:52:03_CEST [openHABian] After rebooting the openHAB dashboard will be available at: http://openhabian:8080
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo '2023-06-08_00:52:03_CEST [openHABian] After rebooting to gain access to a console, simply reconnect using ssh.'
2023-06-08_00:52:03_CEST [openHABian] After rebooting to gain access to a console, simply reconnect using ssh.
+ sleep 12
++ command -v python3
+ [[ -x /usr/bin/python3 ]]
+ bash /boot/webserver.bash inst_done
+ sleep 12
++ command -v python3
+ [[ -x /usr/bin/python3 ]]
+ bash /boot/webserver.bash cleanup
+ running_in_docker
+ [[ -n '' ]]
+ grep -qs 'docker\|lxc' /proc/1/cgroup
+ [[ -f /.dockerenv ]]
+ return 1
+ reboot

The third one… and so on:

2023-06-08_00:52:43_CEST [openHABian] Starting the openHABian initial setup.
2023-06-08_00:52:43_CEST [openHABian] Storing configuration... OK
2023-06-08_00:52:43_CEST [openHABian] Enable maximum debugging output
+ rfkill unblock wifi
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -n '2023-06-08_00:52:43_CEST [openHABian] Starting webserver with installation log... '
2023-06-08_00:52:43_CEST [openHABian] Starting webserver with installation log... ++ command -v python3
+ [[ -x /usr/bin/python3 ]]
+ bash /boot/webserver.bash start
bash: /boot/webserver.bash: No such file or directory
+ sleep 5
++ ps -ef
++ pgrep python3
+ isWebRunning=
+ [[ -n '' ]]
+ echo FAILED
FAILED
+ defaultUserAndGroup=openhabian
+ userName=openhabian
+ groupName=openhabian
+ is_raspbian
+ [[ '' == \r\a\s\p\b\i\a\n ]]
++ cat /etc/os-release
+ [[ PRETTY_NAME="Raspbian GNU/Linux 11 (bullseye)"
NAME="Raspbian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs" =~ Raspbian ]]
+ return 0
+ rm -f /etc/sudoers.d/010_pi-nopasswd
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -n '2023-06-08_00:52:49_CEST [openHABian] Changing default username and password... '
2023-06-08_00:52:49_CEST [openHABian] Changing default username and password... + [[ -v openhabian ]]
+ id openhabian
+ id openhabian
+ echo SKIPPED
SKIPPED
+ echo 'watch cat /boot/first-boot.log'
+ [[ -z '' ]]
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -n '2023-06-08_00:52:49_CEST [openHABian] Setting up Ethernet connection... '
2023-06-08_00:52:49_CEST [openHABian] Setting up Ethernet connection... + grep -qs up /sys/class/net/eth0/operstate
+ echo FAILED
FAILED
+ running_in_docker
+ [[ -n '' ]]
+ grep -qs 'docker\|lxc' /proc/1/cgroup
+ [[ -f /.dockerenv ]]
+ return 1
+ tryUntil 'ping -c1 8.8.8.8 &> /dev/null || curl --silent --head http://www.openhab.org/docs |& grep -qs '\''HTTP/1.1 200 OK'\''' 5 1
+ local cmd
+ local attempts
+ local interval
+ cmd='ping -c1 8.8.8.8 &> /dev/null || curl --silent --head http://www.openhab.org/docs |& grep -qs '\''HTTP/1.1 200 OK'\'''
+ attempts=5
+ interval=1
+ [[ 5 -le 0 ]]
+ cond_echo '\nexecuting ping -c1 8.8.8.8 &> /dev/null || curl --silent --head http://www.openhab.org/docs |& grep -qs '\''HTTP/1.1 200 OK'\'' \c'
+ [[ -z 1 ]]
+ eval 'ping -c1 8.8.8.8 &> /dev/null || curl --silent --head http://www.openhab.org/docs |& grep -qs '\''HTTP/1.1 200 OK'\'''
++ ping -c1 8.8.8.8
++ curl --silent --head http://www.openhab.org/docs
++ grep -qs 'HTTP/1.1 200 OK'
+ out=1
+ [[ 1 -eq 0 ]]
+ sleep 1
+ [[ -z 1 ]]
+ (( attempts-=1 ))
+ [[ 4 -le 0 ]]
+ cond_echo '\nexecuting ping -c1 8.8.8.8 &> /dev/null || curl --silent --head http://www.openhab.org/docs |& grep -qs '\''HTTP/1.1 200 OK'\'' \c'
+ [[ -z 1 ]]
+ eval 'ping -c1 8.8.8.8 &> /dev/null || curl --silent --head http://www.openhab.org/docs |& grep -qs '\''HTTP/1.1 200 OK'\'''
++ ping -c1 8.8.8.8
++ curl --silent --head http://www.openhab.org/docs
++ grep -qs 'HTTP/1.1 200 OK'
+ out=1
+ [[ 1 -eq 0 ]]
+ sleep 1
+ [[ -z 1 ]]
+ (( attempts-=1 ))
+ [[ 3 -le 0 ]]
+ cond_echo '\nexecuting ping -c1 8.8.8.8 &> /dev/null || curl --silent --head http://www.openhab.org/docs |& grep -qs '\''HTTP/1.1 200 OK'\'' \c'
+ [[ -z 1 ]]
+ eval 'ping -c1 8.8.8.8 &> /dev/null || curl --silent --head http://www.openhab.org/docs |& grep -qs '\''HTTP/1.1 200 OK'\'''
++ ping -c1 8.8.8.8
++ curl --silent --head http://www.openhab.org/docs
++ grep -qs 'HTTP/1.1 200 OK'
+ out=1
+ [[ 1 -eq 0 ]]
+ sleep 1
+ [[ -z 1 ]]
+ (( attempts-=1 ))
+ [[ 2 -le 0 ]]
+ cond_echo '\nexecuting ping -c1 8.8.8.8 &> /dev/null || curl --silent --head http://www.openhab.org/docs |& grep -qs '\''HTTP/1.1 200 OK'\'' \c'
+ [[ -z 1 ]]
+ eval 'ping -c1 8.8.8.8 &> /dev/null || curl --silent --head http://www.openhab.org/docs |& grep -qs '\''HTTP/1.1 200 OK'\'''
++ ping -c1 8.8.8.8
++ curl --silent --head http://www.openhab.org/docs
++ grep -qs 'HTTP/1.1 200 OK'
+ out=1
+ [[ 1 -eq 0 ]]
+ sleep 1
+ [[ -z 1 ]]
+ (( attempts-=1 ))
+ [[ 1 -le 0 ]]
+ cond_echo '\nexecuting ping -c1 8.8.8.8 &> /dev/null || curl --silent --head http://www.openhab.org/docs |& grep -qs '\''HTTP/1.1 200 OK'\'' \c'
+ [[ -z 1 ]]
+ eval 'ping -c1 8.8.8.8 &> /dev/null || curl --silent --head http://www.openhab.org/docs |& grep -qs '\''HTTP/1.1 200 OK'\'''
++ ping -c1 8.8.8.8
++ curl --silent --head http://www.openhab.org/docs
++ grep -qs 'HTTP/1.1 200 OK'
+ out=1
+ [[ 1 -eq 0 ]]
+ sleep 1
+ [[ -z 1 ]]
+ (( attempts-=1 ))
+ [[ 0 -le 0 ]]
+ [[ -z 1 ]]
+ return 0
+ [[ enable == \e\n\a\b\l\e ]]
++ command -v comitup
+ [[ -x /usr/sbin/comitup ]]
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -n '2023-06-08_00:52:54_CEST [openHABian] Ensuring network connectivity... '
2023-06-08_00:52:54_CEST [openHABian] Ensuring network connectivity... + running_in_docker
+ [[ -n '' ]]
+ grep -qs 'docker\|lxc' /proc/1/cgroup
+ [[ -f /.dockerenv ]]
+ return 1
+ tryUntil 'ping -c1 8.8.8.8 &> /dev/null || curl --silent --head http://www.openhab.org/docs |& grep -qs '\''HTTP/1.1 200 OK'\''' 5 1
+ local cmd
+ local attempts
+ local interval
+ cmd='ping -c1 8.8.8.8 &> /dev/null || curl --silent --head http://www.openhab.org/docs |& grep -qs '\''HTTP/1.1 200 OK'\'''
+ attempts=5
+ interval=1
+ [[ 5 -le 0 ]]
+ cond_echo '\nexecuting ping -c1 8.8.8.8 &> /dev/null || curl --silent --head http://www.openhab.org/docs |& grep -qs '\''HTTP/1.1 200 OK'\'' \c'
+ [[ -z 1 ]]
+ eval 'ping -c1 8.8.8.8 &> /dev/null || curl --silent --head http://www.openhab.org/docs |& grep -qs '\''HTTP/1.1 200 OK'\'''
++ ping -c1 8.8.8.8
++ curl --silent --head http://www.openhab.org/docs
++ grep -qs 'HTTP/1.1 200 OK'
+ out=1
+ [[ 1 -eq 0 ]]
+ sleep 1
+ [[ -z 1 ]]
+ (( attempts-=1 ))
+ [[ 4 -le 0 ]]
+ cond_echo '\nexecuting ping -c1 8.8.8.8 &> /dev/null || curl --silent --head http://www.openhab.org/docs |& grep -qs '\''HTTP/1.1 200 OK'\'' \c'
+ [[ -z 1 ]]
+ eval 'ping -c1 8.8.8.8 &> /dev/null || curl --silent --head http://www.openhab.org/docs |& grep -qs '\''HTTP/1.1 200 OK'\'''
++ ping -c1 8.8.8.8
++ curl --silent --head http://www.openhab.org/docs
++ grep -qs 'HTTP/1.1 200 OK'
+ out=1
+ [[ 1 -eq 0 ]]
+ sleep 1
+ [[ -z 1 ]]
+ (( attempts-=1 ))
+ [[ 3 -le 0 ]]
+ cond_echo '\nexecuting ping -c1 8.8.8.8 &> /dev/null || curl --silent --head http://www.openhab.org/docs |& grep -qs '\''HTTP/1.1 200 OK'\'' \c'
+ [[ -z 1 ]]
+ eval 'ping -c1 8.8.8.8 &> /dev/null || curl --silent --head http://www.openhab.org/docs |& grep -qs '\''HTTP/1.1 200 OK'\'''
++ ping -c1 8.8.8.8
++ curl --silent --head http://www.openhab.org/docs
++ grep -qs 'HTTP/1.1 200 OK'
+ out=1
+ [[ 1 -eq 0 ]]
+ sleep 1
+ [[ -z 1 ]]
+ (( attempts-=1 ))
+ [[ 2 -le 0 ]]
+ cond_echo '\nexecuting ping -c1 8.8.8.8 &> /dev/null || curl --silent --head http://www.openhab.org/docs |& grep -qs '\''HTTP/1.1 200 OK'\'' \c'
+ [[ -z 1 ]]
+ eval 'ping -c1 8.8.8.8 &> /dev/null || curl --silent --head http://www.openhab.org/docs |& grep -qs '\''HTTP/1.1 200 OK'\'''
++ ping -c1 8.8.8.8
++ curl --silent --head http://www.openhab.org/docs
++ grep -qs 'HTTP/1.1 200 OK'
+ out=1
+ [[ 1 -eq 0 ]]
+ sleep 1
+ [[ -z 1 ]]
+ (( attempts-=1 ))
+ [[ 1 -le 0 ]]
+ cond_echo '\nexecuting ping -c1 8.8.8.8 &> /dev/null || curl --silent --head http://www.openhab.org/docs |& grep -qs '\''HTTP/1.1 200 OK'\'' \c'
+ [[ -z 1 ]]
+ eval 'ping -c1 8.8.8.8 &> /dev/null || curl --silent --head http://www.openhab.org/docs |& grep -qs '\''HTTP/1.1 200 OK'\'''
++ ping -c1 8.8.8.8
++ curl --silent --head http://www.openhab.org/docs
++ grep -qs 'HTTP/1.1 200 OK'
+ out=1
+ [[ 1 -eq 0 ]]
+ sleep 1
+ [[ -z 1 ]]
+ (( attempts-=1 ))
+ [[ 0 -le 0 ]]
+ [[ -z 1 ]]
+ return 0
+ echo FAILED
FAILED
+ grep -qs openHABian /etc/wpa_supplicant/wpa_supplicant.conf
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo '2023-06-08_00:53:00_CEST [openHABian] The public internet is not reachable. Please check your local network environment.'
2023-06-08_00:53:00_CEST [openHABian] The public internet is not reachable. Please check your local network environment.
++ grep ap_name: /etc/comitup.conf
++ cut '-d ' -f2
+ echo '                          We have launched a publicly accessible hotspot named openHABian-<n>.'
                          We have launched a publicly accessible hotspot named openHABian-<n>.
+ echo '                          Use a device to connect and go to http://raspberrypi.local or http://10.41.0.1/'
                          Use a device to connect and go to http://raspberrypi.local or http://10.41.0.1/
+ echo '                          and select the WiFi network you want to connect your openHABian system to.'
                          and select the WiFi network you want to connect your openHABian system to.
+ echo '                          After about an hour, we will continue trying to get your system installed,'
                          After about an hour, we will continue trying to get your system installed,
+ echo '                          but without proper Internet connectivity this is not guaranteed to work.'
                          but without proper Internet connectivity this is not guaranteed to work.
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -n '2023-06-08_00:53:00_CEST [openHABian] Waiting for dpkg/apt to get ready... '
2023-06-08_00:53:00_CEST [openHABian] Waiting for dpkg/apt to get ready... + wait_for_apt_to_be_ready
+ local attempts
+ local interval
+ local pid
+ attempts=10
+ interval=1
+ [[ 10 -le 0 ]]
+ pid=502
+ apt-get update
+++ tail --pid=502 -f /dev/null
++ eval ''
+ [[ '' -eq 0 ]]
+ return 0
+ echo OK
OK
++ dpkg -s raspberrypi-kernel
++ grep 'Version:[[:space:]]'
+ firmwareBefore='Version: 1:1.20221104-1'
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -n '2023-06-08_00:53:16_CEST [openHABian] Updating repositories and upgrading installed packages... '
2023-06-08_00:53:16_CEST [openHABian] Updating repositories and upgrading installed packages... + apt-get install --fix-broken --yes
+++ apt-get --yes upgrade
++ eval ''
+ [[ '' -eq 100 ]]
++ dpkg -s raspberrypi-kernel
++ grep 'Version:[[:space:]]'
+ [[ Version: 1:1.20221104-1 != \V\e\r\s\i\o\n\:\ \1\:\1\.\2\0\2\2\1\1\0\4\-\1 ]]
+ echo OK
OK
++ command -v python3
+ [[ -x /usr/bin/python3 ]]
+ bash /boot/webserver.bash reinsure_running
bash: /boot/webserver.bash: No such file or directory
++ command -v git
+ [[ -x /usr/bin/git ]]
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -n '2023-06-08_00:53:27_CEST [openHABian] Updating myself from https://github.com/openhab/openhabian, openHAB3 branch... '
2023-06-08_00:53:27_CEST [openHABian] Updating myself from https://github.com/openhab/openhabian, openHAB3 branch... +++ openhabian_update openHAB3
++ eval ''
+ [[ '' -eq 0 ]]
+ echo OK
OK
+ ln -sfn /opt/openhabian/openhabian-setup.sh /usr/local/bin/openhabian-config
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo '2023-06-08_00:53:27_CEST [openHABian] Starting execution of '\''openhabian-config unattended'\''... OK'
2023-06-08_00:53:27_CEST [openHABian] Starting execution of 'openhabian-config unattended'... OK
+ openhabian-config unattended
2023-06-08_00:53:27_CEST [openHABian] Checking for root privileges... OK
+ export UNATTENDED SILENT DEBUGMAX INTERACTIVE
+ for shfile in "${BASEDIR:-/opt/openhabian}"/functions/*.bash
+ source /opt/openhabian/functions/auth.bash
+ for shfile in "${BASEDIR:-/opt/openhabian}"/functions/*.bash
+ source /opt/openhabian/functions/backup.bash
+ for shfile in "${BASEDIR:-/opt/openhabian}"/functions/*.bash
+ source /opt/openhabian/functions/config.bash
+ for shfile in "${BASEDIR:-/opt/openhabian}"/functions/*.bash
+ source /opt/openhabian/functions/ext-storage.bash
+ for shfile in "${BASEDIR:-/opt/openhabian}"/functions/*.bash
+ source /opt/openhabian/functions/find.bash
+ for shfile in "${BASEDIR:-/opt/openhabian}"/functions/*.bash
+ source /opt/openhabian/functions/habapp.bash
+ for shfile in "${BASEDIR:-/opt/openhabian}"/functions/*.bash
+ source /opt/openhabian/functions/helpers.bash
++ ESC='\033['
++ COL_DEF='\033[39;49;00m'
++ COL_RED='\033[31;01m'
++ COL_GREEN='\033[32;01m'
++ COL_YELLOW='\033[33;01m'
++ COL_BLUE='\033[34;01m'
++ COL_MAGENTA='\033[35;01m'
++ COL_CYAN='\033[36;01m'
++ COL_LGRAY='\033[37;01m'
++ COL_DGRAY='\033[90;01m'
++ export COL_DEF COL_RED COL_GREEN COL_YELLOW COL_BLUE COL_MAGENTA COL_CYAN COL_LGRAY COL_DGRAY
+ for shfile in "${BASEDIR:-/opt/openhabian}"/functions/*.bash
+ source /opt/openhabian/functions/influxdb+grafana.bash
+ for shfile in "${BASEDIR:-/opt/openhabian}"/functions/*.bash
+ source /opt/openhabian/functions/java-jre.bash
+ for shfile in "${BASEDIR:-/opt/openhabian}"/functions/*.bash
+ source /opt/openhabian/functions/menu.bash
+ for shfile in "${BASEDIR:-/opt/openhabian}"/functions/*.bash
+ source /opt/openhabian/functions/nodejs-apps.bash
+ for shfile in "${BASEDIR:-/opt/openhabian}"/functions/*.bash
+ source /opt/openhabian/functions/openhab.bash
+ for shfile in "${BASEDIR:-/opt/openhabian}"/functions/*.bash
+ source /opt/openhabian/functions/openhabian.bash
+ for shfile in "${BASEDIR:-/opt/openhabian}"/functions/*.bash
+ source /opt/openhabian/functions/packages.bash
+ for shfile in "${BASEDIR:-/opt/openhabian}"/functions/*.bash
+ source /opt/openhabian/functions/system.bash
+ for shfile in "${BASEDIR:-/opt/openhabian}"/functions/*.bash
+ source /opt/openhabian/functions/vpn.bash
+ for shfile in "${BASEDIR:-/opt/openhabian}"/functions/*.bash
+ source /opt/openhabian/functions/wifi.bash
+ for shfile in "${BASEDIR:-/opt/openhabian}"/functions/*.bash
+ source /opt/openhabian/functions/zram.bash
++ pwd
+ OLDWD=/
+ cd /opt
+ update_openhabian_conf
+ local configFile=/etc/openhabian.conf
+ local referenceConfig=/opt/openhabian/build-image/openhabian.conf
+ cp /etc/openhabian.conf /etc/openhabian.conf.BAK
+ read -r line
+ [[ # Origin: openhabian.conf =~ ^(#)?[a-zA-Z] ]]
+ echo '# Origin: openhabian.conf'
+ read -r line
+ [[ # =~ ^(#)?[a-zA-Z] ]]
+ echo '#'
+ read -r line
+ [[ # Modify your openHABian settings =~ ^(#)?[a-zA-Z] ]]
+ echo '# Modify your openHABian settings'
+ read -r line
+ [[ # Handle with care, only touch if you need to! =~ ^(#)?[a-zA-Z] ]]
+ echo '# Handle with care, only touch if you need to!'
+ read -r line
+ [[ # This file will only be used on unattended initial install. =~ ^(#)?[a-zA-Z] ]]
+ echo '# This file will only be used on unattended initial install.'
+ read -r line
+ [[ # If you want to change anything after unattended install completed, use menu in openhabian-config. =~ ^(#)?[a-zA-Z] ]]
+ echo '# If you want to change anything after unattended install completed, use menu in openhabian-config.'
+ read -r line
+ [[ '' =~ ^(#)?[a-zA-Z] ]]
+ echo ''
+ read -r line
+ [[ # ATTENTION: to disable an option a line MUST be of the format '# option=value' =~ ^(#)?[a-zA-Z] ]]
+ echo '# ATTENTION: to disable an option a line MUST be of the format '\''# option=value'\'''
+ read -r line
+ [[ # KEEP THE SPACE IT IS IMPORTANT !! =~ ^(#)?[a-zA-Z] ]]
+ echo '# KEEP THE SPACE IT IS IMPORTANT !!'
+ read -r line
+ [[ '' =~ ^(#)?[a-zA-Z] ]]
+ echo ''
+ read -r line
+ [[ # Hostname to set this one to =~ ^(#)?[a-zA-Z] ]]
+ echo '# Hostname to set this one to'
+ read -r line
+ [[ hostname=openhabian =~ ^(#)?[a-zA-Z] ]]
+ parsed=hostname=openhabian
+ [[ hostname=openhabian =~ ^#[a-zA-Z] ]]
++ echo hostname=openhabian
++ cut -d= -f1
+ param=hostname
+ [[ -v hostname ]]
+ [[ openhabian == *\ * ]]
+ echo hostname=openhabian
+ read -r line
+ [[ # if it exists, the default user (with its working environment) will be renamed to this username given here ... =~ ^(#)?[a-zA-Z] ]]
+ echo '# if it exists, the default user (with its working environment) will be renamed to this username given here ...'
+ read -r line
+ [[ username=openhabian =~ ^(#)?[a-zA-Z] ]]
+ parsed=username=openhabian
+ [[ username=openhabian =~ ^#[a-zA-Z] ]]
++ echo username=openhabian
++ cut -d= -f1
+ param=username
+ [[ -v username ]]
+ [[ openhabian == *\ * ]]
+ echo username=openhabian
+ read -r line
+ [[ # ... and given this password. The password will be removed from this file after completion for security reasons. =~ ^(#)?[a-zA-Z] ]]
+ echo '# ... and given this password. The password will be removed from this file after completion for security reasons.'
+ read -r line
+ [[ userpw=openhabian =~ ^(#)?[a-zA-Z] ]]
+ parsed=userpw=openhabian
+ [[ userpw=openhabian =~ ^#[a-zA-Z] ]]
++ echo userpw=openhabian
++ cut -d= -f1
+ param=userpw
+ [[ -v userpw ]]
+ [[ openhabian == *\ * ]]
+ echo userpw=openhabian
+ read -r line
+ [[ # set this to download a SSH key and authorize the owner to login as the admin user =~ ^(#)?[a-zA-Z] ]]
+ echo '# set this to download a SSH key and authorize the owner to login as the admin user'
+ read -r line
+ [[ adminkeyurl="" =~ ^(#)?[a-zA-Z] ]]
+ parsed='adminkeyurl=""'
+ [[ adminkeyurl="" =~ ^#[a-zA-Z] ]]
++ echo 'adminkeyurl=""'
++ cut -d= -f1
+ param=adminkeyurl
+ [[ -v adminkeyurl ]]
+ [[ '' == *\ * ]]
+ echo adminkeyurl=
+ read -r line
+ [[ '' =~ ^(#)?[a-zA-Z] ]]
+ echo ''
+ read -r line
+ [[ # Language and timezone. See Debian documentation for valid values. =~ ^(#)?[a-zA-Z] ]]
+ echo '# Language and timezone. See Debian documentation for valid values.'
+ read -r line
+ [[ timezone=Europe/Berlin =~ ^(#)?[a-zA-Z] ]]
+ parsed=timezone=Europe/Berlin
+ [[ timezone=Europe/Berlin =~ ^#[a-zA-Z] ]]
++ echo timezone=Europe/Berlin
++ cut -d= -f1
+ param=timezone
+ [[ -v timezone ]]
+ [[ Europe/Berlin == *\ * ]]
+ echo timezone=Europe/Berlin
+ read -r line
+ [[ locales="en_US.UTF-8 de_DE.UTF-8" =~ ^(#)?[a-zA-Z] ]]
+ parsed='locales="en_US.UTF-8 de_DE.UTF-8"'
+ [[ locales="en_US.UTF-8 de_DE.UTF-8" =~ ^#[a-zA-Z] ]]
++ echo 'locales="en_US.UTF-8 de_DE.UTF-8"'
++ cut -d= -f1
+ param=locales
+ [[ -v locales ]]
+ [[ en_US.UTF-8 de_DE.UTF-8 == *\ * ]]
+ echo 'locales="en_US.UTF-8 de_DE.UTF-8"'
+ read -r line
+ [[ system_default_locale="en_US.UTF-8" =~ ^(#)?[a-zA-Z] ]]
+ parsed='system_default_locale="en_US.UTF-8"'
+ [[ system_default_locale="en_US.UTF-8" =~ ^#[a-zA-Z] ]]
++ echo 'system_default_locale="en_US.UTF-8"'
++ cut -d= -f1
+ param=system_default_locale
+ [[ -v system_default_locale ]]
+ [[ en_US.UTF-8 == *\ * ]]
+ echo system_default_locale=en_US.UTF-8
+ read -r line
+ [[ '' =~ ^(#)?[a-zA-Z] ]]
+ echo ''
+ read -r line
+ [[ # WiFi settings. An ethernet connection is recommended. =~ ^(#)?[a-zA-Z] ]]
+ echo '# WiFi settings. An ethernet connection is recommended.'
+ read -r line
+ [[ # If you have a RPi4, RPi3, RPi0W or a supported external WiFi dongle, the WiFi =~ ^(#)?[a-zA-Z] ]]
+ echo '# If you have a RPi4, RPi3, RPi0W or a supported external WiFi dongle, the WiFi'
+ read -r line
+ [[ # interface can be setup and used for the initial installation. =~ ^(#)?[a-zA-Z] ]]
+ echo '# interface can be setup and used for the initial installation.'
+ read -r line
+ [[ # Fill in your SSID and password below, leave empty or put comment in front to =~ ^(#)?[a-zA-Z] ]]
+ echo '# Fill in your SSID and password below, leave empty or put comment in front to'
+ read -r line
+ [[ # have your WiFi remain unchanged/uninitialized. Make sure your Ethernet works. =~ ^(#)?[a-zA-Z] ]]
+ echo '# have your WiFi remain unchanged/uninitialized. Make sure your Ethernet works.'
+ read -r line
+ [[ # ATTENTION: you need to escape these special characters: $, `, ", \, (newline) =~ ^(#)?[a-zA-Z] ]]
+ echo '# ATTENTION: you need to escape these special characters: $, `, ", \, (newline)'
+ read -r line
+ [[ # 'Escaping' means to put an additional \ in front of that character =~ ^(#)?[a-zA-Z] ]]
+ echo '# '\''Escaping'\'' means to put an additional \ in front of that character'
+ read -r line
+ [[ wifi_ssid="" =~ ^(#)?[a-zA-Z] ]]
+ parsed='wifi_ssid=""'
+ [[ wifi_ssid="" =~ ^#[a-zA-Z] ]]
++ echo 'wifi_ssid=""'
++ cut -d= -f1
+ param=wifi_ssid
+ [[ -v wifi_ssid ]]
+ [[ '' == *\ * ]]
+ echo wifi_ssid=
+ read -r line
+ [[ wifi_password="" =~ ^(#)?[a-zA-Z] ]]
+ parsed='wifi_password=""'
+ [[ wifi_password="" =~ ^#[a-zA-Z] ]]
++ echo 'wifi_password=""'
++ cut -d= -f1
+ param=wifi_password
+ [[ -v wifi_password ]]
+ [[ '' == *\ * ]]
+ echo wifi_password=
+ read -r line
+ [[ '' =~ ^(#)?[a-zA-Z] ]]
+ echo ''
+ read -r line
+ [[ # Wi-Fi setting. Select a two-letter country code suitable for your location =~ ^(#)?[a-zA-Z] ]]
+ echo '# Wi-Fi setting. Select a two-letter country code suitable for your location'
+ read -r line
+ [[ # E.g. US (default), DE, AU, NZ... =~ ^(#)?[a-zA-Z] ]]
+ echo '# E.g. US (default), DE, AU, NZ...'
+ read -r line
+ [[ # You may infringe on local legislature otherwise =~ ^(#)?[a-zA-Z] ]]
+ echo '# You may infringe on local legislature otherwise'
+ read -r line
+ [[ # See https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 or /usr/share/zoneinfo/zone.tab =~ ^(#)?[a-zA-Z] ]]
+ echo '# See https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 or /usr/share/zoneinfo/zone.tab'
+ read -r line
+ [[ wifi_country="" =~ ^(#)?[a-zA-Z] ]]
+ parsed='wifi_country=""'
+ [[ wifi_country="" =~ ^#[a-zA-Z] ]]
++ echo 'wifi_country=""'
++ cut -d= -f1
+ param=wifi_country
+ [[ -v wifi_country ]]
+ [[ '' == *\ * ]]
+ echo wifi_country=
+ read -r line
+ [[ '' =~ ^(#)?[a-zA-Z] ]]
+ echo ''
+ read -r line
+ [[ # Eventually disable all IPv6 e.g. on installation problems =~ ^(#)?[a-zA-Z] ]]
+ echo '# Eventually disable all IPv6 e.g. on installation problems'
+ read -r line
+ [[ # values: "enable", "disable" =~ ^(#)?[a-zA-Z] ]]
+ echo '# values: "enable", "disable"'
+ read -r line
+ [[ ipv6=enable =~ ^(#)?[a-zA-Z] ]]
+ parsed=ipv6=enable
+ [[ ipv6=enable =~ ^#[a-zA-Z] ]]
++ echo ipv6=enable
++ cut -d= -f1
+ param=ipv6
+ [[ -v ipv6 ]]
+ [[ enable == *\ * ]]
+ echo ipv6=enable
+ read -r line
+ [[ '' =~ ^(#)?[a-zA-Z] ]]
+ echo ''
+ read -r line
+ [[ # repo and branch to clone from =~ ^(#)?[a-zA-Z] ]]
+ echo '# repo and branch to clone from'
+ read -r line
+ [[ repositoryurl=https://github.com/openhab/openhabian.git =~ ^(#)?[a-zA-Z] ]]
+ parsed=repositoryurl=https://github.com/openhab/openhabian.git
+ [[ repositoryurl=https://github.com/openhab/openhabian.git =~ ^#[a-zA-Z] ]]
++ echo repositoryurl=https://github.com/openhab/openhabian.git
++ cut -d= -f1
+ param=repositoryurl
+ [[ -v repositoryurl ]]
+ [[ https://github.com/openhab/openhabian == *\ * ]]
+ echo repositoryurl=https://github.com/openhab/openhabian
+ read -r line
+ [[ clonebranch=openHAB3 =~ ^(#)?[a-zA-Z] ]]
+ parsed=clonebranch=openHAB3
+ [[ clonebranch=openHAB3 =~ ^#[a-zA-Z] ]]
++ echo clonebranch=openHAB3
++ cut -d= -f1
+ param=clonebranch
+ [[ -v clonebranch ]]
+ [[ openHAB3 == *\ * ]]
+ echo clonebranch=openHAB3
+ read -r line
+ [[ '' =~ ^(#)?[a-zA-Z] ]]
+ echo ''
+ read -r line
+ [[ # initial openHAB configuration to import (URL or filename) =~ ^(#)?[a-zA-Z] ]]
+ echo '# initial openHAB configuration to import (URL or filename)'
+ read -r line
+ [[ # the file needs to be a zip archive created from openhab-cli backup =~ ^(#)?[a-zA-Z] ]]
+ echo '# the file needs to be a zip archive created from openhab-cli backup'
+ read -r line
+ [[ # initialconfig=/boot/initial.zip =~ ^(#)?[a-zA-Z] ]]
+ echo '# initialconfig=/boot/initial.zip'
+ read -r line
+ [[ '' =~ ^(#)?[a-zA-Z] ]]
+ echo ''
+ read -r line
+ [[ # debug verbosity mode =~ ^(#)?[a-zA-Z] ]]
+ echo '# debug verbosity mode'
+ read -r line
+ [[ # off, on (verbose output in log) or maximum (show every command) =~ ^(#)?[a-zA-Z] ]]
+ echo '# off, on (verbose output in log) or maximum (show every command)'
+ read -r line
+ [[ debugmode=off =~ ^(#)?[a-zA-Z] ]]
+ parsed=debugmode=off
+ [[ debugmode=off =~ ^#[a-zA-Z] ]]
++ echo debugmode=off
++ cut -d= -f1
+ param=debugmode
+ [[ -v debugmode ]]
+ [[ maximum == *\ * ]]
+ echo debugmode=maximum
+ read -r line
+ [[ '' =~ ^(#)?[a-zA-Z] ]]
+ echo ''
+ read -r line
+ [[ # the framebuffer on RPi is enabled by default =~ ^(#)?[a-zA-Z] ]]
+ echo '# the framebuffer on RPi is enabled by default'
+ read -r line
+ [[ framebuffer=enable =~ ^(#)?[a-zA-Z] ]]
+ parsed=framebuffer=enable
+ [[ framebuffer=enable =~ ^#[a-zA-Z] ]]
++ echo framebuffer=enable
++ cut -d= -f1
+ param=framebuffer
+ [[ -v framebuffer ]]
+ [[ enable == *\ * ]]
+ echo framebuffer=enable
+ read -r line
+ [[ '' =~ ^(#)?[a-zA-Z] ]]
+ echo ''
+ read -r line
+ [[ # fake hardware =~ ^(#)?[a-zA-Z] ]]
+ echo '# fake hardware'
+ read -r line
+ [[ # force treating your box as if it was a ... =~ ^(#)?[a-zA-Z] ]]
+ echo '# force treating your box as if it was a ...'
+ read -r line
+ [[ # pi4, pi4_8gb, cm4, pi400, pi3, cm3, pi3+, cm3+, pi2, pi1, cm1, pi0, pi0w, pi0w2, x86 =~ ^(#)?[a-zA-Z] ]]
+ echo '# pi4, pi4_8gb, cm4, pi400, pi3, cm3, pi3+, cm3+, pi2, pi1, cm1, pi0, pi0w, pi0w2, x86'
+ read -r line
+ [[ # hw= =~ ^(#)?[a-zA-Z] ]]
+ echo '# hw='
+ read -r line
+ [[ '' =~ ^(#)?[a-zA-Z] ]]
+ echo ''
+ read -r line
+ [[ # Hardware architecture =~ ^(#)?[a-zA-Z] ]]
+ echo '# Hardware architecture'
+ read -r line
+ [[ # x86_64, amd64, armv6l, armv7l, aarch64, arm64 =~ ^(#)?[a-zA-Z] ]]
+ echo '# x86_64, amd64, armv6l, armv7l, aarch64, arm64'
+ read -r line
+ [[ # hwarch= =~ ^(#)?[a-zA-Z] ]]
+ echo '# hwarch='
+ read -r line
+ [[ '' =~ ^(#)?[a-zA-Z] ]]
+ echo ''
+ read -r line
+ [[ # OS distribution/release =~ ^(#)?[a-zA-Z] ]]
+ echo '# OS distribution/release'
+ read -r line
+ [[ # Valid arguments: raspios, raspbian, debian, ubuntu, stretch, buster, bullseye, bionic, focal =~ ^(#)?[a-zA-Z] ]]
+ echo '# Valid arguments: raspios, raspbian, debian, ubuntu, stretch, buster, bullseye, bionic, focal'
+ read -r line
+ [[ # osrelease= =~ ^(#)?[a-zA-Z] ]]
+ echo '# osrelease='
+ read -r line
+ [[ '' =~ ^(#)?[a-zA-Z] ]]
+ echo ''
+ read -r line
+ [[ # Java version to install =~ ^(#)?[a-zA-Z] ]]
+ echo '# Java version to install'
+ read -r line
+ [[ java_opt=11 =~ ^(#)?[a-zA-Z] ]]
+ parsed=java_opt=11
+ [[ java_opt=11 =~ ^#[a-zA-Z] ]]
++ echo java_opt=11
++ cut -d= -f1
+ param=java_opt
+ [[ -v java_opt ]]
+ [[ 11 == *\ * ]]
+ echo java_opt=11
+ read -r line
+ [[ '' =~ ^(#)?[a-zA-Z] ]]
+ echo ''
+ read -r line
+ [[ # install zram per default, set to "disable" to skip installation =~ ^(#)?[a-zA-Z] ]]
+ echo '# install zram per default, set to "disable" to skip installation'
+ read -r line
+ [[ zraminstall=enable =~ ^(#)?[a-zA-Z] ]]
+ parsed=zraminstall=enable
+ [[ zraminstall=enable =~ ^#[a-zA-Z] ]]
++ echo zraminstall=enable
++ cut -d= -f1
+ param=zraminstall
+ [[ -v zraminstall ]]
+ [[ enable == *\ * ]]
+ echo zraminstall=enable
+ read -r line
+ [[ '' =~ ^(#)?[a-zA-Z] ]]
+ echo ''
+ read -r line
+ [[ # start comitup hotspot if internet is not reachable =~ ^(#)?[a-zA-Z] ]]
+ echo '# start comitup hotspot if internet is not reachable'
+ read -r line
+ [[ hotspot=enable =~ ^(#)?[a-zA-Z] ]]
+ parsed=hotspot=enable
+ [[ hotspot=enable =~ ^#[a-zA-Z] ]]
++ echo hotspot=enable
++ cut -d= -f1
+ param=hotspot
+ [[ -v hotspot ]]
+ [[ enable == *\ * ]]
+ echo hotspot=enable
+ read -r line
+ [[ hotspotpw=openhabian =~ ^(#)?[a-zA-Z] ]]
+ parsed=hotspotpw=openhabian
+ [[ hotspotpw=openhabian =~ ^#[a-zA-Z] ]]
++ echo hotspotpw=openhabian
++ cut -d= -f1
+ param=hotspotpw
+ [[ -v hotspotpw ]]
+ [[ openhabian == *\ * ]]
+ echo hotspotpw=openhabian
+ read -r line
+ [[ '' =~ ^(#)?[a-zA-Z] ]]
+ echo ''
+ read -r line
+ [[ # external SD card device to backup and mirror the internal SD card to =~ ^(#)?[a-zA-Z] ]]
+ echo '# external SD card device to backup and mirror the internal SD card to'
+ read -r line
+ [[ # backupdrive=/dev/sda =~ ^(#)?[a-zA-Z] ]]
+ echo '# backupdrive=/dev/sda'
+ read -r line
+ [[ storageconfig=openhab-dir =~ ^(#)?[a-zA-Z] ]]
+ parsed=storageconfig=openhab-dir
+ [[ storageconfig=openhab-dir =~ ^#[a-zA-Z] ]]
++ echo storageconfig=openhab-dir
++ cut -d= -f1
+ param=storageconfig
+ [[ -v storageconfig ]]
+ [[ openhab-dir == *\ * ]]
+ echo storageconfig=openhab-dir
+ read -r line
+ [[ storagedir=/storage =~ ^(#)?[a-zA-Z] ]]
+ parsed=storagedir=/storage
+ [[ storagedir=/storage =~ ^#[a-zA-Z] ]]
++ echo storagedir=/storage
++ cut -d= -f1
+ param=storagedir
+ [[ -v storagedir ]]
+ [[ /storage == *\ * ]]
+ echo storagedir=/storage
+ read -r line
+ [[ storagetapes=15 =~ ^(#)?[a-zA-Z] ]]
+ parsed=storagetapes=15
+ [[ storagetapes=15 =~ ^#[a-zA-Z] ]]
++ echo storagetapes=15
++ cut -d= -f1
+ param=storagetapes
+ [[ -v storagetapes ]]
+ [[ 15 == *\ * ]]
+ echo storagetapes=15
+ read -r line
+ [[ storagecapacity=1024 =~ ^(#)?[a-zA-Z] ]]
+ parsed=storagecapacity=1024
+ [[ storagecapacity=1024 =~ ^#[a-zA-Z] ]]
++ echo storagecapacity=1024
++ cut -d= -f1
+ param=storagecapacity
+ [[ -v storagecapacity ]]
+ [[ 1024 == *\ * ]]
+ echo storagecapacity=1024
+ read -r line
+ [[ '' =~ ^(#)?[a-zA-Z] ]]
+ echo ''
+ read -r line
+ [[ # mail relay settings =~ ^(#)?[a-zA-Z] ]]
+ echo '# mail relay settings'
+ read -r line
+ [[ # adminmail=john.doe@foo.bar =~ ^(#)?[a-zA-Z] ]]
+ echo '# adminmail=john.doe@foo.bar'
+ read -r line
+ [[ # relayuser=john.doe@foo.bar =~ ^(#)?[a-zA-Z] ]]
+ echo '# relayuser=john.doe@foo.bar'
+ read -r line
+ [[ # relaypass=secret =~ ^(#)?[a-zA-Z] ]]
+ echo '# relaypass=secret'
+ read -r line
+ [[ # smarthost=smtp.gmail.com =~ ^(#)?[a-zA-Z] ]]
+ echo '# smarthost=smtp.gmail.com'
+ read -r line
+ [[ # smartport=587 =~ ^(#)?[a-zA-Z] ]]
+ echo '# smartport=587'
+ read -r line
+ [[ '' =~ ^(#)?[a-zA-Z] ]]
+ echo ''
+ read -r line
+ [[ # Tailscale VPN =~ ^(#)?[a-zA-Z] ]]
+ echo '# Tailscale VPN'
+ read -r line
+ [[ # preauthkey=tskey-xxxxxxxxxxxxxxxxx =~ ^(#)?[a-zA-Z] ]]
+ echo '# preauthkey=tskey-xxxxxxxxxxxxxxxxx'
+ read -r line
+ [[ # tstags=tag:client =~ ^(#)?[a-zA-Z] ]]
+ echo '# tstags=tag:client'
+ read -r line
+ [[ '' =~ ^(#)?[a-zA-Z] ]]
+ echo ''
+ read -r line
+ [[ # Custom log files =~ ^(#)?[a-zA-Z] ]]
+ echo '# Custom log files'
+ read -r line
+ [[ # custom_log_files=("/var/log/foo.log" "/var/log/bar.log") =~ ^(#)?[a-zA-Z] ]]
+ echo '# custom_log_files=("/var/log/foo.log" "/var/log/bar.log")'
+ read -r line
+ [[ '' =~ ^(#)?[a-zA-Z] ]]
+ echo ''
+ read -r line
+ [[ # vim: filetype=sh =~ ^(#)?[a-zA-Z] ]]
+ echo '# vim: filetype=sh'
+ read -r line
+ [[ -f /etc/init.d/openhabian-config ]]
+ config_ipv6
+ local aptConf=/etc/apt/apt.conf.d/S90force-ipv4
+ local sysctlConf=/etc/sysctl.d/99-sysctl.conf
+ [[ enable == \d\i\s\a\b\l\e ]]
+ [[ enable == \e\n\a\b\l\e ]]
+ grep -qs '^[[:space:]]*# Disable all IPv6 functionality' /etc/sysctl.d/99-sysctl.conf
+ [[ -n 1 ]]
+ export DEBIAN_FRONTEND=noninteractive
+ DEBIAN_FRONTEND=noninteractive
+ wait_for_apt_to_finish_update
+ local 'spin=-\|/'
+ local i
+ [[ -z '' ]]
+ apt_update
+ export PID_APT=635
+ PID_APT=635
+ nohup apt-get update
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -n '2023-06-08_00:53:28_CEST [openHABian] Updating Linux package information... '
2023-06-08_00:53:28_CEST [openHABian] Updating Linux package information... + kill -0 635
+ i=1
+ echo -ne '\ \033[2D'
\ e[2D+ sleep 0.5
+ kill -0 635
+ i=2
+ echo -ne '| \033[2D'
| e[2D+ sleep 0.5
+ kill -0 635
+ i=3
+ echo -ne '/ \033[2D'
/ e[2D+ sleep 0.5
+ kill -0 635
+ i=0
+ echo -ne '- \033[2D'
- e[2D+ sleep 0.5
+ kill -0 635
+ i=1
+ echo -ne '\ \033[2D'
\ e[2D+ sleep 0.5
+ kill -0 635
+ i=2
+ echo -ne '| \033[2D'
| e[2D+ sleep 0.5
+ kill -0 635
+ i=3
+ echo -ne '/ \033[2D'
/ e[2D+ sleep 0.5
+ kill -0 635
+ i=0
+ echo -ne '- \033[2D'
- e[2D+ sleep 0.5
+ kill -0 635
+ i=1
+ echo -ne '\ \033[2D'
\ e[2D+ sleep 0.5
+ kill -0 635
+ i=2
+ echo -ne '| \033[2D'
| e[2D+ sleep 0.5
+ kill -0 635
+ i=3
+ echo -ne '/ \033[2D'
/ e[2D+ sleep 0.5
+ kill -0 635
+ i=0
+ echo -ne '- \033[2D'
- e[2D+ sleep 0.5
+ kill -0 635
+ i=1
+ echo -ne '\ \033[2D'
\ e[2D+ sleep 0.5
+ kill -0 635
+ i=2
+ echo -ne '| \033[2D'
| e[2D+ sleep 0.5
+ kill -0 635
+ i=3
+ echo -ne '/ \033[2D'
/ e[2D+ sleep 0.5
+ kill -0 635
+ i=0
+ echo -ne '- \033[2D'
- e[2D+ sleep 0.5
+ kill -0 635
+ i=1
+ echo -ne '\ \033[2D'
\ e[2D+ sleep 0.5
+ kill -0 635
+ i=2
+ echo -ne '| \033[2D'
| e[2D+ sleep 0.5
+ kill -0 635
+ i=3
+ echo -ne '/ \033[2D'
/ e[2D+ sleep 0.5
+ kill -0 635
+ i=0
+ echo -ne '- \033[2D'
- e[2D+ sleep 0.5
+ kill -0 635
+ i=1
+ echo -ne '\ \033[2D'
\ e[2D+ sleep 0.5
+ kill -0 635
+ i=2
+ echo -ne '| \033[2D'
| e[2D+ sleep 0.5
+ kill -0 635
+ i=3
+ echo -ne '/ \033[2D'
/ e[2D+ sleep 0.5
+ kill -0 635
+ i=0
+ echo -ne '- \033[2D'
- e[2D+ sleep 0.5
+ kill -0 635
+ i=1
+ echo -ne '\ \033[2D'
\ e[2D+ sleep 0.5
+ kill -0 635
+ echo OK
OK
+ load_create_config
+ local 'questionText=\nWelcome to openHABian!\n\nPlease provide the name of your Linux user i.e. the account you normally log in with.\n\nTypical user names are '\''pi'\'' or '\''ubuntu'\''.'
+ local input
+ [[ -f /etc/openhabian.conf ]]
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -n '2023-06-08_00:53:41_CEST [openHABian] Loading configuration file '\''/etc/openhabian.conf'\''... '
2023-06-08_00:53:41_CEST [openHABian] Loading configuration file '/etc/openhabian.conf'... ++ getent group openhabian
+ [[ ! -n openhabian:x:1000: ]]
+ id -u openhabian
+ source /etc/openhabian.conf
++ hostname=openhabian
++ username=openhabian
++ userpw=openhabian
++ adminkeyurl=
++ timezone=Europe/Berlin
++ locales='en_US.UTF-8 de_DE.UTF-8'
++ system_default_locale=en_US.UTF-8
++ wifi_ssid=
++ wifi_password=
++ wifi_country=
++ ipv6=enable
++ repositoryurl=https://github.com/openhab/openhabian
++ clonebranch=openHAB3
++ debugmode=maximum
++ framebuffer=enable
++ java_opt=11
++ zraminstall=enable
++ hotspot=enable
++ hotspotpw=openhabian
++ storageconfig=openhab-dir
++ storagedir=/storage
++ storagetapes=15
++ storagecapacity=1024
+ echo OK
OK
+ change_swapsize
+ is_pi
+ is_pifour
+ [[ '' == \p\i\4 ]]
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]11[0-9a-fA-F]$' /proc/cpuinfo
+ return 1
+ is_cmfour
+ [[ '' == \c\m\4 ]]
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]14[0-9a-fA-F]$' /proc/cpuinfo
+ return 1
+ is_pi400
+ [[ '' == \p\i\4\0\0 ]]
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]13[0-9a-fA-F]$' /proc/cpuinfo
+ return 1
+ is_cmthreeplus
+ [[ '' == \c\m\3\+ ]]
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]10[0-9a-fA-F]$' /proc/cpuinfo
+ return 1
+ is_cmthree
+ [[ '' == \c\m\3 ]]
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]0[aA][0-9a-fA-F]$' /proc/cpuinfo
+ return 1
+ is_pithreeplus
+ [[ '' == \p\i\3\+ ]]
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]0[dDeE][0-9a-fA-F]$' /proc/cpuinfo
+ return 0
+ return 0
+ local free
+ local minFree
+ local swap
+ local totalMemory
++ awk '/MemTotal/ {print $2}' /proc/meminfo
+ totalMemory=995384
+ [[ -z 995384 ]]
+ swap=1990768
+ minFree=3981536
++ df -hk /
++ awk '/dev/ { print $4 }'
+ free=25037220
+ [[ 25037220 -ge 3981536 ]]
+ size=1990768
+ (( size/=1024 ))
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -n '2023-06-08_00:53:41_CEST [openHABian] Adjusting swap size to 1944 MB... '
2023-06-08_00:53:41_CEST [openHABian] Adjusting swap size to 1944 MB... + cond_redirect dphys-swapfile swapoff
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ dphys-swapfile swapoff \033[39;49;00m'

e[90;01m$ dphys-swapfile swapoff e[39;49;00m
+ dphys-swapfile swapoff
+ return 0
+ cond_redirect sed -i 's|^#*.*CONF_SWAPSIZE=.*$|CONF_SWAPSIZE=1944|g' /etc/dphys-swapfile
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ sed -i s|^#*.*CONF_SWAPSIZE=.*$|CONF_SWAPSIZE=1944|g /etc/dphys-swapfile \033[39;49;00m'

e[90;01m$ sed -i s|^#*.*CONF_SWAPSIZE=.*$|CONF_SWAPSIZE=1944|g /etc/dphys-swapfile e[39;49;00m
+ sed -i 's|^#*.*CONF_SWAPSIZE=.*$|CONF_SWAPSIZE=1944|g' /etc/dphys-swapfile
+ return 0
+ cond_redirect dphys-swapfile swapon
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ dphys-swapfile swapon \033[39;49;00m'

e[90;01m$ dphys-swapfile swapon e[39;49;00m
+ dphys-swapfile swapon
+ return 0
+ echo 'OK (reboot required)'
OK (reboot required)
+ timezone_setting
+ [[ -n '' ]]
+ [[ -n Europe/Berlin ]]
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -n '2023-06-08_00:53:42_CEST [openHABian] Setting timezone based on openhabian.conf... '
2023-06-08_00:53:42_CEST [openHABian] Setting timezone based on openhabian.conf... + running_in_docker
+ [[ -n '' ]]
+ grep -qs 'docker\|lxc' /proc/1/cgroup
+ [[ -f /.dockerenv ]]
+ return 1
+ running_on_github
+ [[ -n '' ]]
+ return 1
+ cond_redirect timedatectl set-timezone Europe/Berlin
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ timedatectl set-timezone Europe/Berlin \033[39;49;00m'

e[90;01m$ timedatectl set-timezone Europe/Berlin e[39;49;00m
+ timedatectl set-timezone Europe/Berlin
+ return 0
++ cat /etc/timezone
+ echo 'OK (Europe/Berlin)'
OK (Europe/Berlin)
+ setup_ntp enable
+ running_in_docker
+ [[ -n '' ]]
+ grep -qs 'docker\|lxc' /proc/1/cgroup
+ [[ -f /.dockerenv ]]
+ return 1
+ is_raspios
+ [[ '' == \r\a\s\p\i\o\s ]]
+ is_raspbian
+ [[ '' == \r\a\s\p\b\i\a\n ]]
++ cat /etc/os-release
+ [[ PRETTY_NAME="Raspbian GNU/Linux 11 (bullseye)"
NAME="Raspbian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs" =~ Raspbian ]]
+ return 0
+ return 0
+ [[ enable == \e\n\a\b\l\e ]]
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -n '2023-06-08_00:53:42_CEST [openHABian] Enabling time synchronization using NTP... '
2023-06-08_00:53:42_CEST [openHABian] Enabling time synchronization using NTP... + cond_redirect cp /opt/openhabian/includes/generic/50-timesyncd.conf /lib/dhcpcd/dhcpcd-hooks/
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ cp /opt/openhabian/includes/generic/50-timesyncd.conf /lib/dhcpcd/dhcpcd-hooks/ \033[39;49;00m'

e[90;01m$ cp /opt/openhabian/includes/generic/50-timesyncd.conf /lib/dhcpcd/dhcpcd-hooks/ e[39;49;00m
+ cp /opt/openhabian/includes/generic/50-timesyncd.conf /lib/dhcpcd/dhcpcd-hooks/
+ return 0
+ cond_redirect timedatectl set-ntp true
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ timedatectl set-ntp true \033[39;49;00m'

e[90;01m$ timedatectl set-ntp true e[39;49;00m
+ timedatectl set-ntp true
+ return 0
+ echo OK
OK
+ locale_setting
+ local syslocale
+ dpkg -s locales
+ [[ -n '' ]]
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -n '2023-06-08_00:53:42_CEST [openHABian] Setting locale based on openhabian.conf... '
2023-06-08_00:53:42_CEST [openHABian] Setting locale based on openhabian.conf... + is_ubuntu
+ [[ '' == \u\b\u\n\t\u ]]
++ cat /etc/os-release
+ [[ PRETTY_NAME="Raspbian GNU/Linux 11 (bullseye)"
NAME="Raspbian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs" =~ Ubuntu ]]
+ return 1
+ for loc in $locales
+ sed -i '/^#[[:space:]]en_US.UTF-8/s/^#[[:space:]]//' /etc/locale.gen
+ for loc in $locales
+ sed -i '/^#[[:space:]]de_DE.UTF-8/s/^#[[:space:]]//' /etc/locale.gen
+ cond_redirect locale-gen
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ locale-gen \033[39;49;00m'

e[90;01m$ locale-gen e[39;49;00m
+ locale-gen
Generating locales (this might take a while)...
  de_DE.UTF-8... done
  en_GB.UTF-8... done
  en_US.UTF-8... done
Generation complete.
+ return 0
+ syslocale=en_US.UTF-8
+ cond_redirect update-locale LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LC_CTYPE=en_US.UTF-8 LANGUAGE=en_US.UTF-8
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ update-locale LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LC_CTYPE=en_US.UTF-8 LANGUAGE=en_US.UTF-8 \033[39;49;00m'

e[90;01m$ update-locale LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LC_CTYPE=en_US.UTF-8 LANGUAGE=en_US.UTF-8 e[39;49;00m
+ update-locale LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LC_CTYPE=en_US.UTF-8 LANGUAGE=en_US.UTF-8
+ return 0
+ echo 'OK (reboot required)'
OK (reboot required)
+ [[ -n '' ]]
+ hostname_change
+ running_in_docker
+ [[ -n '' ]]
+ grep -qs 'docker\|lxc' /proc/1/cgroup
+ [[ -f /.dockerenv ]]
+ return 1
+ local newHostname
+ [[ -n '' ]]
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -n '2023-06-08_00:54:54_CEST [openHABian] Setting hostname of the base system based on openhabian.conf... '
2023-06-08_00:54:54_CEST [openHABian] Setting hostname of the base system based on openhabian.conf... + newHostname=openhabian
+ cond_redirect hostnamectl set-hostname openhabian
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ hostnamectl set-hostname openhabian \033[39;49;00m'

e[90;01m$ hostnamectl set-hostname openhabian e[39;49;00m
+ hostnamectl set-hostname openhabian
+ return 0
+ sed -i 's|127.0.1.1.*$|127.0.1.1 openhabian|g' /etc/hosts
+ echo OK
OK
+ [[ -n '' ]]
+ memory_split
+ is_pi
+ is_pifour
+ [[ '' == \p\i\4 ]]
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]11[0-9a-fA-F]$' /proc/cpuinfo
+ return 1
+ is_cmfour
+ [[ '' == \c\m\4 ]]
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]14[0-9a-fA-F]$' /proc/cpuinfo
+ return 1
+ is_pi400
+ [[ '' == \p\i\4\0\0 ]]
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]13[0-9a-fA-F]$' /proc/cpuinfo
+ return 1
+ is_cmthreeplus
+ [[ '' == \c\m\3\+ ]]
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]10[0-9a-fA-F]$' /proc/cpuinfo
+ return 1
+ is_cmthree
+ [[ '' == \c\m\3 ]]
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]0[aA][0-9a-fA-F]$' /proc/cpuinfo
+ return 1
+ is_pithreeplus
+ [[ '' == \p\i\3\+ ]]
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]0[dDeE][0-9a-fA-F]$' /proc/cpuinfo
+ return 0
+ return 0
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -n '2023-06-08_00:54:54_CEST [openHABian] Setting the GPU memory split down to 16MB for headless system... '
2023-06-08_00:54:54_CEST [openHABian] Setting the GPU memory split down to 16MB for headless system... + grep -qs '^[[:space:]]*gpu_mem' /boot/config.txt
+ cond_redirect sed -i 's|gpu_mem=.*$|gpu_mem=16|g' /boot/config.txt
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ sed -i s|gpu_mem=.*$|gpu_mem=16|g /boot/config.txt \033[39;49;00m'

e[90;01m$ sed -i s|gpu_mem=.*$|gpu_mem=16|g /boot/config.txt e[39;49;00m
+ sed -i 's|gpu_mem=.*$|gpu_mem=16|g' /boot/config.txt
+ return 0
+ echo OK
OK
+ sed -i '/^dtoverlay=vc4-f\?kms-v3d/d' /boot/config.txt
+ enable_rpi_audio
+ is_pi
+ is_pifour
+ [[ '' == \p\i\4 ]]
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]11[0-9a-fA-F]$' /proc/cpuinfo
+ return 1
+ is_cmfour
+ [[ '' == \c\m\4 ]]
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]14[0-9a-fA-F]$' /proc/cpuinfo
+ return 1
+ is_pi400
+ [[ '' == \p\i\4\0\0 ]]
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]13[0-9a-fA-F]$' /proc/cpuinfo
+ return 1
+ is_cmthreeplus
+ [[ '' == \c\m\3\+ ]]
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]10[0-9a-fA-F]$' /proc/cpuinfo
+ return 1
+ is_cmthree
+ [[ '' == \c\m\3 ]]
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]0[aA][0-9a-fA-F]$' /proc/cpuinfo
+ return 1
+ is_pithreeplus
+ [[ '' == \p\i\3\+ ]]
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]0[dDeE][0-9a-fA-F]$' /proc/cpuinfo
+ return 0
+ return 0
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -n '2023-06-08_00:54:54_CEST [openHABian] Enabling Audio output... '
2023-06-08_00:54:54_CEST [openHABian] Enabling Audio output... + grep -qs '^[[:space:]]*dtparam=audio' /boot/config.txt
+ cond_redirect sed -i 's|dtparam=audio.*$|dtparam=audio=on|g' /boot/config.txt
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ sed -i s|dtparam=audio.*$|dtparam=audio=on|g /boot/config.txt \033[39;49;00m'

e[90;01m$ sed -i s|dtparam=audio.*$|dtparam=audio=on|g /boot/config.txt e[39;49;00m
+ sed -i 's|dtparam=audio.*$|dtparam=audio=on|g' /boot/config.txt
+ return 0
+ cond_redirect adduser openhabian audio
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ adduser openhabian audio \033[39;49;00m'

e[90;01m$ adduser openhabian audio e[39;49;00m
+ adduser openhabian audio
The user `openhabian' is already a member of `audio'.
+ return 0
+ echo OK
OK
+ basic_packages
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo -n '2023-06-08_00:54:55_CEST [openHABian] Installing basic can'\''t-be-wrong packages (screen, vim, ...)... '
2023-06-08_00:54:55_CEST [openHABian] Installing basic can't-be-wrong packages (screen, vim, ...)... ++ command -v raspi-config
+ [[ -x '' ]]
+ cond_redirect apt-get install --yes acl arping apt-utils bash-completion bzip2 coreutils curl dirmngr git htop man-db mc multitail nano nmap lsb-release screen software-properties-common telnet usbutils util-linux vfu vim wget whiptail xz-utils zip
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ apt-get install --yes acl arping apt-utils bash-completion bzip2 coreutils curl dirmngr git htop man-db mc multitail nano nmap lsb-release screen software-properties-common telnet usbutils util-linux vfu vim wget whiptail xz-utils zip \033[39;49;00m'

e[90;01m$ apt-get install --yes acl arping apt-utils bash-completion bzip2 coreutils curl dirmngr git htop man-db mc multitail nano nmap lsb-release screen software-properties-common telnet usbutils util-linux vfu vim wget whiptail xz-utils zip e[39;49;00m
+ apt-get install --yes acl arping apt-utils bash-completion bzip2 coreutils curl dirmngr git htop man-db mc multitail nano nmap lsb-release screen software-properties-common telnet usbutils util-linux vfu vim wget whiptail xz-utils zip
Reading package lists...
Building dependency tree...
Reading state information...
apt-utils is already the newest version (2.2.4).
bash-completion is already the newest version (1:2.11-2).
bzip2 is already the newest version (1.0.8-4).
bzip2 set to manually installed.
coreutils is already the newest version (8.32-4).
curl is already the newest version (7.74.0-1.3+deb11u3).
dirmngr is already the newest version (2.2.27-2+deb11u2).
git is already the newest version (1:2.30.2-1).
htop is already the newest version (3.0.5-7).
lsb-release is already the newest version (11.1.0+rpi1).
lsb-release set to manually installed.
man-db is already the newest version (2.9.4-2).
nano is already the newest version (5.4-2+deb11u2).
usbutils is already the newest version (1:013-3).
util-linux is already the newest version (2.36.1-8+deb11u1).
wget is already the newest version (1.21-1+deb11u1).
wget set to manually installed.
whiptail is already the newest version (0.52.21-4+b2).
whiptail set to manually installed.
xz-utils is already the newest version (5.2.5-2.1~deb11u1).
xz-utils set to manually installed.
zip is already the newest version (3.0-12).
The following packages were automatically installed and are no longer required:
  alsa-topology-conf alsa-ucm-conf alsa-utils bluez bluez-firmware dos2unix
  libasound2 libasound2-data libatopology2 libfftw3-single3 libsamplerate0
  python3-toml rfkill triggerhappy
Use 'apt autoremove' to remove them.
The following additional packages will be installed:
  gir1.2-packagekitglib-1.0 libappstream4 libglib2.0-bin libglib2.0-data
  libgpm2 liblinear4 liblua5.3-0 libnet1 libpackagekit-glib2-18 libstemmer0d
  libutempter0 lua-lpeg mc-data nmap-common packagekit packagekit-tools
  python3-distro-info python3-pycurl python3-software-properties
  unattended-upgrades vim-runtime
Suggested packages:
  gpm liblinear-tools liblinear-dev arj catdvi | texlive-binaries dbview
  djvulibre-bin epub-utils genisoimage gv imagemagick libaspell-dev links
  | w3m | lynx odt2txt poppler-utils python python-boto python-tz unar
  wimtools xpdf | pdf-viewer ncat ndiff zenmap appstream libcurl4-gnutls-dev
  python-pycurl-doc python3-pycurl-dbg byobu | screenie | iselect bsd-mailx
  default-mta | mail-transport-agent needrestart powermgmt-base ctags vim-doc
  vim-scripts
The following NEW packages will be installed:
  acl arping gir1.2-packagekitglib-1.0 libappstream4 libglib2.0-bin
  libglib2.0-data libgpm2 liblinear4 liblua5.3-0 libnet1
  libpackagekit-glib2-18 libstemmer0d libutempter0 lua-lpeg mc mc-data
  multitail nmap nmap-common packagekit packagekit-tools python3-distro-info
  python3-pycurl python3-software-properties screen software-properties-common
  telnet unattended-upgrades vfu vim vim-runtime
0 upgraded, 31 newly installed, 0 to remove and 0 not upgraded.
Need to get 6,013 kB/18.8 MB of archives.
After this operation, 86.5 MB of additional disk space will be used.
Err:1 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf telnet armhf 0.17-42
  Temporary failure resolving 'raspbian.raspberrypi.org'
Err:2 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf liblinear4 armhf 2.3.0+dfsg-5
  Temporary failure resolving 'raspbian.raspberrypi.org'
Err:3 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf liblua5.3-0 armhf 5.3.3-1.1+b1
  Temporary failure resolving 'raspbian.raspberrypi.org'
Err:4 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf lua-lpeg armhf 1.0.2-1
  Temporary failure resolving 'raspbian.raspberrypi.org'
Err:5 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf nmap-common all 7.91+dfsg1+really7.80+dfsg1-2
  Temporary failure resolving 'raspbian.raspberrypi.org'
Err:6 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf nmap armhf 7.91+dfsg1+really7.80+dfsg1-2
  Temporary failure resolving 'raspbian.raspberrypi.org'
E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/pool/main/n/netkit-telnet/telnet_0.17-42_armhf.deb  Temporary failure resolving 'raspbian.raspberrypi.org'
E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/pool/main/libl/liblinear/liblinear4_2.3.0%2bdfsg-5_armhf.deb  Temporary failure resolving 'raspbian.raspberrypi.org'
E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/pool/main/l/lua5.3/liblua5.3-0_5.3.3-1.1%2bb1_armhf.deb  Temporary failure resolving 'raspbian.raspberrypi.org'
E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/pool/main/l/lua-lpeg/lua-lpeg_1.0.2-1_armhf.deb  Temporary failure resolving 'raspbian.raspberrypi.org'
E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/pool/main/n/nmap/nmap-common_7.91%2bdfsg1%2breally7.80%2bdfsg1-2_all.deb  Temporary failure resolving 'raspbian.raspberrypi.org'
E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/pool/main/n/nmap/nmap_7.91%2bdfsg1%2breally7.80%2bdfsg1-2_armhf.deb  Temporary failure resolving 'raspbian.raspberrypi.org'
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
+ return 100
+ echo FAILED
FAILED
+ exit 1
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo '2023-06-08_00:55:00_CEST [openHABian] We tried our best to get your system installed, but this may not have worked properly.'
2023-06-08_00:55:00_CEST [openHABian] We tried our best to get your system installed, but this may not have worked properly.
+ dpkg --configure -a
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo '2023-06-08_00:55:00_CEST [openHABian] Execution of '\''openhabian-config unattended'\'' completed.'
2023-06-08_00:55:00_CEST [openHABian] Execution of 'openhabian-config unattended' completed.
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo '2023-06-08_00:55:00_CEST [openHABian] First time setup successfully finished. Rebooting your system!'
2023-06-08_00:55:00_CEST [openHABian] First time setup successfully finished. Rebooting your system!
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo '2023-06-08_00:55:00_CEST [openHABian] After rebooting the openHAB dashboard will be available at: http://openhabian:8080'
2023-06-08_00:55:00_CEST [openHABian] After rebooting the openHAB dashboard will be available at: http://openhabian:8080
++ timestamp
++ printf '%(%F_%T_%Z)T\n' -1
+ echo '2023-06-08_00:55:00_CEST [openHABian] After rebooting to gain access to a console, simply reconnect using ssh.'
2023-06-08_00:55:00_CEST [openHABian] After rebooting to gain access to a console, simply reconnect using ssh.
+ sleep 12
++ command -v python3
+ [[ -x /usr/bin/python3 ]]
+ bash /boot/webserver.bash inst_done
bash: /boot/webserver.bash: No such file or directory
+ sleep 12
++ command -v python3
+ [[ -x /usr/bin/python3 ]]
+ bash /boot/webserver.bash cleanup
bash: /boot/webserver.bash: No such file or directory
+ running_in_docker
+ [[ -n '' ]]
+ grep -qs 'docker\|lxc' /proc/1/cgroup
+ [[ -f /.dockerenv ]]
+ return 1
+ reboot

The guide is here: openHABian | openHAB

Thank you, I found it and already posted the log.

If that address still isn’t resolvable (for me it is) I’d guess you have a problem with your DNS or network setup.

Hi,

my DNS Server does resolve it, too.

nslookup raspbian.raspberrypi.org

Server: 192.168.0.35

Address: 192.168.0.35#53

Non-authoritative answer:

raspbian.raspberrypi.org canonical name = mirrordirector.raspbian.org.

Name: mirrordirector.raspbian.org

Address: 93.93.128.193

I checked some more:

After the fist boot, when I log in before the “first-boot”-sequence starts, I have an eth0 with the correct IP-Adress and settings. When I log in after the first reboot before the “first-boot”-sequence starts the second time and do a “ifconfig”, I do not have an eth0-device anymore listed… and as a result of that I cannot access the Internet.

So… I installed Openhabian not using one of the Raspberry Pi Imager Images, instead I installed Raspbian Lite and did the GIT installation procedure for Openhabian and this worked flawlessly for me.