@@ -4,8 +4,7 @@ use std::fs::{create_dir_all, read_dir};
44use std:: io:: Write ;
55use std:: path:: Path ;
66
7- //static LAYERS_DIR: &str = "/usr/share/fex-emu/layers";
8- static LAYERS_DIR : & str = "/tmp/foo/layers" ;
7+ static LAYERS_DIR : & str = "/usr/share/fex-emu/layers" ;
98static MOUNTS_DIR : & str = "/var/lib/fex-emu/layers" ;
109static ROOTFS_DIR : & str = "/var/lib/fex-emu/rootfs" ;
1110static WORK_DIR : & str = "/var/lib/fex-emu/workdir" ;
@@ -33,15 +32,15 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
3332 layers. insert ( stem, layer) ;
3433 }
3534
36- println ! ( "{:?}" , layers) ;
35+ // println!("{:?}", layers);
3736
3837 let mounts_path = Path :: new ( MOUNTS_DIR ) ;
3938
4039 let mut units = HashMap :: new ( ) ;
4140 for ( stem, _) in & layers {
4241 units. insert ( stem, systemd_escape_path ( mounts_path. join ( stem) . as_path ( ) ) ) ;
4342 }
44- println ! ( "{:?}" , units) ;
43+ // println!("{:?}", units);
4544
4645 for ( stem, unit) in & units {
4746 let unit_path = dest_path. join ( & unit) ;
@@ -62,19 +61,19 @@ Where={}",
6261
6362 let mut stems: Vec < _ > = layers. keys ( ) . collect :: < Vec < _ > > ( ) ;
6463 stems. sort ( ) ;
65- println ! ( "{:?}" , stems) ;
64+ // println!("{:?}", stems);
6665
6766 let rootfs_unit_name = systemd_escape_path ( Path :: new ( ROOTFS_DIR ) ) ;
6867 let rootfs_unit_path = dest_path. join ( & rootfs_unit_name) ;
6968 let mut rootfs_unit = File :: create ( & rootfs_unit_path) . unwrap ( ) ;
7069 let rootfs_unit_deps: Vec < _ > = stems. iter ( ) . map ( |stem| units[ stem] . clone ( ) ) . collect ( ) ;
71- println ! ( "{:?}" , rootfs_unit_deps) ;
70+ // println!("{:?}", rootfs_unit_deps);
7271 stems. reverse ( ) ;
7372 let overlay_mounts: Vec < _ > = stems
7473 . iter ( )
7574 . map ( |stem| mounts_path. join ( stem) . to_string_lossy ( ) . to_string ( ) )
7675 . collect ( ) ;
77- println ! ( "{:?}" , overlay_mounts) ;
76+ // println!("{:?}", overlay_mounts);
7877
7978 writeln ! (
8079 rootfs_unit,
0 commit comments