On Thu, May 03, 2012 at 02:20:58PM -0400, Peter Jones wrote: > As Mads said in the bug: > > Anaconda, you should run grub2-install first, then grub2-mkconfig. > grub2-mkconfig might look in /boot/grub2 to see what grub2-install > placed there. > --- > pyanaconda/bootloader.py | 16 +++++++++++++++- > 1 file changed, 15 insertions(+), 1 deletion(-) > > diff --git a/pyanaconda/bootloader.py b/pyanaconda/bootloader.py > index 4d3294d..fa263ef 100644 > --- a/pyanaconda/bootloader.py > +++ b/pyanaconda/bootloader.py > @@ -1772,7 +1772,6 @@ class GRUB2(GRUB): > > def write_config(self): > self.write_config_console(None) > - self.write_device_map() > self.write_defaults() > > # if we fail to setup password auth we should complete the > @@ -1820,6 +1819,21 @@ class GRUB2(GRUB): > if rc: > raise BootLoaderError("bootloader install failed") > > + def write(self): > + """ Write the bootloader configuration and install the bootloader. """ > + if self.update_only: > + self.update() > + return > + > + self.write_device_map() > + self.stage2_device.format.sync(root=ROOT_PATH) > + sync() > + self.install() > + sync() > + self.stage2_device.format.sync(root=ROOT_PATH) > + self.write_config() > + sync() > + self.stage2_device.format.sync(root=ROOT_PATH) > > class YabootSILOBase(BootLoader): > def write_config_password(self, config): > -- > 1.7.10 Ack for f17 and master. -- Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)
Attachment:
pgp9BvuA8MGce.pgp
Description: PGP signature
_______________________________________________ Anaconda-devel-list mailing list Anaconda-devel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/anaconda-devel-list