File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ use rustix::fs::CWD;
1313use composefs_boot:: { write_boot, BootOps } ;
1414
1515use composefs:: {
16- fsverity:: { FsVerityHashValue , Sha512HashValue } ,
16+ fsverity:: { FsVerityHashValue , Sha256HashValue , Sha512HashValue } ,
1717 repository:: Repository ,
1818} ;
1919
@@ -147,7 +147,7 @@ enum Command {
147147 } ,
148148}
149149
150- fn verity_opt ( opt : & Option < String > ) -> Result < Option < Sha512HashValue > > {
150+ fn verity_opt ( opt : & Option < String > ) -> Result < Option < Sha256HashValue > > {
151151 Ok ( opt. as_ref ( ) . map ( FsVerityHashValue :: from_hex) . transpose ( ) ?)
152152}
153153
Original file line number Diff line number Diff line change @@ -35,8 +35,10 @@ use crate::spec::ImageStatus;
3535use crate :: utils:: deployment_fd;
3636
3737/// See https://github.com/containers/composefs-rs/issues/159
38+ // pub type ComposefsRepository =
39+ // composefs::repository::Repository<composefs::fsverity::Sha512HashValue>;
3840pub type ComposefsRepository =
39- composefs:: repository:: Repository < composefs:: fsverity:: Sha512HashValue > ;
41+ composefs:: repository:: Repository < composefs:: fsverity:: Sha256HashValue > ;
4042
4143/// Path to the physical root
4244pub const SYSROOT : & str = "sysroot" ;
You can’t perform that action at this time.
0 commit comments