Bug 2107

Summary: When Installing from local hard disk, RedHat directory must be root
Product: [Retired] Red Hat Linux Reporter: Theodore Tso <tytso>
Component: distributionAssignee: Matt Wilson <msw>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 6.0   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 1999-04-15 15:39:46 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Theodore Tso 1999-04-10 05:52:05 UTC
When installing RedHat from a local hard drive, if the
RedHat directory isn't in the root, the install program
will complain that it can't find the RedHat files.
This is because the check for
/tmp/rhimage/RedHat/base/stage2.img in earlymethods.c is
hardcoded, and so it doesn't matter what directory you
select in the dialog box.  If the RedHat directory isn't at
the top-lvel of the hard drive, you will lose.

Fix is to make earlymethods.c take into account the
directory name given by the user when testing to see if
Redhat/base/stage2.img and ReDHat/base/hdlist exist.

Comment 1 Cristian Gafton 1999-04-12 17:05:59 UTC
assigned to msw

Comment 2 Matt Wilson 1999-04-13 18:29:59 UTC
/* the physical device is mounted on /tmp/hdimage, but all
	   access are through /tmp/rhimage which points to the RedHat
	   directory in /tmp/hdimage */

	dest = alloca(strlen(dir) + 20);
	sprintf(dest, "/tmp/hdimage/%s", dir);

        if (symlink(dest, "/tmp/rhimage")) {

Comment 3 Matt Wilson 1999-04-15 15:39:59 UTC
Fixed in my devel tree.

Thanks.