Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 243064 - GTK+ Installer fails to configure grub for amd64 and lvm configuration.
Summary: GTK+ Installer fails to configure grub for amd64 and lvm configuration.
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Release Media
Classification: Unclassified
Component: Installer (show other bugs)
Hardware: AMD64 Linux
: High major
Assignee: Gentoo Linux Installer
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-21 16:07 UTC by Bruce Edge
Modified: 2009-05-03 17:21 UTC (History)
1 user (show)

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 Bruce Edge 2008-10-21 16:07:31 UTC
Installing the Live CD, 2008-r1 on amd64 with LVM.

Here's the partition layout:

livecd ~ # fdisk /dev/sda

The number of cylinders for this disk is set to 19457.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): p

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x35433484

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           2        3892    31254457+   7  HPFS/NTFS
/dev/sda2            3893        4014      979965   83  Linux
/dev/sda3            4015        4622     4883760   82  Linux swap / Solaris
/dev/sda4            4623       19457   119162137+  8e  Linux LVM

Here's the LVM config:

livecd ~ # lvdisplay 
  --- Logical volume ---
  LV Name                /dev/vg1/lv1
  VG Name                vg1
  LV UUID                8UaCM3-BMZc-qPcM-6K95-NnZJ-KX6p-edW1nz
  LV Write Access        read/write
  LV Status              available
  # open                 0
  LV Size                32.00 GB
  Current LE             8192
  Segments               1
  Allocation             inherit
  Read ahead sectors     0
  Block device           253:0
   
  --- Logical volume ---
  LV Name                /dev/vg1/lv2
  VG Name                vg1
  LV UUID                xdFaFs-Jt0g-QwGl-iIJM-nSGs-bf8A-IvHCkH
  LV Write Access        read/write
  LV Status              available
  # open                 0
  LV Size                44.00 GB
  Current LE             11264
  Segments               1
  Allocation             inherit
  Read ahead sectors     0
  Block device           253:1
   
  --- Logical volume ---
  LV Name                /dev/vg1/lv3
  VG Name                vg1
  LV UUID                b1H7S5-EdKh-z8eh-Oe80-kb77-VLgW-wkYp2C
  LV Write Access        read/write
  LV Status              available
  # open                 0
  LV Size                37.64 GB
  Current LE             9636
  Segments               1
  Allocation             inherit
  Read ahead sectors     0
  Block device           253:2
   
Here's what was left in /mnt/gentoo/etc/fstab:

/dev/BOOT		/boot		ext2		noauto,noatime	1 2
/dev/ROOT		/		ext3		noatime		0 1
/dev/SWAP		none		swap		sw		0 0

And here's the install config I wanted:

/dev/sda2		/boot		ext2		noauto,noatime	1 2
/dev/vg1/lv2		/		ext3		noatime		0 1
/dev/sda3		none		swap		sw		0 0

I manually entered the above config in the partitioner stage and it did mount everything correctly before unpacking the install.

The end result is the install failed. Here's the install log:

livecd ~ # cat /var/log/install.log.failed 
GLI: October 21 2008 08:29:45 - Gentoo Linux Installer version 0.6.6
GLI: October 21 2008 08:32:24 - Gentoo Linux Installer version 0.6.6
GLI: October 21 2008 08:34:33 - Mounted mountpoint: /
GLI: October 21 2008 08:34:33 - Created mountpoint /boot
GLI: October 21 2008 08:34:33 - Mounted mountpoint: /boot
GLI: October 21 2008 08:43:10 - Stage3 was generated successfully
GLI: October 21 2008 08:43:11 - Chroot environment ready.
GLI: October 21 2008 08:44:04 - Portage tree install was custom.
GLI: October 21 2008 08:44:06 - Make.conf configured
GLI: October 21 2008 08:44:38 - Root Password set on the new system.
GLI: October 21 2008 08:44:52 - Edited Config file /mnt/gentoo/etc/conf.d/clock
GLI: October 21 2008 08:44:52 - Edited Config file /mnt/gentoo/etc/conf.d/clock
GLI: October 21 2008 08:44:52 - Timezone set.
GLI: October 21 2008 08:44:52 - Starting emerge_kernel, package is livecd-kernel
GLI: October 21 2008 08:46:44 - Edited Config file /mnt/gentoo/etc/conf.d/hostname
GLI: October 21 2008 08:46:44 - Edited Config file /mnt/gentoo/etc/conf.d/domainname
GLI: October 21 2008 08:46:44 - ERROR! Failure adding domainname to runlevel default because it was not found!
GLI: October 21 2008 08:46:44 - ERROR! Could not add domainname to runlevel default. returned a bad status code.
GLI: October 21 2008 08:46:44 - Edited Config file /mnt/gentoo/etc/hosts
GLI: October 21 2008 08:46:44 - Added net.eth0 to runlevel default
GLI: October 21 2008 08:46:44 - Edited Config file /mnt/gentoo/etc/conf.d/net
GLI: October 21 2008 08:46:51 - dhcpcd emerged.
GLI: October 21 2008 08:47:10 - Added syslog-ng to runlevel default
GLI: October 21 2008 08:47:10 - Logging daemon installed: syslog-ng
GLI: October 21 2008 08:47:27 - Added vixie-cron to runlevel default
GLI: October 21 2008 08:47:27 - Cron daemon installed and configured: vixie-cron
GLI: October 21 2008 08:47:33 - Emerged the selected bootloader.
GLI: October 21 2008 08:47:35 - Exception received during 'Configuring and installing bootloader': BootloaderError :FATAL: _map_device_to_grub_device: ERROR, could not map/dev/vg1/lv to anything in the device map
GLI: October 21 2008 08:47:35 - Traceback (most recent call last):
GLI: October 21 2008 08:47:35 - File "/opt/installer/GLIClientController.py", line 122, in run
    func()
GLI: October 21 2008 08:47:35 - File "/opt/installer/templates/x86ArchitectureTemplate.py", line 46, in install_bootloader
    self._configure_grub()
GLI: October 21 2008 08:47:35 - File "/opt/installer/templates/x86ArchitectureTemplate.py", line 56, in _configure_grub
    self._gather_grub_drive_info()
GLI: October 21 2008 08:47:35 - File "/opt/installer/templates/x86ArchitectureTemplate.py", line 163, in _gather_grub_drive_info
    self.grub_root_drive = self._map_device_to_grub_device(self.root_device)
GLI: October 21 2008 08:47:35 - File "/opt/installer/templates/x86ArchitectureTemplate.py", line 295, in _map_device_to_grub_device
    raise GLIException("BootloaderError", 'fatal', '_map_device_to_grub_device', "ERROR, could not map"+device+" to anything in the device map")
GLI: October 21 2008 08:47:35 - GLIException: BootloaderError :FATAL: _map_device_to_grub_device: ERROR, could not map/dev/vg1/lv to anything in the device map

Here's the device map (I think, there was no device.map)

livecd ~ # cat /mnt/gentoo/boot/grub/glidevice.map 
(hd0)	/dev/sda

This exact same config worked fine with ubuntu hardy and intrepid installs.

Reproducible: Always

Steps to Reproduce:
1. Boot install cd
2. Configure partitions as above
3. Wait for it to fail.

Actual Results:  
Install fails

Expected Results:  
Install succeeds

No sure, don't think that lvm should have even come into it as the boot partition was ext2 in a phys partition.
Comment 1 Bruce Edge 2008-10-21 19:01:42 UTC
Forgot to add kernel options.

Booted with "gentoo dolvm"
Comment 2 Andrew Gaffney (RETIRED) gentoo-dev 2008-10-22 02:13:27 UTC
The installer does not support LVM configurations. However, I'll let the installer team decide what to do with this bug.
Comment 3 Andrew Gaffney (RETIRED) gentoo-dev 2009-05-03 17:21:35 UTC
The installer is deprecated.