File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change 44
55use std:: {
66 collections:: { BTreeMap , BTreeSet } ,
7+ fmt:: Display ,
78 ops:: Deref ,
89 path:: { Path , PathBuf } ,
910 process:: Command ,
@@ -86,6 +87,15 @@ enum FsType {
8687 Ext4 ,
8788}
8889
90+ impl Display for FsType {
91+ fn fmt ( & self , f : & mut std:: fmt:: Formatter < ' _ > ) -> std:: fmt:: Result {
92+ match self {
93+ FsType :: Zfs => write ! ( f, "zfs" ) ,
94+ FsType :: Ext4 => write ! ( f, "ext4" ) ,
95+ }
96+ }
97+ }
98+
8999impl FromStr for FsType {
90100 type Err = anyhow:: Error ;
91101 fn from_str ( s : & str ) -> Result < Self , Self :: Err > {
@@ -754,6 +764,7 @@ impl<'a> Stage0<'a> {
754764
755765 // Parse kernel command line options
756766 let opts = parse_dstack_options ( & self . shared ) . context ( "Failed to parse kernel cmdline" ) ?;
767+ extend_rtmr3 ( "storage-fs" , opts. storage_fs . to_string ( ) . as_bytes ( ) ) ?;
757768 info ! (
758769 "Filesystem options: encryption={}, filesystem={:?}" ,
759770 opts. storage_encrypted, opts. storage_fs
You can’t perform that action at this time.
0 commit comments