Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 119350 - genkernel produces an awk error on my grub.conf or menu.lst file ...
Summary: genkernel produces an awk error on my grub.conf or menu.lst file ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: genkernel (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-17 16:42 UTC by DEMAINE Benoît-Pierre, aka DoubleHP
Modified: 2006-01-18 14:57 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description DEMAINE Benoît-Pierre, aka DoubleHP 2006-01-17 16:42:41 UTC
log of console:

*     initramfs-insmod-0.9.15-pre4.cpio.gz
*     initramfs-udev-077.cpio.gz
*     initramfs-modules-2.6.15-gentoo-r1-Gentoo-moon_02.cpio.gz
*
* Adding kernel to /boot/grub/grub.conf...
awk: {if ($2 == "#
awk:            ^ unterminated string
*
* Kernel compiled successfully!
*
* Required Kernel Parameters:
*     real_root=/dev/$ROOT
*
*     Where $ROOT is the device node for your root partition as the
*     one specified in /etc/fstab
*
* If you require Genkernel's hardware detection features; you MUST
* tell your bootloader to use the provided INITRAMFS file. Otherwise;
* substitute the root argument for the real_root argument if you are
* not planning to use the initrd...


dhp@moon_gen:/boot/grub$ cat grub.conf.bak
default 0
timeout 5
#color cyan/blue white/blue
#splashimage=(hd0,6)/grub/splash.xpm.gz

title=Gentoo 2.6.14 moon_02
root (hd0,6)
kernel /boot/kernel-genkernel-x86-2.6.14-gentoo-Gentoo-moon_02 root=/dev/hda7 acpi=force splash lapic quiet video=791
#i810fb:1024x768-16@60,accel
#splash lapic quiet
#vga=791 accel,mtrr
#initrd initramfs-genkernel-x86-2.6.14-gentooGentoo-moon

title=Gentoo 2.6.14 moon_01
root (hd0,6)
kernel /boot/kernel-genkernel-x86-2.6.14-gentooGentoo-moon root=/dev/hda7 acpi=force lapic splash quiet video=i810fb:1024x768-16@60,accel
#vga=791 accel,mtrr
#initrd initramfs-genkernel-x86-2.6.14-gentooGentoo-moon

dhp@moon_gen:/boot/grub$ cat grub.conf
default 0
timeout 5
#color cyan/blue white/blue
#splashimage=(hd0,6)/grub/splash.xpm.gz

title=Gentoo Linux (2.6.15-gentoo-r1-Gentoo-moon_03)
root (hd0,6)
kernel /boot/kernel-genkernel-x86-2.6.15-gentoo-r1-Gentoo-moon_02 root=/dev/hda7 acpi=force splash lapic quiet video=791

#color cyan/blue white/blue
#splashimage=(hd0,6)/grub/splash.xpm.gz
title=Gentoo 2.6.14 moon_02
root (hd0,6)
kernel /boot/kernel-genkernel-x86-2.6.14-gentoo-Gentoo-moon_02 root=/dev/hda7 acpi=force splash lapic quiet video=791
#i810fb:1024x768-16@60,accel
#splash lapic quiet
#vga=791 accel,mtrr
#initrd initramfs-genkernel-x86-2.6.14-gentooGentoo-moon

title=Gentoo 2.6.14 moon_01
root (hd0,6)
kernel /boot/kernel-genkernel-x86-2.6.14-gentooGentoo-moon root=/dev/hda7 acpi=force lapic splash quiet video=i810fb:1024x768-16@60,accel
#vga=791 accel,mtrr
#initrd initramfs-genkernel-x86-2.6.14-gentooGentoo-moon



********************************************************************

files are 'as is'

seems like produced config are bootable ... (if not, I will add a comment within 24h). Note that as for the .bak, the generated conf ends with an empty line (if it is any important ... I have had bugs due to empty lines at end of files).

And while you are at it, maybe you can have a glance at why it duplicates the commented color and splash ...
Comment 1 Chris Gianelloni (RETIRED) gentoo-dev 2006-01-18 06:58:32 UTC
*sigh*

You posted a partial log, so it's less than useful.  Please *attach* the entire genkernel log file.  Also, make sure you've tried genkernel 3.3.11_pre3 to see if it resolves the issue for you.
Comment 2 DEMAINE Benoît-Pierre, aka DoubleHP 2006-01-18 14:15:16 UTC
using ~x86, I have esynced 3h ago (aka more than 4h after you ask me 3.3.11_pre3), and I can not get more than 3.3.10 :

* Gentoo Linux Genkernel; Version 3.3.10
* Running with options: all

* Linux Kernel 2.6.15-gentoo-r1-Gentoo-moon_02 for x86...
* config: --no-clean is enabled; leaving the .config alone.
*         >> Compiling 2.6.15-gentoo-r1-Gentoo-moon_02 bzImage...
*         >> Compiling 2.6.15-gentoo-r1-Gentoo-moon_02 modules...
* Copying config for successful build to /etc/kernels/kernel-config-x86-2.6.15-gentoo-r1-Gentoo-moon_02
* initramfs: >> Initializing...
*         >> Creating base_layout cpio archive...
*         >> Creating auxilary cpio archive...
*         >> Creating busybox cpio archive...
*         >> Creating udev cpio archive...
*         >> Creating insmod cpio archive...
*         >> Creating modules cpio archive...

* Merging
*     initramfs-base-layout.cpio.gz
*     initramfs-aux.cpio.gz
*     initramfs-busybox-1.00-rt-mdstart.plasmaroo.cpio.gz
*     initramfs-insmod-0.9.15-pre4.cpio.gz
*     initramfs-udev-077.cpio.gz
*     initramfs-modules-2.6.15-gentoo-r1-Gentoo-moon_02.cpio.gz
*
* Adding kernel to /boot/grub/grub.conf...
awk: {if ($2 == "#
awk:            ^ unterminated string
*
* Kernel compiled successfully!
*
* Required Kernel Parameters:
*     real_root=/dev/$ROOT
*
*     Where $ROOT is the device node for your root partition as the
*     one specified in /etc/fstab
*
* If you require Genkernel's hardware detection features; you MUST
* tell your bootloader to use the provided INITRAMFS file. Otherwise;
* substitute the root argument for the real_root argument if you are
* not planning to use the initrd...

* WARNING... WARNING... WARNING...
* Additional kernel cmdline arguments that *may* be required to boot properly...
* add "vga=791 splash=silent" if you use a bootsplash framebuffer

* Do NOT report kernel bugs as genkernel bugs unless your bug
* is about the default genkernel configuration...
*
* Make sure you have the latest genkernel before reporting bugs.
Comment 3 Chris Gianelloni (RETIRED) gentoo-dev 2006-01-18 14:34:34 UTC
http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=3&chap=3#doc_chap3

Please test 3.3.11_pre3, as I am uninterested in the current stable version, as 3.3.11 should be hitting the tree soon, but I would like to ensure that your bug is resolved in that version before it is released.
Comment 4 DEMAINE Benoît-Pierre, aka DoubleHP 2006-01-18 14:43:05 UTC
sorry, I did not guess in first place you expected me to unmask ... result coming within 1h after emerge compleet + genkernel all.
Comment 5 Chris Gianelloni (RETIRED) gentoo-dev 2006-01-18 14:55:20 UTC
Not a problem... I guess I didn't make that clear enough.  Sorry about that...
Comment 6 DEMAINE Benoît-Pierre, aka DoubleHP 2006-01-18 14:57:22 UTC
good news: 3.3.11_pre3 does not produce awk error.
sys-kernel/genkernel-3.3.11_pre3 solves this bug.

output to proove it:

* Gentoo Linux Genkernel; Version 3.3.11_pre3
* Running with options: all

* Linux Kernel 2.6.15-gentoo-r1-Gentoo-moon_02 for x86...
* config: --no-clean is enabled; leaving the .config alone.
*         >> Compiling 2.6.15-gentoo-r1-Gentoo-moon_02 bzImage...
*         >> Compiling 2.6.15-gentoo-r1-Gentoo-moon_02 modules...
* Copying config for successful build to /etc/kernels/kernel-config-x86-2.6.15-gentoo-r1-Gentoo-moon_02
* initramfs: >> Initializing...
*         >> Creating base_layout cpio archive...
/usr/share/genkernel/gen_initramfs.sh: line 35: [: too many arguments
*         >> Creating auxilary cpio archive...
*         >> Creating busybox cpio archive...
*         >> Creating udev cpio archive...
*         >> Creating insmod cpio archive...
*         >> Creating modules cpio archive...

* Merging
*     initramfs-base-layout.cpio.gz
*     initramfs-aux.cpio.gz
*     initramfs-busybox-1.00-rt-mdstart.plasmaroo.cpio.gz
*     initramfs-insmod-0.9.15-pre4.cpio.gz
*     initramfs-udev-077.cpio.gz
*     initramfs-modules-2.6.15-gentoo-r1-Gentoo-moon_02.cpio.gz
*
* Adding kernel to /boot/grub/grub.conf...
*
* Kernel compiled successfully!
*
* Required Kernel Parameters:
*     real_root=/dev/$ROOT
*
*     Where $ROOT is the device node for your root partition as the
*     one specified in /etc/fstab
*
* If you require Genkernel's hardware detection features; you MUST
* tell your bootloader to use the provided INITRAMFS file. Otherwise;
* substitute the root argument for the real_root argument if you are
* not planning to use the initrd...

* WARNING... WARNING... WARNING...
* Additional kernel cmdline arguments that *may* be required to boot properly...
* add "vga=791 splash=silent" if you use a bootsplash framebuffer

* Do NOT report kernel bugs as genkernel bugs unless your bug
* is about the default genkernel configuration...
*
* Make sure you have the latest genkernel before reporting bugs.





produced grub.conf still have strange harmless feature:
duplicated commented #color




default 0
timeout 5
#color cyan/blue white/blue
splashimage=(hd0,6)/boot/grub/splash.xpm.gz

title=Gentoo Linux (2.6.15-gentoo-r1-Gentoo-moon_02)
root (hd0,6)
kernel /boot/kernel-genkernel-x86-2.6.15-gentoo-r1-Gentoo-moon_02 root=/dev/hda7 acpi=force splash lapic quiet video=791


#color cyan/blue white/blue
title=Gentoo Linux (2.6.15-gentoo-r1-Gentoo-moon_02)
root (hd0,6)
kernel /boot/kernel-genkernel-x86-2.6.15-gentoo-r1-Gentoo-moon_02 root=/dev/hda7 acpi=force splash lapic quiet video=791

title=Gentoo Linux (2.6.15-gentoo-r1-Gentoo-moon_03) video=791
root (hd0,6)
kernel /boot/kernel-genkernel-x86-2.6.15-gentoo-r1-Gentoo-moon_02 root=/dev/hda7 acpi=force splash lapic quiet video=791

title=Gentoo Linux (2.6.15-gentoo-r1-Gentoo-moon_03) video=i810fb
root (hd0,6)
kernel /boot/kernel-genkernel-x86-2.6.15-gentoo-r1-Gentoo-moon_02 root=/dev/hda7 acpi=force splash lapic quiet video=i810fb:1024x768-16@60,accel,mtrr

title=Gentoo 2.6.14 moon_02
root (hd0,6)
kernel /boot/kernel-genkernel-x86-2.6.14-gentoo-Gentoo-moon_02 root=/dev/hda7 acpi=force splash lapic quiet video=791
#i810fb:1024x768-16@60,accel
#vga=791 accel,mtrr

title=Gentoo 2.6.14 moon_01
root (hd0,6)
kernel /boot/kernel-genkernel-x86-2.6.14-gentooGentoo-moon root=/dev/hda7 acpi=force lapic splash quiet video=i810fb:1024x768-16@60,accel
#vga=791 accel,mtrr
#initrd initramfs-genkernel-x86-2.6.14-gentooGentoo-moon


and before I go to bed, I remind you http://bugs.gentoo.org/show_bug.cgi?id=107628
(no time to check 3.3.11-r3 against it tonight).