Try to verify output file for stock builds
This commit is contained in:
@@ -11,11 +11,10 @@ Sanely build and deploy OpenWRT images using the Image Builder or from source co
|
|||||||
```(text)
|
```(text)
|
||||||
--profile,-p PROFILE
|
--profile,-p PROFILE
|
||||||
--release,-r,--version,-v RELEASE ("snapshot", "22.03.3")
|
--release,-r,--version,-v RELEASE ("snapshot", "22.03.3")
|
||||||
--buildroot,-b PATH
|
--buildroot,-b PATH (Default: script directory)
|
||||||
Default: location of openwrtbuilder script
|
|
||||||
--source
|
--source
|
||||||
Build image from source, not from Image Builder
|
Build image from source, not from Image Builder
|
||||||
Allows make config options to be passed
|
Allows make config options to be passed in profile
|
||||||
--ssh-upgrade HOST
|
--ssh-upgrade HOST
|
||||||
Example: root@192.168.1.1
|
Example: root@192.168.1.1
|
||||||
--ssh-backup SSH_PATH
|
--ssh-backup SSH_PATH
|
||||||
@@ -25,6 +24,8 @@ Sanely build and deploy OpenWRT images using the Image Builder or from source co
|
|||||||
--reset
|
--reset
|
||||||
Cleanup all source and output files
|
Cleanup all source and output files
|
||||||
Can be combined with -p to reset a specific profile
|
Can be combined with -p to reset a specific profile
|
||||||
|
--yes,-y
|
||||||
|
Assume yes for all questions (automatic mode)
|
||||||
--debug,-d
|
--debug,-d
|
||||||
--help,-h
|
--help,-h
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -772,10 +772,15 @@ main() {
|
|||||||
extract "$ib_file" "$BUILDDIR" || return $?
|
extract "$ib_file" "$BUILDDIR" || return $?
|
||||||
add_repos
|
add_repos
|
||||||
make_images
|
make_images
|
||||||
# Verify output iamges
|
# Verify output image for stock builds (in testing)
|
||||||
for outfile in "$BINDIR"/*.img.gz; do
|
if [[ ! -v P_ARR[packages] || -z ${P_ARR[packages]} ]]; then
|
||||||
|
shopt -s nullglob
|
||||||
|
local -a outfiles=("$BINDIR"/*.img.gz "$BINDIR"/*.img)
|
||||||
|
shopt -u nullglob
|
||||||
|
for outfile in "${outfiles[@]}"; do
|
||||||
verify "$outfile" "$ib_sha256_file" || return 1
|
verify "$outfile" "$ib_sha256_file" || return 1
|
||||||
done
|
done
|
||||||
|
fi
|
||||||
#copyFiles
|
#copyFiles
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user