Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 178941 - [2007.0] Installer fails with non-standard root
Summary: [2007.0] Installer fails with non-standard root
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Release Media
Classification: Unclassified
Component: Installer (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux Installer
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-17 21:08 UTC by Xake
Modified: 2007-11-17 19:04 UTC (History)
0 users

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


Attachments
/var/log/installer.log.failed (installer.log.failed,2.90 KB, text/plain)
2007-05-17 21:08 UTC, Xake
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Xake 2007-05-17 21:08:05 UTC
My plan was to do a networkless installation on:
/dev/hda1 --> /boot
/dev/hda2 --> swap
/dev/hda3 crypted and remapped as /dev/mapper/root --> /
/dev/hda4 (ntfs non-mounted)

I enter this into the gtk-installer (installer-dialog does not enable entering mapped dev-nodes) and everything went fine until the installation of grub.

Logfiles to be attached.
If there is anything more you need, just ask.
Comment 1 Xake 2007-05-17 21:08:46 UTC
Created attachment 119558 [details]
/var/log/installer.log.failed
Comment 2 Andrew Gaffney (RETIRED) gentoo-dev 2007-05-17 21:20:43 UTC
This happened because of the assumption in the grub configuration code that a dev node ends with a number. Although, this shouldn't have happened, anyway. It appears that there's an incorrect assumption that when looping through the mounts, /boot will come before /. Codeman, can you look at this?
Comment 3 Andrew Gaffney (RETIRED) gentoo-dev 2007-05-18 03:57:37 UTC
Actually, doesn't a cryptoloop / require a custom initramfs? If so, there's no possibility the installer will ever support it unless genkernel supports it directly.
Comment 4 Xake 2007-05-18 08:32:28 UTC
I have the source for gentoo-sources and genkernel and its deps on a USB-stick to be able to chroot into the installation afterwards and doing a "emerge gentoo-sources genkernel && genkernel all --luks --menuconfig" to compile the needed things into kernel. This also gives a luks-ready initramfs.

The fact that the installer fails is the only thing that prevents me to make this happend.
Comment 5 Xake 2007-05-18 10:42:24 UTC
Is this not a issue for evms/lvms and /dev/mapper in general?


Just to make my previous comment more clear:
From my experiences the only thing preventing the networkless installer from support luks as-is is some things in livecd-kernel being compiled as module, (I believe) the initramfs being generated without luks-support (the --luks flag for genkernel) and most critical this bug.
If this was fixed then the only missing thing for me should be adding "crypt_root=/dev/hda3" to the arguments passed to the kernel at boottime, and as the installer support this...

But it is enough fixing this bug as it seems like the installer is the only way makeing a networkless install on x86 according to the docs I have found.
Comment 6 Andrew Gaffney (RETIRED) gentoo-dev 2007-11-17 19:04:10 UTC
The installer doesn't (and probably won't) support non-standard setups like this. If you want it to, please submit a patch.