I do not quite understand what is causing the grub.cfg to not exist.<br>The logic behind this code:<br>for path in [self.update_grub_command,<br> self.grub_install_command,<br> self.config_file,<br>
self.header_config_file]:<br> if not os.path.isfile(path):<br> raise SystemExit('Fatal error. Can not find %s' % path)<br><br> # Make sure config files are up to date<br>
os.system(self.update_grub_command)<br><br><br>Is that it does not check for grub.cfg because it may not exist at the time, but is supposed to be created by update-grub, which is run immediately after the check.<br>
The first line of output you provided is not from sum, but it may be something that blocks update-grub from working. Try to investigate /boot/grub/device.map<br>