Bug 154945 - Can't install CD2 from different source than CD1
Summary: Can't install CD2 from different source than CD1
Status: RESOLVED INVALID
Alias: None
Product: SUSE Linux 10.1
Classification: openSUSE
Component: Installation (show other bugs)
Version: Beta 6
Hardware: i586 Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Marius Tomaschewski
QA Contact: Klaus Kämpf
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-03 10:32 UTC by Forgotten User mbQyAD5r4K
Modified: 2006-05-12 08:21 UTC (History)
2 users (show)

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
y2log (3.77 MB, text/plain)
2006-03-11 12:47 UTC, Forgotten User mbQyAD5r4K
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Forgotten User mbQyAD5r4K 2006-03-03 10:32:31 UTC
For my test installation I have burned just the CD1 onto the real media and wanted to continue with CD2 right from the ISO image on one of the existing partitions. So far so good - CD1 installed correctly, installer prompted me to swap the media, and offered me "cd:///;dev=/dev/hdb" (more less, I don't recall the exact URL for CD). 

At this stage *I wish* I could enter something like "iso://suse-iso/cd2.iso;dev=/dev/hdb4" but I can't, never mind. Anyway I loopback-mounted the ISO to /tmp/cd2 and used this as the URL. No luck. Tried "file:///tmp/cd2". No luck. Tried to sneak in the loopback device itself (/dev/loop0) as the CDROM device. No luck. The only way that finally worked was replacing the device node /dev/hdb with a duplicate of /dev/loop0. Then it all installed fine. 

The installer simply ignored any changes into the URL and insisted on installing from /dev/hdb. I understand this functionality won't be required by the majority of users but still, the URL dialog is there and should work...
Comment 1 Michael Gross 2006-03-03 11:26:17 UTC
It should.
Please attach the y2logs of this installation (/var/log/YaST2).
Comment 2 Michael Gross 2006-03-09 11:21:32 UTC
Please reopen this bug once you can provide the information. Also consider testing this with Beta7 again.
Comment 3 Forgotten User mbQyAD5r4K 2006-03-11 12:39:48 UTC
All right, tested once again with CD2 loopback-mounted in /tmp/m2. Entering "/tmp/m2" into the URL dialog failed. Entering "file:///tmp/m2/" worked. This is not too intuitive :-/
Will post y2log in a minute...
Comment 4 Forgotten User mbQyAD5r4K 2006-03-11 12:47:17 UTC
Created attachment 72415 [details]
y2log

I haven't played the above described game with hdb/loop0 device nodes again. This is for /tmp/m2 vs file:///tmp/m2/
Comment 5 Klaus Kämpf 2006-03-13 17:50:07 UTC
source handling -> stano
Comment 6 Stanislav Visnovsky 2006-03-22 09:25:39 UTC
/var/adm/YaST/InstSrcManager/tmp/CurrentMedia/suse/setup/slide/txt/en does not exist
2006-03-11 23:46:21 <1> linux(3828) [media] MediaAccess.cc(open):96 Trying scheme 'file'
2006-03-11 23:46:21 <1> linux(3828) [media] MediaDIR.cc(MediaDIR):47 MediaDIR::MediaDIR(file:///tmp/m2/)
2006-03-11 23:46:21 <1> linux(3828) [media] MediaAccess.cc(open):125 Opened: file(file:///tmp/m2/ not attached; localRoot "/tmp/m2")
2006-03-11 23:46:21 <0> linux(3828) [media] MediaManager.cc(open):238 Opened new media access using id 3 to file:///tmp/m2/
2006-03-11 23:46:21 <0> linux(3828) [source] SourceImpl.cc(provideFile):137 ProvideFile exception caught, callback answer: 4
2006-03-11 23:46:21 <0> linux(3828) [source] SourceImpl.cc(provideFile):155 Going to release and attach again
2006-03-11 23:46:21 <0> linux(3828) [media] MediaHandler.cc(release):539 Request to release attached media cdrom</dev/hdb[3,64]>, use count=1
2006-03-11 23:46:21 <0> linux(3828) [media] MediaHandler.cc(release):546 Releasing media cdrom</dev/hdb[3,64]>
2006-03-11 23:46:21 <0> linux(3828) [zypp] ExternalProgram.cc(start_program):166 Executing '/bin/umount' '/var/adm/mount/AP_0x00000001'
2006-03-11 23:46:21 <0> linux(3828) [zypp] ExternalProgram.cc(start_program):276 pid 3990 launched
2006-03-11 23:46:21 <0> linux(3828) [zypp] ExternalProgram.cc(checkStatus):329 pid 3990 successfully completed
2006-03-11 23:46:21 <0> linux(3828) [media] Mount.cc(Status):236 exit code: 0
2006-03-11 23:46:21 <1> linux(3828) [media] Mount.cc(umount):203 unmounted /var/adm/mount/AP_0x00000001
2006-03-11 23:46:21 <1> linux(3828) [media] Mount.cc(~Mount):45 ~Mount()
2006-03-11 23:46:21 <1> linux(3828) [media] Mount.cc(~Mount):52 ~Mount() end
2006-03-11 23:46:21 <0> linux(3828) [media] MediaHandler.cc(removeAttachPoint):109 MediaHandler - checking if to remove attach point
2006-03-11 23:46:21 <0> linux(3828) [zypp] ExternalProgram.cc(start_program):166 recursive_rmdir /var/adm/mount/AP_0x00000001 Executing '/bin/rm' '-rf' '--preserve-root' '--' '/var/adm/mount/AP_0x00000001'
2006-03-11 23:46:21 <0> linux(3828) [zypp] ExternalProgram.cc(start_program):276 pid 3992 launched
2006-03-11 23:46:21 <0> linux(3828) [zypp] ExternalProgram.cc(checkStatus):329 pid 3992 successfully completed
2006-03-11 23:46:21 <0> linux(3828) [zypp] PathInfo.cc(_Log_Result):291 
2006-03-11 23:46:21 <1> linux(3828) [media] MediaHandler.cc(removeAttachPoint):121 Deleted default attach point /var/adm/mount/AP_0x00000001
2006-03-11 23:46:21 <1> linux(3828) [media] MediaHandler.cc(release):574 Released: cd:///?devices=/dev/hdb not attached; localRoot ""
2006-03-11 23:46:21 <0> linux(3828) [media] MediaCD.cc(attachTo):278 next 0 last 0
2006-03-11 23:46:21 <0> linux(3828) [media] MediaCD.cc(attachTo):307 count 0
2006-03-11 23:46:21 <0> linux(3828) [media] MediaCD.cc(closeTray):199 Close tray /dev/hdb
2006-03-11 23:46:21 <0> linux(3828) [media] MediaHandler.cc(createAttachPoint):293 Trying to create attach point in /var/adm/mount
2006-03-11 23:46:21 <0> linux(3828) [zypp] PathInfo.cc(_Log_Result):291 mkdir /var/adm/mount/AP_0x00000001 00755
2006-03-11 23:46:21 <1> linux(3828) [media] MediaHandler.cc(createAttachPoint):270 Created default attach point /var/adm/mount/AP_0x00000001
2006-03-11 23:46:21 <0> linux(3828) [zypp] ExternalProgram.cc(start_program):166 Executing '/bin/mount' '-t' 'iso9660' '-o' 'ro' '/dev/hdb' '/var/adm/mount/AP_0x00000001'
2006-03-11 23:46:21 <0> linux(3828) [zypp] ExternalProgram.cc(start_program):276 pid 3993 launched
2006-03-11 23:46:21 <0> linux(3828) [zypp] ExternalProgram.cc(checkStatus):329 pid 3993 successfully completed
2006-03-11 23:46:21 <0> linux(3828) [media] Mount.cc(Status):236 exit code: 0
2006-03-11 23:46:21 <1> linux(3828) [media] Mount.cc(mount):132 mounted /dev/hdb /var/adm/mount/AP_0x00000001
2006-03-11 23:46:21 <0> linux(3828) [media] MediaHandler.cc(checkAttached):412 Mount table changed - rereading it
2006-03-11 23:46:21 <0> linux(3828) [media] MediaHandler.cc(checkAttached):427 Found media cdrom</dev/hdb[3,64]> in the mount table
2006-03-11 23:46:21 <0> linux(3828) [media] MediaCD.cc(attachTo):402 0 1


Looks like the URL is not redirected properly.
Comment 7 Christian Boltz 2006-03-25 21:18:38 UTC
(In reply to comment #6)
> /var/adm/YaST/InstSrcManager/tmp/CurrentMedia/suse/setup/slide/txt/en does 
> not exist

This message does not only appear when using file:// - I had it with a NFS installation also. See bug 155281 for details and y2logs.
Comment 8 Gerald Pfeifer 2006-04-28 23:42:23 UTC
Michal, can you still reproduce this with the latest RC available?
Comment 9 Forgotten User mbQyAD5r4K 2006-05-01 02:25:24 UTC
Hi Gerald, 

in RC3 the behaviour is still the same as per comment #3, i.e. it _is_ somehow possible to set a different installation source for CD2-5 but the syntax is pretty user unfriendly and unlikely to be successfully guessed (at least for localy loop-mounted ISOs). My wish for the iso://... URL still remains.
Comment 10 Klaus Kämpf 2006-05-01 08:47:24 UTC
Any proposals how to express different kinds of mountable media (nfs, hd, dir, file, cifs, smb) together with iso:// ?

Marius had good reasons to design the iso url as it is.
Comment 11 Forgotten User mbQyAD5r4K 2006-05-01 10:20:08 UTC
How about iso://<path_on_the_filesystem>?dev=<url_of_the_filesystem>
E.g. iso:///suse-iso/dvd.iso?dev=/dev/hdb4 or ?dev=nfs://server/share etc.
Comment 12 Marius Tomaschewski 2006-05-01 10:39:26 UTC
In zypp MediaManager, you can use just:

iso:/?iso=/path/to/CD1.iso

for local iso files, or also the longer/generic format:

iso:/?iso=CD1.iso&url=dir:/path/to

The last one also allows other sources for the iso in the url
parameter: dir (file), hd, nfs, cifs (smb). For example:

iso:/?iso=CD1.iso&url=nfs://server/path/to
iso:/?iso=CD1.iso&url=hd:/?device=/dev/hda

as well as

iso:/?iso=CD1.iso&url=hd:/subdir/on/hdd?device=/dev/hda

See also doxygen documentation of the MediaManager, that
documents all supported media url schemes.
Comment 15 Marius Tomaschewski 2006-05-12 08:21:08 UTC
Closing it - when using correct parameters in iso:/// urls, it works fine.