forked from brl/citadel-tools
added a couple of information messages
This commit is contained in:
parent
4f603cf4d4
commit
0f4b319ea1
@ -160,9 +160,12 @@ fn install_rootfs(arg_matches: &ArgMatches) -> Result<()> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let img = load_image(arg_matches)?;
|
let img = load_image(arg_matches)?;
|
||||||
|
|
||||||
|
info!("Verifying header signature");
|
||||||
img.header().verify_signature()?;
|
img.header().verify_signature()?;
|
||||||
|
|
||||||
if !arg_matches.is_present("skip-sha") {
|
if !arg_matches.is_present("skip-sha") {
|
||||||
|
info!("Verifying sha256 hash of image");
|
||||||
let shasum = img.generate_shasum()?;
|
let shasum = img.generate_shasum()?;
|
||||||
if shasum != img.metainfo().shasum() {
|
if shasum != img.metainfo().shasum() {
|
||||||
bail!("image file does not have expected sha256 value");
|
bail!("image file does not have expected sha256 value");
|
||||||
|
Loading…
Reference in New Issue
Block a user