Skip to content

Commit

Permalink
debug hotspot offline install 1
Browse files Browse the repository at this point in the history
Signed-off-by: Markus Storm <[email protected]>
  • Loading branch information
mstormi committed Feb 4, 2025
1 parent 6f5beda commit 2c9501d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions build-image/offline-install-modifications.bash
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
export BASEDIR="/opt/openhabian"
export DEBIAN_FRONTEND="noninteractive"
export PREOFFLINE="1"
set -x
debfileurl=https://davesteele.github.io/comitup/deb
debfile=davesteele-comitup-apt-source
debfilelatest=latest.deb
Expand Down
3 changes: 2 additions & 1 deletion build.bash
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,8 @@ offline_install_modifications() {
loopPrefix="$(kpartx -asv "$imageFile" | grep -oE "loop([0-9]+)" | head -n 1)"
mount -o rw -t ext4 "/dev/mapper/${loopPrefix}p2" "$mountFolder"
mount -o rw -t vfat "/dev/mapper/${loopPrefix}p1" "${mountFolder}/boot"
systemd-nspawn --directory="$2" /opt/openhabian/build-image/offline-install-modifications.bash &> /dev/null
#systemd-nspawn --directory="$2" /opt/openhabian/build-image/offline-install-modifications.bash &> /dev/null
systemd-nspawn --directory="$2" /opt/openhabian/build-image/offline-install-modifications.bash
sync
df -h "$mountFolder"
df -h "${mountFolder}/boot"
Expand Down

0 comments on commit 2c9501d

Please sign in to comment.