#NEWLINE# @ fails ( 'aminator.distro.linux.configure_chroot.error' ) #NEWLINE# @ timer ( 'aminator.distro.linux.configure_chroot.duration' ) #NEWLINE# def _configure_chroot( self ) : #NEWLINE# #INDENT# config = self . _config . plugins [ self . full_name ] #NEWLINE# log . debug ( 'Configuring chroot at {0}' . format ( self . _mountpoint ) ) #NEWLINE# if config . get ( 'configure_mounts' , True ) : #NEWLINE# #INDENT# if ( not self . _configure_chroot_mounts ( ) ) : #NEWLINE# #INDENT# log . critical ( 'Configuration of chroot mounts failed' ) #NEWLINE# return False #NEWLINE# #UNINDENT# #UNINDENT# if config . get ( 'provision_configs' , True ) : #NEWLINE# #INDENT# if ( not self . _install_provision_configs ( ) ) : #NEWLINE# #INDENT# log . critical ( 'Installation of provisioning config failed' ) #NEWLINE# return False #NEWLINE# #UNINDENT# #UNINDENT# log . debug ( 'starting short_circuit ' ) #NEWLINE# if config . get ( 'short_circuit' , False ) : #NEWLINE# #INDENT# if ( not self . _deactivate_provisioning_service_block ( ) ) : #NEWLINE# #INDENT# log . critical ( 'Failure short-circuiting files' ) #NEWLINE# return False #NEWLINE# #UNINDENT# #UNINDENT# log . debug ( 'finished short_circuit' ) #NEWLINE# log . debug ( 'Chroot environment ready' ) #NEWLINE# return True