Skip to content

Commit ef175c4

Browse files
committed
Merge branch '1.1' of ssh://gitlab.aiursoft.cn:2202/anduin/anduinos into 1.1
2 parents b128d30 + 9661e02 commit ef175c4

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/build.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,14 @@ EOF
195195
-e "tmp/.*" \
196196
-e "swapfile"
197197
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
198206

199207
print_ok "Generating filesystem.size on /casper/filesystem.size..."
200208
printf $(sudo du -sx --block-size=1 new_building_os | cut -f1) > image/casper/filesystem.size

0 commit comments

Comments
 (0)