Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 131809 - emerge_kernel yeilds 'list index out of range'
Summary: emerge_kernel yeilds 'list index out of range'
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Release Media
Classification: Unclassified
Component: Installer (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo Linux Installer
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-30 08:44 UTC by Stephanie Mark
Modified: 2006-04-30 09:27 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 Stephanie Mark 2006-04-30 08:44:11 UTC
using the installer on the 2006.0 install live cd, each time the installer tries to emerge gentoo-sources, the installer throws back error 'list index out of range' and the install fails. this happens each time i try to run the installer using gentoo-sources for my kernel, with bootsplash enabled. using the livecd kernel results in a successful installation.


contents of /var/log/install.log.failed:

GLI: April 29 2006 19:48:53 - Setting root password.
GLI: April 29 2006 19:48:53 - Livecd root password set.
GLI: April 29 2006 19:48:54 - Portmap started.
GLI: April 29 2006 19:48:54 - Completed pre_install steps
GLI: April 29 2006 20:35:09 - partitioning: Processing /dev/hda...
GLI: April 29 2006 20:35:09 - Partitioning: Second pass...
GLI: April 29 2006 20:35:09 - Partitioning: Third pass....creating partitions
GLI: April 29 2006 20:35:09 -   Drive has 390721968 sectors
GLI: April 29 2006 20:35:09 -   Partition 1 has 39MB
GLI: April 29 2006 20:35:09 -     Start sector calculated to be 0
GLI: April 29 2006 20:35:09 -     End sector calculated to be 79872
GLI: April 29 2006 20:35:09 -   Adding primary partition 1 from 0 to 79872
GLI: April 29 2006 20:35:10 -   Formatting partition 1 as ext2 with: mkfs.ext2  /dev/hda1
GLI: April 29 2006 20:35:10 -   Partition 2 has 980MB
GLI: April 29 2006 20:35:10 -     Start sector calculated to be 79873
GLI: April 29 2006 20:35:10 -     End sector calculated to be 2086913
GLI: April 29 2006 20:35:10 -   Adding primary partition 2 from 79873 to 2086913
GLI: April 29 2006 20:35:11 -   Formatting partition 2 as linux-swap with: mkswap  /dev/hda2
GLI: April 29 2006 20:35:11 -   Partition 3 has 189759MB
GLI: April 29 2006 20:35:11 -     Start sector calculated to be 2086914
GLI: April 29 2006 20:35:11 -     End sector calculated to be 390713346
GLI: April 29 2006 20:35:11 -   Adding primary partition 3 from 2086914 to 390713346
GLI: April 29 2006 20:35:12 -   Formatting partition 3 as reiserfs with: mkfs.reiserfs -f  /dev/hda3
GLI: April 29 2006 20:35:23 - Partition table for /dev/sda is unchanged...skipping
GLI: April 29 2006 20:35:38 - Mounted mountpoint: /
GLI: April 29 2006 20:35:38 - Created mountpoint /boot
GLI: April 29 2006 20:35:38 - Mounted mountpoint: /boot
GLI: April 29 2006 20:35:39 - Fetching and unpacking tarball: file:///home/gentoo/stage3-x86-2006.0.tar.bz2
GLI: April 29 2006 20:37:24 - file:///home/gentoo/stage3-x86-2006.0.tar.bz2 was fetched and unpacked.
GLI: April 29 2006 20:37:29 - fstab configured.
GLI: April 29 2006 20:37:29 - Edited Config file /mnt/gentoo/etc/rc.conf
GLI: April 29 2006 20:37:29 - Edited Config file /mnt/gentoo/etc/conf.d/clock
GLI: April 29 2006 20:37:29 - Edited Config file /mnt/gentoo/etc/conf.d/keymaps
GLI: April 29 2006 20:37:29 - Edited Config file /mnt/gentoo/etc/make.conf
GLI: April 29 2006 20:37:29 - Config files updated using etc-update.  make.conf/fstab/rc.conf restored.
GLI: April 29 2006 20:37:29 - Edited Config file /mnt/gentoo/etc/make.conf
GLI: April 29 2006 20:37:29 - Edited Config file /mnt/gentoo/etc/make.conf
GLI: April 29 2006 20:37:29 - Edited Config file /mnt/gentoo/etc/make.conf
GLI: April 29 2006 20:37:29 - Edited Config file /mnt/gentoo/etc/make.conf
GLI: April 29 2006 20:37:29 - Edited Config file /mnt/gentoo/etc/make.conf
GLI: April 29 2006 20:37:29 - Make.conf configured
GLI: April 29 2006 20:37:30 - Chroot environment ready.
GLI: April 29 2006 20:39:17 - Portage tree install was custom.
GLI: April 29 2006 20:39:29 - Root Password set on the new system.
GLI: April 29 2006 20:39:30 - Edited Config file /mnt/gentoo/etc/conf.d/clock
GLI: April 29 2006 20:39:30 - Timezone set.
GLI: April 29 2006 20:39:30 - Starting emerge_kernel
GLI: April 29 2006 20:39:31 - This is a bad thing. An exception occured outside of the normal install errors. The error was: 'list index out of range'
GLI: April 29 2006 20:39:31 - Traceback (most recent call last):
GLI: April 29 2006 20:39:31 - File "/opt/installer/GLIClientController.py", line 165, in run
    self._install_steps[self._install_step]['function']()
GLI: April 29 2006 20:39:31 - File "/opt/installer/GLIArchitectureTemplate.py", line 673, in emerge_kernel_sources
    if kernels[counter][0:6]=="linux-":
GLI: April 29 2006 20:39:31 - IndexError: list index out of range





contents of /tmp/installprofile.xml:


-
	<gli-profile>
<kernel-build-method>
		genkernel
	</kernel-build-method>
<cron-daemon>
		vixie-cron
	</cron-daemon>
<domainname>
		localdomain
	</domainname>
<portage-snapshot>
		file:///home/gentoo/portage-20060428.tar.bz2
	</portage-snapshot>
<kernel-source>
		gentoo-sources
	</kernel-source>
<install-pcmcia-cs>
		False
	</install-pcmcia-cs>
<time-zone>
		America/New_York
	</time-zone>
<install-distcc>
		False
	</install-distcc>
<boot-device>
		/dev/hda
	</boot-device>
<dynamic-stage3>
		False
	</dynamic-stage3>
<kernel-bootsplash>
		True
	</kernel-bootsplash>
<bootloader-mbr>
		True
	</bootloader-mbr>
<hostname>
		localhost
	</hostname>
<bootloader-kernel-args/>
<post-install-script-uri/>
<nisdomainname/>
<install-stage>
		3
	</install-stage>
<ftp-proxy/>
<rsync-proxy/>
<stage-tarball>
		file:///home/gentoo/stage3-x86-2006.0.tar.bz2
	</stage-tarball>
<bootloader>
		grub
	</bootloader>
<root-pass-hash>
		$1$ONCyW2cv$wQN2mKfty3rbC6OTzz2cU.
	</root-pass-hash>
<http-proxy/>
<mta/>
<grp-install>
		False
	</grp-install>
<logging-daemon>
		syslog-ng
	</logging-daemon>
<kernel-config/>
<portage-tree-sync>
		snapshot
	</portage-tree-sync>
<kernel-initrd>
		True
	</kernel-initrd>
<install-rp-pppoe>
		False
	</install-rp-pppoe>
-
	<install-packages>

		gaim-encryption enlightenment xorg-x11 chkrootkit crack-attack netcat xpdf gvim vim mozilla-firefox gaim
	
</install-packages>
-
	<network-interfaces>
<device ip="dhcp" options="">
			eth0
		</device>
</network-interfaces>
<network-mounts/>
-
	<partitions>
-
	<device devnode="/dev/hda" disklabel="msdos">
<partition format="True" mb="39" minor="1" mkfsopts="" mountopts="defaults" mountpoint="/boot" origminor="1" resized="False" type="ext2"/>
<partition format="True" mb="980" minor="2" mkfsopts="" mountopts="" mountpoint="" origminor="2" resized="False" type="linux-swap"/>
<partition format="True" mb="189759" minor="3" mkfsopts="" mountopts="defaults" mountpoint="/" origminor="3" resized="False" type="reiserfs"/>
</device>
-
	<device devnode="/dev/sda" disklabel="msdos">
<partition format="False" mb="0" minor="0.03125" mkfsopts="" mountopts="" mountpoint="" origminor="0" resized="False" type="free"/>
<partition format="False" mb="244" minor="1" mkfsopts="" mountopts="" mountpoint="" origminor="1" resized="False" type="fat32"/>
</device>
</partitions>
<services>
		alsasound,apache2,xfs,hdparm
	</services>
-
	<users>
<user comment="" groups="wheel usb audio video cdrom plugdev games" hash="$1$z1BMea00$X8U1d6puHOLExa4mUz5C81" homedir="" shell="" uid="">
			niamh
		</user>
</users>
-
	<etc-files>
-
	<file name="rc.conf">
<entry name="DISPLAYMANAGER">
				xdm
			</entry>
<entry name="XSESSION">
				enlightenment
			</entry>
<entry name="EDITOR">
				/usr/bin/vim
			</entry>
</file>
-
	<file name="conf.d/clock">
<entry name="CLOCK">
				local
			</entry>
</file>
-
	<file name="conf.d/keymaps">
<entry name="SET_WINDOWSKEYS">
				Yes
			</entry>
</file>
-
	<file name="make.conf">
<entry name="MAKEOPTS">
				"-j3"
			</entry>
-
	<entry name="USE">

				  16bit 3dnow 3dnowext 3ds X X509 Xaw3d a52 aac aalib aio alsa amuled apache2 apm arts audiofile avi berkdb bigger-fonts bigpatch bitmap-fonts blender-game -boo bootsplash bzip2 c++ cdr chroot cli crypt css ctype cups dar32 dba dga dhcp dmx dv dvd dvdr dvdread -dvi ecmark2 eds elibc_glibc emboss encode esd ethereal exif expat fam fastbuild fbsplash firefox flac flash fmod foomaticdb force-cgi-redirect fortran ftp gd -gdal gdb gdbm general gif gimp glut glx gmail gmailtimestamps gmp gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile gvim gzip http icc idn imlib ipv6 irc java jpeg kde kernel_linux lcms libg++ libwww logitech-mouse mad md5sum memcache memlimit mikmod ming mjpeg mmx mmxext mng motif mozilla mp3 mpeg mpeg2 mplayer -mule -n32 ncurses nls no-old-linux nptl nvidia ogg opengl openssh oss pam pci pcre -pda pdf pdflib perl player png pnp posix python qt quicktime rar readline reiser4 reiserfs samba sdl session simplexml slang soap sockets spell spl sse sse-filters sse2 ssl tcltk tcpd tiff tokenizer truetype truetype-fonts type1-fonts udev usb userland_GNU vcd vim vorbis win32codecs wma x86 xine xml xml2 xmms xscreensaver xsl xv zip zlib
			
</entry>
<entry name="FEATURES"/>
<entry name="ACCEPT_KEYWORDS"/>
<entry name="CFLAGS">
				-march=pentium4 -O2 -pipe
			</entry>
</file>
</etc-files>
</gli-profile>
Comment 1 Preston Cody (RETIRED) gentoo-dev 2006-04-30 09:05:43 UTC
Thank you for the detail of your bug report.
The error you got would only have occurred if you had "/usr/src/linux" already defined *and* a directory in /usr/src that was less than 6 characters.
My guess is that this existed due to your custom stage3 tarball.
Did you have anything out of the ordinary in that stage3 or was it just a downloaded tarball?
Comment 2 Preston Cody (RETIRED) gentoo-dev 2006-04-30 09:27:18 UTC
This should now be fixed in CVS.  Please update using the directions in the FAQ and try again.  If you still run into this problem, please reopen the bug.  If you can try with debug mode on, that will help diagnose the problem.
Thanks!