We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b128d30 + 9661e02 commit ef175c4Copy full SHA for ef175c4
src/build.sh
@@ -195,6 +195,14 @@ EOF
195
-e "tmp/.*" \
196
-e "swapfile"
197
judge "Compress rootfs"
198
+
199
+ print_ok "Verifying the integrity of filesystem.squashfs..."
200
+ if sudo unsquashfs -s image/casper/filesystem.squashfs; then
201
+ print_ok "Verification successful. The file appears to be valid."
202
+ else
203
+ print_err "Verification FAILED! The squashfs file is likely corrupt."
204
+ exit 1
205
+ fi
206
207
print_ok "Generating filesystem.size on /casper/filesystem.size..."
208
printf $(sudo du -sx --block-size=1 new_building_os | cut -f1) > image/casper/filesystem.size
0 commit comments