Skip to content

Commit 9ceefc3

Browse files
authored
1sttrixie (#2083)
* handle Wi-Fi in trixie like in bookworm * Debian numbering cosmetics Signed-off-by: Markus Storm <[email protected]> * debug build Signed-off-by: Markus Storm <[email protected]>
1 parent bfd2a68 commit 9ceefc3

File tree

4 files changed

+16
-5
lines changed

4 files changed

+16
-5
lines changed

.github/workflows/build-action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,12 @@ jobs:
6464
echo "image32=$(ls openhabian-raspios32-latest*.img.xz)" >> $GITHUB_OUTPUT
6565
echo "image64=$(ls openhabian-raspios64-latest*.img.xz)" >> $GITHUB_OUTPUT
6666
echo "json_image=$(ls rpi-imager-openhab.json)" >> $GITHUB_OUTPUT
67-
- name: Archive openHABian 32bit Debian 12 trixie image
67+
- name: Archive openHABian 32bit Debian 13 trixie image
6868
uses: actions/upload-artifact@v4
6969
with:
7070
name: ${{ steps.build.outputs.image32 }}
7171
path: ${{ steps.build.outputs.image32 }}
72-
- name: Archive openHABian 64bit Debian 12 trixie image
72+
- name: Archive openHABian 64bit Debian 13 trixie image
7373
uses: actions/upload-artifact@v4
7474
with:
7575
name: ${{ steps.build.outputs.image64 }}

build-image/first-boot.bash

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,12 +105,20 @@ wifiPassword="$wifi_password"
105105
if is_trixie || is_bookworm && is_pi; then # attention no brackets => left-associative ordering so put && last
106106
echo -n "$(timestamp) [openHABian] Setting up NetworkManager and Wi-Fi connection... "
107107
systemctl enable --now NetworkManager
108+
nmcli g
108109
nmcli r wifi on
110+
nmcli g
111+
nmcli r wifi on
112+
nmcli g
109113

110114
if [[ -n $wifiSSID ]]; then
111115
# Setup WiFi via NetworkManager
112116
# shellcheck source=/etc/openhabian.conf disable=SC2154
117+
nmcli g
118+
nmcli -w 30 d wifi connect "${wifiSSID}" password "${wifiPassword}" ifname wlan0
119+
nmcli g
113120
nmcli -w 30 d wifi connect "${wifiSSID}" password "${wifiPassword}" ifname wlan0
121+
nmcli g
114122
fi
115123
elif grep -qs "up" /sys/class/net/eth0/operstate; then
116124
# Actually check if ethernet is working

build-image/offline-install-modifications.bash

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ curl -fsSL https://pkgs.tailscale.com/stable/debian/bookworm.tailscale-keyring.l
3232
adoptium_fetch_apt
3333

3434
apt-get --quiet update
35-
apt-get --quiet upgrade --yes --force-confnew
35+
apt-get --quiet upgrade --yes
3636
apt-get --quiet install --download-only --yes openhab openhab-addons \
3737
acl amanda-common amanda-server amanda-client apt-transport-https arping \
3838
avahi-daemon bash-completion bc bzip2 comitup coreutils curl \
@@ -41,7 +41,7 @@ apt-get --quiet install --download-only --yes openhab openhab-addons \
4141
libblas3 libc6 libcairo2 libgudev-1.0-0 libjs-jquery libmbim-glib4 libgpm2 \
4242
liblinear4 liblua5.4-0 libmbim-proxy \
4343
libmm-glib0 libndp0 libnet1 libnm0 libpcre2-32-0 \
44-
libpixman-1-0 libqmi-glib5 libqmi-proxy libsodium23i libstdc++6 \
44+
libpixman-1-0 libqmi-glib5 libqmi-proxy libstdc++6 \
4545
libteamdctl0 libxcb-render0 libxcb-shm0 libxrender1 libyascreen0 \
4646
make man-db mc mc-data mailcap mailutils modemmanager moreutils multitail \
4747
nano network-manager nmap nmap-common \
@@ -52,6 +52,8 @@ apt-get --quiet install --download-only --yes openhab openhab-addons \
5252
samba screen sysstat tailscale telnet temurin-21-jre usbutils util-linux \
5353
unzip vfu vfu-yascreen vim vim-runtime wget whiptail xz-utils zip zlib1g
5454

55+
ls -l /var/cache/apt/archives/
56+
5557
source /opt/openhabian/functions/nodejs-apps.bash
5658
nodejs_setup
5759

build.bash

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,8 @@ offline_install_modifications() {
151151
loopPrefix="$(kpartx -asv "$imageFile" | grep -oE "loop([0-9]+)" | head -n 1)"
152152
mount -o rw -t ext4 "/dev/mapper/${loopPrefix}p2" "$mountFolder"
153153
mount -o rw -t vfat "/dev/mapper/${loopPrefix}p1" "${mountFolder}/boot"
154-
systemd-nspawn --directory="$2" /opt/openhabian/build-image/offline-install-modifications.bash &> /dev/null
154+
systemd-nspawn --directory="$2" /opt/openhabian/build-image/offline-install-modifications.bash
155+
#systemd-nspawn --directory="$2" /opt/openhabian/build-image/offline-install-modifications.bash &> /dev/null
155156
sync
156157
df -h "$mountFolder"
157158
df -h "${mountFolder}/boot"

0 commit comments

Comments
 (0)