Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 71175 - genkernel fails with gen_bootloader.sh: line 42: #/dev/BOOT-1: syntax error:
Summary: genkernel fails with gen_bootloader.sh: line 42: #/dev/BOOT-1: syntax error:
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-14 08:34 UTC by Brian Toovey
Modified: 2005-01-04 17:48 UTC (History)
0 users

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


Attachments
Patch (genkernel-71175.patch,779 bytes, patch)
2004-12-22 04:30 UTC, Tim Yamin (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Brian Toovey 2004-11-14 08:34:39 UTC
genkernal fails when tring to update grub

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Actual Results:  
tumbleweed05 linux # genkernel all
* Gentoo Linux Genkernel; Version 3.1.0a
* Compiling Linux Kernel 2.6.9-gentoo-r69 for x86...

* kernel: >> Running mrproper...
* config: Using config from /usr/share/genkernel/x86/kernel-config-2.6
*         Previous config backed up to .config.bak
*         >> Running oldconfig...
* kernel: >> Cleaning...
* config: >> Invoking menuconfig...
#
# using defaults found in .config
#


*** End of Linux kernel configuration.
*** Execute 'make' to build the kernel or try 'make help'.

*         >> Compiling 2.6.9-gentoo-r69 bzImage...
*         >> Compiling 2.6.9-gentoo-r69 modules...
* Copying config for successful build to
/etc/kernels/kernel-config-x86-2.6.9-gentoo-r69
* initrd: >> Initializing...
*         >> Copying modules...
*         >> Copying auxilary files...
*         :: Size is at 3952K
*         >> Creating loopback filesystem...
*         >> Moving initrd files to the loopback...
*         >> Cleaning up and compressing the initrd...
*         >> No bootsplash detected; skipping!
*
* Adding kernel to /boot/grub/grub.conf...
/usr/share/genkernel/gen_bootloader.sh: line 42: #/dev/BOOT-1: syntax error:
operand expected (error token is "#/dev/BOOT-1")
*
* 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.


tumbleweed05 linux # cat /boot/grub/menu.lst
default 0
timeout 30
splashimage=(hd0,4)/boot/grub/splash.xpm.gz

title=Gentoo Linux 2.6.9
root (hd0,4)
kernel /boot/kernel-2.6.9-gentoo-r1 root=/dev/ram0 init=/linuxrc ramdisk=8192
real_root=/dev/hda5 video=vesafb
initrd /boot/initrd-2.6.9-gentoo-r1

tumbleweed05 linux # emerge info
Portage 2.0.51-r3 (default-x86-2004.2, gcc-3.3.4, glibc-2.3.4.20040808-r1,
2.6.9-gentoo-r1 i686)
=================================================================
System uname: 2.6.9-gentoo-r1 i686 Mobile Intel(R) Pentium(R) 4 - M CPU 2.00GHz
Gentoo Base System version 1.6.6
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.14.90.0.8-r1
Headers:  sys-kernel/linux-headers-2.4.21-r1
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer -ffast-math
-falign-functions=4 -fprefetch-loop-arrays"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config
/usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer -ffast-math
-falign-functions=4 -fprefetch-loop-arrays"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distlocks sandbox"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo http://mirror.datapipe.net/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aim alsa apache2 apm arts avi bash berkdb bitmap-fonts cdr crypt cups dvd
encode esd f77 foomaticdb fortran gdbm gif gpm gtk2 imlib java joystick jpeg kde
ldap libg++ libwww mad mikmod motif mp3 mpeg mpeg4 mysql ncurses nls oggvorbis
opengl pam pcmcia pdflib perl php png python qt quicktime readline sdl slang
spell ssl svga tcltk tcpd tetex truetype vim vim-with-x x86 xemacs xine xml2
xmms xv yahoo zlib"
Comment 1 Tim Yamin (RETIRED) gentoo-dev 2004-11-14 13:41:11 UTC
Can you attach your grub.conf please?
Comment 2 Brian Toovey 2004-11-14 20:25:29 UTC
tumbleweed05 grub # cat grub.conf
default 0
timeout 30
splashimage=(hd0,4)/boot/grub/splash.xpm.gz

title=Gentoo Linux 2.6.9
root (hd0,4)
kernel /boot/kernel-2.6.9-gentoo-r1 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/hda5 video=vesafb
initrd /boot/initrd-2.6.9-gentoo-r1

title=Gentoo Linux 2.6.9 r69
root (hd0,4)
kernel /boot/kernel-2.6.9-gentoo-r69 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/hda5 video=vesafb
initrd /boot/initrd-2.6.9-gentoo-r69
Comment 3 Tim Yamin (RETIRED) gentoo-dev 2004-11-27 05:55:35 UTC
Can I see your /etc/fstab as well?
Comment 4 Brian Toovey 2004-11-29 08:33:05 UTC
tumbleweed05 btoovey # cat /etc/fstab
# /etc/fstab: static file system information.
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/fstab,v 1.14 2003/10/13 20:03:38 azarah Exp $
#
# noatime turns off atimes for increased performance (atimes normally aren't
# needed; notail increases performance of ReiserFS (at the expense of storage
# efficiency).  It's safe to drop the noatime options if you want and to
# switch between notail and tail freely.

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

# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
#/dev/BOOT              /boot           ext2            noauto,noatime          1 1
/dev/hda5               /               ext3            noatime                 0 0
/dev/hda4               /mnt/hda4       ext3            noatime                 0 0
/dev/hda1               /mnt/hda1       ext3            noatime                 0 0
/dev/hda6               /mnt/hda6       ext3            noatime                 0 0
/dev/hda7               /mnt/hda7       ext3            noatime                 0 0
/dev/hda2               none            swap            sw                      0 0
/dev/cdroms/cdrom0      /mnt/cdrom      iso9660         noauto,ro               0 0
/dev/fd0                /mnt/floppy     auto            noauto                  0 0

# NOTE: The next line is critical for boot!
none                    /proc           proc            defaults                0 0

# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
#  use almost no memory if not populated with files)
# Adding the following line to /etc/fstab should take care of this:

none                    /dev/shm        tmpfs           defaults                0 0
Comment 5 Tim Yamin (RETIRED) gentoo-dev 2004-12-22 04:30:09 UTC
Created attachment 46621 [details, diff]
Patch

Mind trying if this patch fixes it please?
Comment 6 Tim Yamin (RETIRED) gentoo-dev 2005-01-04 17:48:38 UTC
Please try the patch in attachment #46621 [details, diff]. It will be included in the next release anyway...