File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments