@ -75,9 +75,27 @@ public: 
			
		
	
		
		
			
				
					
					
 
			
		
	
		
		
			
				
					
					
 
			
		
	
		
		
			
				
					
					  static  std : : map < std : : string ,  std : : string >  get_init_logs ( )  {    static  std : : map < std : : string ,  std : : string >  get_init_logs ( )  {   
			
		
	
		
		
			
				
					
					    return {      std : : map < std : : string ,  std : : string >  ret  = {   
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					      { " /BUILD " ,  util : : read_file ( " /BUILD " ) } ,        { " /BUILD " ,  util : : read_file ( " /BUILD " ) } ,   
			
		
	
		
		
			
				
					
					    } ;      } ;   
			
		
	
		
		
			
				
					
					
 
			
		
	
		
		
			
				
					
					    std : : string  bs  =  util : : check_output ( " abctl --boot_slot " ) ;   
			
		
	
		
		
			
				
					
					    ret [ " boot slot " ]  =  bs . substr ( 0 ,  bs . find_first_of ( " \n " ) ) ;   
			
		
	
		
		
			
				
					
					
 
			
		
	
		
		
			
				
					
					    std : : string  temp  =  util : : read_file ( " /dev/disk/by-partlabel/ssd " ) ;   
			
		
	
		
		
			
				
					
					    temp . erase ( temp . find_last_not_of ( std : : string ( " \0 \r \n " ,  3 ) ) + 1 ) ;   
			
		
	
		
		
			
				
					
					    ret [ " boot temp " ]  =  temp ;   
			
		
	
		
		
			
				
					
					
 
			
		
	
		
		
			
				
					
					    // TODO: log something from system and boot
   
			
		
	
		
		
			
				
					
					    for  ( std : : string  part  :  { " xbl " ,  " abl " ,  " aop " ,  " devcfg " ,  " xbl_config " } )  {   
			
		
	
		
		
			
				
					
					      for  ( std : : string  slot  :  { " a " ,  " b " } )  {   
			
		
	
		
		
			
				
					
					        std : : string  partition  =  part  +  " _ "  +  slot ;   
			
		
	
		
		
			
				
					
					        std : : string  hash  =  util : : check_output ( " sha256sum /dev/disk/by-partlabel/ "  +  partition ) ;   
			
		
	
		
		
			
				
					
					        ret [ partition ]  =  hash . substr ( 0 ,  hash . find_first_of ( "   " ) ) ;   
			
		
	
		
		
			
				
					
					      }   
			
		
	
		
		
			
				
					
					    }   
			
		
	
		
		
			
				
					
					
 
			
		
	
		
		
			
				
					
					    return  ret ;   
			
		
	
		
		
			
				
					
					  }    }   
			
		
	
		
		
			
				
					
					
 
			
		
	
		
		
			
				
					
					  static  bool  get_ssh_enabled ( )  {  return  Params ( ) . getBool ( " SshEnabled " ) ;  } ;    static  bool  get_ssh_enabled ( )  {  return  Params ( ) . getBool ( " SshEnabled " ) ;  } ;