Upgrading kernel, terminal hangs? [Solved, sorta]

Issues Related to Hardware (Sound, Video, Printers, Scanners, Webcams, Touchpads, Keyboards, Sensors, Drives, GRUB, etc.)

Moderator: Moderators

Upgrading kernel, terminal hangs? [Solved, sorta]

Postby Merlin7777 » Thu Nov 29, 2007 22:04

Hi all, I am upgrading my kernel by following the how to using genkernel.

Now, when I get to the line:
# genkernel --kernel-config=/usr/src/config --menuconfig --bootloader=grub --splash=sabayon all

My terminal prints this and just stops at a new line

Code: Select all
/usr/share/genkernel/gen_initrd.sh: line 220: syntax error near unexpected token `then'
/usr/share/genkernel/gen_initrd.sh: line 220: `         then'
/usr/share/genkernel/gen_funcs.sh: line 46: ${LOGFILE}: ambiguous redirect
/usr/share/genkernel/gen_funcs.sh: line 96: [: : integer expression expected

/usr/share/genkernel/gen_funcs.sh: line 96: [: : integer expression expected



It doesn't prompt me for anything, the cursor is just waiting on the far left of the terminal, with no prompt. Is this okay? Am I supposed to do anything? How long should I wait?
Last edited by Merlin7777 on Wed Dec 05, 2007 7:42, edited 1 time in total.
Merlin7777
Simple Hen
 
Posts: 80
Joined: Sun Nov 25, 2007 3:47

Re: Upgrading kernel, terminal hangs?

Postby Merlin7777 » Thu Nov 29, 2007 23:39

Okay, I got past that step above by updating my etc files using "etc-update".

But I get a new error:

Code: Select all
/usr/share/genkernel/gen_initrd.sh: line 230: syntax error near unexpected token `}'
/usr/share/genkernel/gen_initrd.sh: line 230: `}'
* ERROR: Could not read /usr/share/genkernel/gen_initrd.sh

* -- Grepping log... --


* ERROR: Could not read /usr/share/genkernel/gen_initrd.sh
--
* Report any genkernel bugs to bugs.gentoo.org and
* assign your bug to [email protected] Please include
* as much information as you can in your bug report; attaching
* /var/log/genkernel.log so that your issue can be dealt with effectively.
*
* Please do *not* report compilation failures as genkernel bugs!
*

* ERROR: Could not read /usr/share/genkernel/gen_initrd.sh
--
* Report any genkernel bugs to bugs.gentoo.org and
* assign your bug to [email protected] Please include
* as much information as you can in your bug report; attaching
* /var/log/genkernel.log so that your issue can be dealt with effectively.
*
* Please do *not* report compilation failures as genkernel bugs!
*

* ERROR: Could not read /usr/share/genkernel/gen_initrd.sh
--
* Report any genkernel bugs to bugs.gentoo.org and
* assign your bug to [email protected] Please include
* as much information as you can in your bug report; attaching
* /var/log/genkernel.log so that your issue can be dealt with effectively.
*
* Please do *not* report compilation failures as genkernel bugs!
*

* ERROR: Could not read /usr/share/genkernel/gen_initrd.sh
--
* Report any genkernel bugs to bugs.gentoo.org and
* assign your bug to [email protected] Please include
* as much information as you can in your bug report; attaching
* /var/log/genkernel.log so that your issue can be dealt with effectively.
*
* Please do *not* report compilation failures as genkernel bugs!
*

* ERROR: Could not read /usr/share/genkernel/gen_initrd.sh

* -- End log... --

* Please consult /var/log/genkernel.log for more information and any
* errors that were reported above.

* Report any genkernel bugs to bugs.gentoo.org and
* assign your bug to [email protected] Please include
* as much information as you can in your bug report; attaching
* /var/log/genkernel.log so that your issue can be dealt with effectively.
*
* Please do *not* report compilation failures as genkernel bugs!
*
/usr/share/genkernel/gen_funcs.sh: line 235: cleanup: command not found


What should I do?

Edit: I edited the gen_initrd.sh file at line 219. There was a mistake in the else if line, is said "elsif" instead of "else if". But now I get a different error, which is posted above.
Merlin7777
Simple Hen
 
Posts: 80
Joined: Sun Nov 25, 2007 3:47

Re: Upgrading kernel, terminal hangs?

Postby wolfden » Fri Nov 30, 2007 0:28

elsif is correct

did you emerge genkernel?
wolfden
Sharecropper
 
Posts: 9050
Joined: Sat Jan 14, 2006 0:55
Location: Midwest USA

Re: Upgrading kernel, terminal hangs?

Postby Merlin7777 » Fri Nov 30, 2007 0:53

yes I emerged genkernel.

Are you sure "elsif" is correct? as I was getting an error about it before I changed it to "else if". I will change it back I guess.
Merlin7777
Simple Hen
 
Posts: 80
Joined: Sun Nov 25, 2007 3:47

Re: Upgrading kernel, terminal hangs?

Postby wolfden » Fri Nov 30, 2007 3:04

what version of sabayon?

you emerge --sync && layman -S first right?

It helps to know a history of what you have done
wolfden
Sharecropper
 
Posts: 9050
Joined: Sat Jan 14, 2006 0:55
Location: Midwest USA

Re: Upgrading kernel, terminal hangs?

Postby Merlin7777 » Fri Nov 30, 2007 3:15

I am using Sabayon 3.4f DVD version.

As I mentioned in the first post, I am following the "HOW TO Upgrade your kernel using Genkernel". I did emerge --sync and then layman -s sabayon.

Next I emerged genkernel and sabayon-sources. Then I eselected my new kernel, option "2".

I then ran the zcat line. Then I got to the "# genkernel --kernel-config=/usr/src/config --menuconfig --bootloader=grub --splash=sabayon all" line. Ran it, and I got my initial error, which I deleted. As I ran a etc-update and it fixed my problems, at first atleast. Then I ran genkernel again and I got a message like the one above, except it was about a syntax error before line 220, which I "fixed" by changing the "elsif" line to "else if". Then I ran the genkernel line yet again and got the current error above.

Anything else you need?

I am using the latest version of genkernel, 3.4.9 pre6 I think.
Merlin7777
Simple Hen
 
Posts: 80
Joined: Sun Nov 25, 2007 3:47

Re: Upgrading kernel, terminal hangs?

Postby wolfden » Fri Nov 30, 2007 6:50

how did you partition your drives?
wolfden
Sharecropper
 
Posts: 9050
Joined: Sat Jan 14, 2006 0:55
Location: Midwest USA

Re: Upgrading kernel, terminal hangs?

Postby Merlin7777 » Fri Nov 30, 2007 23:44

I partitioned them manually.

I have 3 harddrives, 2 in a raid array that holds my xp install, but I configured my sabayon and ubuntu installs to run off of the third harddrive. They don't even know that I have the raid array, as I boot into XP by changing the boot order of my harddrives in my bios.

I have a 500 gb harddrive split into a 390 gb NTFS partition that I can access from both XP and my linux installs.

Then with the remaining space I have a boot partition and swap each for Sabayon 3.4f and Ubuntu 7.10.

Here is my grub.conf
Code: Select all
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You do not have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /, eg.
#          root (hd0,4)
#          kernel /boot/kernel-genkernel real_root=UUID=0709f714-507b-46e9-ae30-2202ef1b8482
#          initrd /boot/initramfs-genkernel
#boot=sda
default=0
timeout=6
splashimage=(hd0,4)/boot/grub/splash.xpm.gz
title Sabayon Linux x86 3.4 Standard Edition
   root (hd0,4)
   kernel /boot/kernel-genkernel-x86-2.6.22-sabayon  root=/dev/ram0 ramdisk=8192 real_root=UUID=0709f714-507b-46e9-ae30-2202ef1b8482  quiet  init=/linuxrc splash=silent,theme:sabayon vga=791 CONSOLE=/dev/tty1 pci=nomsi
   initrd /boot/initramfs-genkernel-x86-2.6.22-sabayon

title      Ubuntu 7.10, kernel 2.6.22-14-generic
root      (hd0,1)
kernel      /boot/vmlinuz-2.6.22-14-generic root=UUID=8cab1384-d4e3-4e6f-953f-ec25b925ed13 ro quiet splash
initrd      /boot/initrd.img-2.6.22-14-generic
quiet

title      Ubuntu 7.10, kernel 2.6.22-14-generic (recovery mode)
root      (hd0,1)
kernel      /boot/vmlinuz-2.6.22-14-generic root=UUID=8cab1384-d4e3-4e6f-953f-ec25b925ed13 ro single
initrd      /boot/initrd.img-2.6.22-14-generic

title      Ubuntu 7.10, memtest86+
root      (hd0,1)
kernel      /boot/memtest86+.bin
quiet


I had to manually edit it in order to recognize my Ubuntu install. At first it was just the Sabayon entry, but I copied and pasted the Ubuntu portions from the grub.conf in my Ubuntu installs's /boot/grub/ directory.
Merlin7777
Simple Hen
 
Posts: 80
Joined: Sun Nov 25, 2007 3:47

Re: Upgrading kernel, terminal hangs?

Postby wolfden » Sat Dec 01, 2007 1:00

there is a new genkernel in SL overlay, may want to layman -S and then emerge genkernel or try an older version
wolfden
Sharecropper
 
Posts: 9050
Joined: Sat Jan 14, 2006 0:55
Location: Midwest USA

Re: Upgrading kernel, terminal hangs?

Postby Merlin7777 » Sat Dec 01, 2007 1:04

Okay, I am running layman -S now, and will report back after I emerge genkernel and test.
Merlin7777
Simple Hen
 
Posts: 80
Joined: Sun Nov 25, 2007 3:47

Next

Return to Hardware

Who is online

Users browsing this forum: No registered users and 1 guest