Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 127444

Summary: Installer fails on execute
Product: Gentoo Release Media Reporter: th0th696 <uberthoth>
Component: InstallerAssignee: Gentoo Linux Installer <gli-bugs>
Status: VERIFIED INVALID    
Severity: blocker    
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description th0th696 2006-03-24 09:49:43 UTC
I have tried many different configurations of how to setup the partitions, but every time I get this when the install begins to get down to business:

GLI: January 01 2003 14:13:01 - Setting root password.
GLI: January 01 2003 14:13:01 - Livecd root password set.
GLI: January 01 2003 14:13:01 - Portmap started.
GLI: January 01 2003 14:13:01 - Completed pre_install steps
GLI: January 01 2003 14:13:19 - partitioning: Processing /dev/hdb...
GLI: January 01 2003 14:13:20 - Partitioning: Second pass...
GLI: January 01 2003 14:13:20 - This is a bad thing. An exception occured outside of the normal install errors. The error was: 'Error: Partition map has no partition map entry!'
GLI: January 01 2003 14:13:20 - Traceback (most recent call last):
GLI: January 01 2003 14:13:20 - File "/opt/installer/GLIClientController.py", line 165, in run
    self._install_steps[self._install_step]['function']()
GLI: January 01 2003 14:13:20 - File "../../templates/x86ArchitectureTemplate.py", line 285, in partition
    parted_disk.commit()
GLI: January 01 2003 14:13:20 - error: Error: Partition map has no partition map entry!



I have also tried initializing the disk to various states including all partitions setup exactly as they are in the installers partitioner and no partitions at all.  And fdisk works with the disk without complaint, so I'm not sure what is wrong.
Comment 1 Andrew Gaffney (RETIRED) gentoo-dev 2006-03-24 09:52:56 UTC
Please attach your /tmp/installprofile.xml used when getting this error.
Comment 2 th0th696 2006-03-24 10:06:46 UTC
gentoo@livecd /tmp $ cat installprofile.xml
<?xml version="1.0" ?>
<gli-profile>
        <kernel-build-method>
                genkernel
        </kernel-build-method>
        <cron-daemon>
                vixie-cron
        </cron-daemon>
        <domainname>
                localdomain
        </domainname>
        <portage-snapshot>
                file:///mnt/cdrom/snapshots/portage-20060123.tar.bz2
        </portage-snapshot>
        <kernel-source>
                livecd-kernel
        </kernel-source>
        <install-pcmcia-cs>
                False
        </install-pcmcia-cs>
        <time-zone>
                America/New_York
        </time-zone>
        <install-distcc>
                False
        </install-distcc>
        <boot-device>
                /dev/hdb
        </boot-device>
        <dynamic-stage3>
                True
        </dynamic-stage3>
        <kernel-bootsplash>
                False
        </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/>
        <bootloader>
                grub
        </bootloader>
        <root-pass-hash>
                $1$F9d.CTh8$rPQK7CdVCZ9jJ2qsL0l4U0
        </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>
                xorg-x11 fluxbox
        </install-packages>
        <network-interfaces>
                <device ip="dhcp" options="">
                        eth0
                </device>
        </network-interfaces>
        <network-mounts/>
        <partitions>
                <device devnode="/dev/hdb" disklabel="mac">
                        <partition format="True" mb="100" minor="1" mkfsopts="" mountopts="" mountpoint="/boot" origminor="0" resized="False" type="ext2"/>
                        <partition format="True" mb="990" minor="2" mkfsopts="" mountopts="" mountpoint="" origminor="0" resized="False" type="linux-swap"/>
                        <partition format="True" mb="77077" minor="3" mkfsopts="" mountopts="" mountpoint="/" origminor="0" resized="False" type="ext3"/>
                </device>
        </partitions>
        <services/>
        <etc-files>
                <file name="rc.conf">
                        <entry name="DISPLAYMANAGER">
                                xdm
                        </entry>
                        <entry name="XSESSION">
                                fluxbox
                        </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="KEYMAP">
                                us
                        </entry>
                        <entry name="SET_WINDOWSKEYS">
                                Yes
                        </entry>
                </file>
                <file name="conf.d/consolefont">
                        <entry name="CONSOLEFONT">
                                165.cp
                        </entry>
                </file>
                <file name="make.conf">
                        <entry name="MAKEOPTS"/>
                        <entry name="USE">
                                 X alsa amd64 apache2 audiofile avi berkdb bitmap-fonts bzip2 cdr cli crypt ctype cups dba eds elibc_glibc emboss encode esd ethereal exif expat fam fastbuild foomaticdb force-cgi-redirect fortran ftp gd gdbm gif glut gmp gnome gpm gstreamer gtk gtk2 gtkhtml idn imlib ipv6 jpeg kde kernel_linux lcms lzw lzw-tiff memlimit mng mozilla mp3 mpeg ncurses nls nptl opengl pam pcre pdflib perl png posix python qt quicktime readline samba sdl session simplexml soap sockets spell spl ssl tcltk tcpd tiff tokenizer truetype truetype-fonts type1-fonts udev usb userland_GNU userlocales xml xml2 xpm xsl xv zlib
                        </entry>
                        <entry name="FEATURES"/>
                        <entry name="ACCEPT_KEYWORDS"/>
                        <entry name="CFLAGS">
                                -march=i386 -O2 -pipe
                        </entry>
                </file>
        </etc-files>
</gli-profile>
Comment 3 Andrew Gaffney (RETIRED) gentoo-dev 2006-03-24 10:23:23 UTC
Okay, that's what I thought. It thinks the disk has a mac disklabel. Please attach your /tmp/clientconfiguration.xml.
Comment 4 th0th696 2006-03-24 10:33:57 UTC
Indeed this disk once had mac-partitions on it! How do I clear such silliness?

Here is the client xml:

gentoo@livecd /tmp $ cat clientconfiguration.xml
<?xml version="1.0" ?>
<client-configuration>
        <network-gateway/>
        <http-proxy/>
        <network-ip/>
        <rsync-proxy/>
        <ftp-proxy/>
        <verbose>
                True
        </verbose>
        <enable-ssh>
                False
        </enable-ssh>
        <install-mode>
                normal
        </install-mode>
        <root-mount-point>
                /mnt/gentoo
        </root-mount-point>
        <profile-uri/>
        <network-type>
                None
        </network-type>
        <network-netmask/>
        <log-file>
                /var/log/installer.log
        </log-file>
        <network-interface>
                eth0
        </network-interface>
  
        <network-dhcp-options/>
        <architecture-template>
                amd64
        </architecture-template>
        <network-broadcast/>
        <interactive>
                True
        </interactive>
        <dns-servers/>
        <kernel-modules/>
</client-configuration>
Comment 5 Andrew Gaffney (RETIRED) gentoo-dev 2006-03-24 10:45:09 UTC
Close the installer. Open up a terminal. Do the following:

sudo su -
dd if=/dev/zero of=/dev/hdb bs=512 count=1

That should clear off the old mac disklabel. While that will work in the future (although, you'd have a hell of a time booting it on an amd64 box), the mac disklabel code isn't currently complete.
Comment 6 th0th696 2006-03-24 12:18:24 UTC
Thanks so much.  I was thinking zeroing the disk with dd was the way to go, but it's very nice to see the guru's method (specifically that you just erased the beginning whereas I was going to zero the whole thing blindly).
Comment 7 Jeffrey Forman (RETIRED) gentoo-dev 2006-03-24 13:46:43 UTC
Moving to Release Media/Installer.