[99503] in RedHat Linux List
install RH5.2 ONTO NFS
daemon@ATHENA.MIT.EDU (Jan Vicherek)
Sun Nov 15 01:17:19 1998
Date: Sun, 15 Nov 1998 01:16:24 -0500 (EST)
From: Jan Vicherek <post-only@ied.com>
To: RedHat mailing list <redhat-list@redhat.com>
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com
This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
Send mail to mime@docserver.cac.washington.edu for more info.
---1463806776-338116616-911110584=:550
Content-Type: TEXT/PLAIN; charset=US-ASCII
Note : please read from the end, like you were reading any good article.
Heyya,
I'm trying to install RH5.2 with CD being mounted via NFS and the root
filesystem is on NFS too !
Please tell me the steps. When I specify in the partition screen that
root "/" is on "nfsroothost:/tftpboot/rh52", it says "You must assign a
root (/) partition to a Linux native partition (ext2)."
Further, why does the installation process *REQUIRE* on my 1/4GB RAM
machine to have a swap partition ?! Is that a bug, or am I missing a
point ?
PLEASE somebody tell me how to install ONTO nfs !
Thanx,
Jan
PS : I do assume that there is a way to install it onto NFS, as I don't
believe that RedHat would be as narrow-minded as to deny users to do NFS
installations.
PS 2 : I've just spent an hour or so tweaking RH5.2 install to stop caring
whether I'm installing onto NFS or not, and whether I have swap or not.
BUT: when I get to install the packages, the doInstall funtion is called
with these params : rootPath = "/mnt", netSharedPath = "/", upgrade = 0.
the /var/lib/rpm directory got created, but no packages.rpm inside.
shoot shoot shoot ! I got it : I've been linking install2 against an old
version of librpm.a !!!! Doh ! OK, now I got the whole thing working.
OK, here is the patch (It's also attached, but I'm not sure whether the
mailing lists archives handle attachments) :
-- Gospel of Jesus is the saving power of God for all who believe --
## To some, nothing is impossible. ##
http://Vicherek.Waterloo.on.ca/
diff -ru old_install/fsedit.c install/fsedit.c
--- old_install/fsedit.c Wed Oct 14 12:27:00 1998
+++ install/fsedit.c Sat Nov 14 23:23:35 1998
@@ -1836,12 +1836,12 @@
*writeChanges = 1;
/* make sure '/' is defined */
status = fdiskIndexPartitionSpec(spec, "/", &i);
- if (!status)
+ /*if (!status)
if (spec->entry[i].partition.type.current !=
LINUX_NATIVE_PARTITION ||
spec->entry[i].status == REQUEST_DENIED)
- status = 1;
-
+ */
+ status = 0;
if (status) {
newtWinMessage(_("No Root Partition"), _("Ok"),
_("You must assign a root (/) "
@@ -1852,6 +1852,7 @@
}
/* make sure some swapspace is defined */
+ /* we don't *need* swap
status = 1;
for (i=0; i < spec->num; i++)
if (spec->entry[i].partition.type.current ==
@@ -1867,7 +1868,7 @@
"partition "
"for the install to proceed."));
continue;
- }
+ } */
}
/* make sure there are no unallocated partitions */
---1463806776-338116616-911110584=:550
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="rh52.nfsinstall.fsedit.patch"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.LNX.4.05.9811150116240.550@ann.ied.com>
Content-Description: RedHat-5.2 install2 patch for install ONTO nfs root
Content-Disposition: attachment; filename="rh52.nfsinstall.fsedit.patch"
ZGlmZiAtcnUgb2xkX2luc3RhbGwvZnNlZGl0LmMgaW5zdGFsbC9mc2VkaXQu
Yw0KLS0tIG9sZF9pbnN0YWxsL2ZzZWRpdC5jCVdlZCBPY3QgMTQgMTI6Mjc6
MDAgMTk5OA0KKysrIGluc3RhbGwvZnNlZGl0LmMJU2F0IE5vdiAxNCAyMzoy
MzozNSAxOTk4DQpAQCAtMTgzNiwxMiArMTgzNiwxMiBAQA0KIAkJCSAgICAq
d3JpdGVDaGFuZ2VzID0gMTsNCiAJCQkgICAgLyogbWFrZSBzdXJlICcvJyBp
cyBkZWZpbmVkICovDQogCQkJICAgIHN0YXR1cyA9IGZkaXNrSW5kZXhQYXJ0
aXRpb25TcGVjKHNwZWMsICIvIiwgJmkpOw0KLQkJCSAgICBpZiAoIXN0YXR1
cykNCisJCQkgICAgLyppZiAoIXN0YXR1cykNCiAJCQkJaWYgKHNwZWMtPmVu
dHJ5W2ldLnBhcnRpdGlvbi50eXBlLmN1cnJlbnQgIT0NCiAJCQkJICAgIExJ
TlVYX05BVElWRV9QQVJUSVRJT04gfHwNCiAJCQkJICAgIHNwZWMtPmVudHJ5
W2ldLnN0YXR1cyA9PSBSRVFVRVNUX0RFTklFRCkNCi0JCQkJICAgIHN0YXR1
cyA9IDE7DQotCQkJICAgIA0KKwkJCSAgICAqLyANCisJCQkJICAgIHN0YXR1
cyA9IDA7DQogCQkJICAgIGlmIChzdGF0dXMpIHsNCiAJCQkJbmV3dFdpbk1l
c3NhZ2UoXygiTm8gUm9vdCBQYXJ0aXRpb24iKSwgXygiT2siKSwNCiAJCQkJ
ICAgICAgXygiWW91IG11c3QgYXNzaWduIGEgcm9vdCAoLykgIg0KQEAgLTE4
NTIsNiArMTg1Miw3IEBADQogCQkJICAgIH0NCiANCiAJCQkgICAgLyogbWFr
ZSBzdXJlIHNvbWUgc3dhcHNwYWNlIGlzIGRlZmluZWQgKi8NCisJCQkgICAg
Lyogd2UgZG9uJ3QgKm5lZWQqIHN3YXANCiAJCQkgICAgc3RhdHVzID0gMTsN
CiAJCQkgICAgZm9yIChpPTA7IGkgPCBzcGVjLT5udW07IGkrKykNCiAJCQkJ
aWYgKHNwZWMtPmVudHJ5W2ldLnBhcnRpdGlvbi50eXBlLmN1cnJlbnQgPT0N
CkBAIC0xODY3LDcgKzE4NjgsNyBAQA0KIAkJCQkJICAgICJwYXJ0aXRpb24g
Ig0KIAkJCQkJICAgICJmb3IgdGhlIGluc3RhbGwgdG8gcHJvY2VlZC4iKSk7
DQogCQkJCWNvbnRpbnVlOw0KLQkJCSAgICB9DQorCQkJICAgIH0gKi8NCiAJ
CQl9DQogDQogCQkJLyogbWFrZSBzdXJlIHRoZXJlIGFyZSBubyB1bmFsbG9j
YXRlZCBwYXJ0aXRpb25zICovDQo=
---1463806776-338116616-911110584=:550--
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com http://archive.redhat.com
To unsubscribe: mail redhat-list-request@redhat.com with
"unsubscribe" as the Subject.