|
Bugzilla – Full Text Bug Listing |
| Summary: | Installation with root filesystem on LVM fails | ||
|---|---|---|---|
| Product: | [openSUSE] SUSE Linux 10.1 | Reporter: | Carl-Daniel Hailfinger <kernel01> |
| Component: | Installation | Assignee: | Thomas Fehr <fehr> |
| Status: | RESOLVED FIXED | QA Contact: | Klaus Kämpf <kkaempf> |
| Severity: | Normal | ||
| Priority: | P5 - None | CC: | hare, michael.raskey |
| Version: | Beta 2 | ||
| Target Milestone: | Beta 3 | ||
| Hardware: | i686 | ||
| OS: | Other | ||
| Whiteboard: | |||
| Found By: | Development | Services Priority: | |
| Business Priority: | Blocker: | --- | |
| Marketing QA Status: | --- | IT Deployment: | --- |
| Bug Depends on: | |||
| Bug Blocks: | 146095 | ||
| Attachments: | y2logs | ||
|
Description
Carl-Daniel Hailfinger
2006-01-26 17:59:29 UTC
Interesting thing: /dev/system/slash indeed doesn't exist at that stage. Created attachment 65290 [details]
y2logs
It seems the installer forgets to run "vgchange -a y" before foratting the disk. When I run "vgchange -a y" manually, I can install perfectly, until the bootloader is about to be installed. Then another bug bites: /boot is mounted before / and is invisible because of that. After working around the problems mentioned above, the installer does install the bootloader correctly, but doesn't unmount all partitions/volumes (notably, it forgets to umount /mnt/sys ) and thus deactivating the logical volumes fails. After working around that bug, the first stage of the installation is ok. After reboot, I'm faced with the error message "not found -- exiting to /bin/sh". The kernel can't find its root filesystem because the vgchange binary isn't in the initrd. Not sure how to work around that problem. And mkinitrd has a VERY subtle bug where a file from /proc is read in the following way: while read a b; do // something done </proc/devices That fails (actually, only the first ew bytes will be read) because the file is on /proc! Never assume files in /proc can be handled the normal way. You need cat ro read them completely. After fixing that bug in my local sources, at least mkinitrd recognized it had a root filesystem on LVM. However, it included everything ecxept dmsetup in the initrd, so the boot failed again. Hannes: Please see comment #5 for a small mkinitrd bug. To reproduce the mkinitrd problem, try this script. It will only show you the first 2 lines of /proc/devices. Since /proc/devices is has listed 0 bytes as size, it is debatable whether that is an ash bug. #!/bin/ash while read a; do echo $a done </proc/devices Sorry for mixing 2 bugs in one. The mkinitrd story is now in bug #146095. Fixed up mkinitrd to use 'cat ... | sed ... | tail' instead of the while read shell construct. The funcion "import existing fstab" had the side effect of disabling active LVM LVs. This should be fixed in beta#3. If possible it would be helpful if you could retry the exact same installation with beta#3. Thanks, will try the exact same installation once Beta3 is available. *** Bug 163951 has been marked as a duplicate of this bug. *** The problem has reoccured, reopening, look at bug #163951. I strongly doubt #163951 is a duplicate of this one. |