#NEWLINE# def guess_grub2_mkconfig( chroot = '' ) : #NEWLINE# #INDENT# for grub_mkconfig in ( '/sbin/grub-mkconfig' , '/sbin/grub2-mkconfig' , '/usr/sbin/grub-mkconfig' , '/usr/sbin/grub2-mkconfig' ) : #NEWLINE# #INDENT# if os . path . isfile ( ( chroot + grub_mkconfig ) ) : #NEWLINE# #INDENT# return grub_mkconfig #NEWLINE# #UNINDENT# #UNINDENT# raise errors . GrubUtilsError ( 'grub2 mkconfig binary not found' )