Jump to content

Photo

Problem with Grub Install and Boot Update

grub boot-update

3 replies to this topic

#1
hogsdill

hogsdill

    Newbie

  • Members
  • Pip
  • 1 posts

I screwed up my boot partition the other day and had to create the filesystem again and reconfigure grub. I believe that I have everything setup like it was, but for some reason I cannot get it to boot.

 

When I ran the grub-install command, everything seemed to work.

(chroot) sysresccd / # grub-install --no-floppy /dev/sda
Installation finished. No error reported.

But when I ran boot-update, I got an error message that I haven't seen before. Any one know how to fix this? I searched via Google, but didn't see anything definitive.

(chroot) sysresccd / # boot-update
Traceback (most recent call last):
  File "/sbin/boot-update", line 15, in <module>
    import funtoo.boot.config
ImportError: No module named funtoo.boot.config

Here is my grub.cfg

set timeout=10

  insmod part_msdos
  insmod ext2
  set root=(hostdisk//dev/sda,msdos1)
  search --no-floppy --fs-uuid --set eb03fe8e-058d-4e83-83e5-4625800511f8
if loadfont /grub/unifont.pf2; then
   set gfxmode=1440x900
   insmod gfxterm
   insmod vbe
   terminal_output gfxterm
fi

set menu_color_normal=cyan/black
set menu_color_highlight=black/cyan

menuentry "Funtoo Linux - Gentoo Kernel 3.14.5 - bzImage_linux-3.14.5-gentoo" {
  insmod part_msdos
  insmod ext2
  set root=(hostdisk//dev/sda,msdos1)
  search --no-floppy --fs-uuid --set eb03fe8e-058d-4e83-83e5-4625800511f8
  linux /bzImage_linux-3.14.5-gentoo rootfstype=ext4 root=/dev/sda3
  set gfxpayload=text
}
set default=0

Here is my /etc/fstab. Pretty simple setup.

# <fs>		<mountpoint>		<type>		<opts>		<dump/pass>

/dev/sda1	/boot			ext4		noauto,noatime	1 2
/dev/sda2	none			swap		sw		0 0
/dev/sda3	/			ext4		noatime		0 1

And also /etc/boot.conf

boot {
	generate grub
	default "Funtoo Linux - Gentoo Kernel 3.14.5" 
	timeout 10 
}

display {
	gfxmode 1440x900
	#background /boot/
	}

color {
	normal cyan/black
	highlight black/cyan
	}

"Funtoo Linux - Gentoo Kernel 3.14.5" {
	kernel bzImage_linux-3.14.5-gentoo 
}

"Funtoo Linux genkernel" {
	kernel kernel[-v]
	initrd initramfs[-v]
	params += real_root=auto 
} 


#2
javajake

javajake

    Newbie

  • Members
  • Pip
  • 6 posts
Did you run env-update and source /etc/profile after chroot?

#3
soupcan-stevens

soupcan-stevens

    Newbie

  • Members
  • Pip
  • 1 posts

I get this is an old thread, but I had the same problem and solved it by running the script with python 3.4.



#4
prof

prof

    Newbie

  • Members
  • Pip
  • 4 posts

I solved a similar problem in an opposite way, by forcing it to run in python2.7 (eselect python showed 3.4 as a default)





Reply to this topic



  



Also tagged with one or more of these keywords: grub, boot-update

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users