Jerry Vonau wrote:
Jerry Vonau wrote:
Jerry Vonau wrote:
Jerry Vonau wrote:
Hi All:
How is stage2= suppose to work? For the hdinstall.c in the patch,
if you give "anything" as stage2= then the installer looks for
/mnt/isodir/images/stage2.img to loopback mount,
Well rather than break everything, I'll just break what I was playing
around with. ;-) For the boot prompt, I added a sting input in the
form of stg2= that goes where I was trying to use stage2= as a
string. Well I wonder if rescue mode works... be back later.
Jerry
Well that broke network stuff, this one is better. This one includes
the previous patch with some changes to nfsintall.c (bz438377) and
dropping of the cdinstall.c patch.
Jerry
Think I got it this time, placement in the .h file is everything....
Jerry
With this final patch, reverted the device live, if stg2= is found
/mnt/isodir is remounted /mnt/source. This allows the usbdrive to be a
repo install-tree living in root of the drive. This should allow the
contents of an install iso to be copied to a usbdrive, and used a repo.
Or create your own custom repo, update stage2.img if needed, add an
updates.img image. Making this usbdrive bootable is for another day.
Hope it's useful to someone else,
Jerry
190,193c190,199
< if (!access(stg2path, F_OK)) {
< rc = mountStage2(stg2path, dirName);
< free(dirspec);
< free(path);
---
> if (!access(stg2path, F_OK)) {
> rc = umount("/mnt/isodir");
> logMessage(INFO, "Remounting /mnt/isodir as /mnt/source");
> if (!doPwMount(device, "/mnt/source", *type, "ro"));
> rc = asprintf(&dirspec, "/mnt/source%s", stg2);
> rc = asprintf(&stg2path, "%s/stage2.img", dirspec);
> logMessage(INFO, "Looking for %s on HD", stg2path);
> rc = mountStage2(stg2path, dirName);
> free(dirspec);
> free(path);
200c206
< rc = asprintf(&url, "hd:%s:%s:/%s", device,
---
> rc = asprintf(&url, "hd:%s:%s:/%s", strrchr(device, '/')+1,
226,227c232,233
< rc = asprintf(&url, "hd:%s:%s:/%s", strrchr(device, '/')+1,
< *type, dirName ? dirName : ".");
---
> rc = asprintf(&url, "hd:%s:%s:/%s", strrchr(device, '/')+1,
> *type, dirName ? dirName : ".");
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list