added a couple of information messages

This commit is contained in:
Bruce Leidl 2019-01-15 16:59:12 -05:00
parent 4f603cf4d4
commit 0f4b319ea1

View File

@ -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");