On Sat, Jul 21, 2007 at 12:29:18PM +0200, Neil Thompson wrote: > On Sat, Jul 21, 2007 at 11:06:20AM +0100, Andy Green wrote: > > Somebody in the thread at some point said: > > > On Sat, Jul 21, 2007 at 10:29:07AM +0100, Andy Green wrote: > > >> Somebody in the thread at some point said: > > >>> Installing: kernel ####################### [25/71] > > >>> grubby fatal error: unable to find a suitable template > > >> > > >> export KERNVER=2.6.1234 ; grubby --config-file /tmp/grub.conf > > >> --add-kernel /boot/vmlinuz-$KERNVER --initrd=/boot/initrd-$KERNVER.img > > >> --title $KERNVER --set-default=/boot/vmlinuz-$KERNVER --copy-default > > >> > > >> This works as expected here and makes a fake entry at the top of > > >> /tmp/grub.conf. Does it create the template error for you? > > >> > > > > > > Yep - same error. > > > > > > grub.conf looks like this - > > > > then I get your error. The difference is that /boot/vmlinuz-2.6.22-rc7 > > exists and the ..rc7x file doesn't. > > > > straceing grubby with the ..rc7x bogus edit shows... > > > > > > access("/boot/vmlinuz-2.6.22-rc7x", R_OK) = -1 ENOENT (No such file or > > directory) > > access("/boot/vmlinuz-2.6.22-rc7x", R_OK) = -1 ENOENT (No such file or > > directory) > > write(2, "grubby fatal error: unable to fi"..., 55grubby fatal error: > > unable to find a suitable template > > ) = 55 > > > > Therefore... does /boot/vmlinuz-2.6.21-1.3194.fc7 exist on your box? > > > > It does...BUT, when I do an strace, I get - > > access("/vmlinuz-2.6.21-1.3194.fc7", R_OK) = -1 ENOENT (No such file or directory) > access("/vmlinuz-2.6.21-1.3194.fc7", R_OK) = -1 ENOENT (No such file or directory) > > without the "/boot" in front - this is curious and probably has something to do with > the anaconda stuffup when I upgraded and my /boot partition disappeared. I've not been > able to figure that one out yet. > And that's nailled it! I put the /boot in from of the filenames and it works. grubby seems to expect there to be a /boot partition and for the files to be relative to that. Now I have to try to get my /boot partition working again. -- Cheers! (Relax...have a homebrew) Neil THEOREM: VI is perfect. PROOF: VI in roman numerals is 6. The natural numbers < 6 which divide 6 are 1, 2, and 3. 1+2+3 = 6. So 6 is a perfect number. Therefore, VI is perfect. QED -- Arthur Tateishi