Skip to content

Commit 5345c41

Browse files
Update build-ubuntu-rootfs.sh
Signed-off-by: Bjordis Collaku <[email protected]>
1 parent db5c6ae commit 5345c41

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

rootfs/scripts/build-ubuntu-rootfs.sh

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -166,12 +166,16 @@ image_preproccessing_iot() {
166166
}
167167
fi
168168

169-
# Check unsquashfs (required). Keep explicit to avoid unexpected installs.
169+
# --- Silent ensure of unsquashfs (squashfs-tools) ---
170170
if ! command -v unsquashfs >/dev/null 2>&1; then
171-
echo "[ERROR] 'unsquashfs' not found. Please install 'squashfs-tools'."
172-
echo " e.g., apt-get install -y squashfs-tools"
173-
exit 1
174-
fi
171+
echo "[INFO][iot][ubuntu] 'unsquashfs' not found. Installing squashfs-tools silently..."
172+
export DEBIAN_FRONTEND=noninteractive
173+
apt-get -qq update >/dev/null 2>&1 || true
174+
apt-get -qq install -y squashfs-tools >/dev/null 2>&1 || {
175+
echo "[ERROR] Failed to install 'squashfs-tools' required for unsquashfs."
176+
exit 1
177+
}
178+
fi
175179

176180
echo "[INFO][iot][ubuntu] Downloading ISO..."
177181

0 commit comments

Comments
 (0)