FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > ArchLinux > ArchLinux General Discussion

 
 
LinkBack Thread Tools
 
Old 10-25-2011, 05:43 PM
Peter Jones
 
Default Run grub2-config before grub2-mkconfig (736993)

serial.mod doesn't get created until grub2-install gets run, but
grub2-mkconfig needs it. Haven't figured out what the right thing to
do is, but running grub2-install once ahead of time seems to fix it, so
for f16 that's looking like our best option.
---
pyanaconda/bootloader.py | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/pyanaconda/bootloader.py b/pyanaconda/bootloader.py
index d187ec7..6250f74 100644
--- a/pyanaconda/bootloader.py
+++ b/pyanaconda/bootloader.py
@@ -1661,6 +1661,15 @@ class GRUB2(GRUB):
if rc:
log.error("failed to set default menu entry to %s" % productName)

+ # serial.mod doesn't exist until grub2-install is run, but
+ # grub2-mkconfig will fail on some serial-console machines unless
+ # it is there. So just run grub2-install once to make sure the
+ # necessary modules are there before configuring.
+ try:
+ self.install(install_root = install_root)
+ except:
+ pass
+
# now tell grub2 to generate the main configuration file
rc = iutil.execWithRedirect("grub2-mkconfig",
["-o", self.config_file],
--
1.7.6.4

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 10-25-2011, 05:57 PM
David Lehman
 
Default Run grub2-config before grub2-mkconfig (736993)

On Tue, 2011-10-25 at 13:43 -0400, Peter Jones wrote:
> serial.mod doesn't get created until grub2-install gets run, but
> grub2-mkconfig needs it. Haven't figured out what the right thing to
> do is, but running grub2-install once ahead of time seems to fix it, so
> for f16 that's looking like our best option.

This is bullshit, but grub2 seems to have left us no choice. Ack.

> ---
> pyanaconda/bootloader.py | 9 +++++++++
> 1 files changed, 9 insertions(+), 0 deletions(-)
>
> diff --git a/pyanaconda/bootloader.py b/pyanaconda/bootloader.py
> index d187ec7..6250f74 100644
> --- a/pyanaconda/bootloader.py
> +++ b/pyanaconda/bootloader.py
> @@ -1661,6 +1661,15 @@ class GRUB2(GRUB):
> if rc:
> log.error("failed to set default menu entry to %s" % productName)
>
> + # serial.mod doesn't exist until grub2-install is run, but
> + # grub2-mkconfig will fail on some serial-console machines unless
> + # it is there. So just run grub2-install once to make sure the
> + # necessary modules are there before configuring.
> + try:
> + self.install(install_root = install_root)
> + except:
> + pass
> +
> # now tell grub2 to generate the main configuration file
> rc = iutil.execWithRedirect("grub2-mkconfig",
> ["-o", self.config_file],


_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 12:13 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org