Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 179503 - LiveCD does not find it's loop image when a Linux partition exists on hard drive (I.E. Gentoo is already installed)
Summary: LiveCD does not find it's loop image when a Linux partition exists on hard dr...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Release Media
Classification: Unclassified
Component: LiveCD/DVD/USB (show other bugs)
Hardware: x86 Linux
: High major
Assignee: Gentoo Release Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-23 10:37 UTC by Lech Perczak
Modified: 2007-05-23 19:14 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 Lech Perczak 2007-05-23 10:37:53 UTC
When the LiveCD startup script finds a Linux partition (hdb1, ext3 in my case), it chooses is as a suitable partition type, stops scanning CD-ROMs and in effect the loop image isn't found, exactly as in early 2006.0 media

Reproducible: Always

Steps to Reproduce:
1.Have some kind of Linux installed
2.Boot from Gentoo minimal (i think not only) 2007.0 LiveCD
3.Enjoy!

Actual Results:  
LiveCD tries finding loop image not on it's own filesystem but on found Linux partition

Expected Results:  
It should have found it's loop image, of course ;)

It happens exactly as on early 2006.0 media
Comment 1 Andrew Gaffney (RETIRED) gentoo-dev 2007-05-23 12:32:06 UTC
I do this all the time, and I've never encountered this bug.
Comment 2 Lech Perczak 2007-05-23 16:15:01 UTC
(In reply to comment #1)
> I do this all the time, and I've never encountered this bug.
> 

That's strange, but it really happens for me. Maybe the detection code has changed since 2006.1 which is working. And here is console output

>>Attempting to mount /dev/hda
>>Attempting to mount /dev/hda1
>>Attempting to mount /dev/hdb
>>Attempting to mount /dev/hdb1
>>Media found on /dev/hdb1
>>Loading keymaps
.....
>>Determining root device
>>Determining looptype...
!!Invalid loop location: /image.squashfs
!!Please export LOOP wit a valid location or reboot and pass a proper loop=...
!!kernel command line

And here is the most interesting fragment of /proc/mounts:
/dev/hdb1 /newroot/mnt/cdrom ext3 ro,data=ordered 0,0
I'm using the install-x86-minimal-2007.0-r1.iso image. And as I said, I had same problems with all 2006.0 x86 media, 2006.1 were working fine.
Also it works fine on other machine without Linux partition.
And some about my disks config: there are two hard disks on primary channel and two CD's on secondary channel, so they aren't scanned after hdb1 is mounted. It seems that CD detection code was changed and enables ext3 also to be used instead of iso9660
Comment 3 Chris Gianelloni (RETIRED) gentoo-dev 2007-05-23 17:50:40 UTC
All the code does is look for /livecd on the system.  Do you have a /livecd on your hard drive?  If not, it shouldn't ever match them.  The code was changed to allow for booting from a USB stick (it didn't for 2006.1) but that still requires you to have a /livecd on your system.
Comment 4 Lech Perczak 2007-05-23 19:14:40 UTC
Indeed, I have one. I was working on one compilation and I made such directory. Thanks for tracking it down.