summaryrefslogtreecommitdiffstats
path: root/loader/nfsinstall.c
Commit message (Collapse)AuthorAgeFilesLines
* Completely remove loader/Will Woods2012-02-151-473/+0
| | | | IT IS ACCOMPLISHED.
* Add nfsiso: handling to parseNfsHostPathOptsBrian C. Lane2011-09-301-2/+4
| | | | | This was causing the wrong url to be used when looking for RHUpdates/, updates.img and product.img on an nfs .iso install.
* Check the return value of get_file_list (#741466)Brian C. Lane2011-09-291-1/+1
| | | | | | get_file_list can return a NULL, or a NULL terminated array (which could have the NULL in the first element) so both conditions need to be checked when using the result.
* Move most anaconda mount points to be under /mnt/install.Chris Lumens2011-04-131-22/+22
| | | | | | | /mnt/sysimage stays where it is because that's fairly widely established and known outside anaconda, whereas all these other mount points are private anaconda knowledge. /mnt/source is somewhat widely used, but I have cautioned people about getting used to that.
* Changes for NetworkManager API 0.9Radek Vykydal2011-04-111-1/+1
| | | | Related NM bugs: #672282, #604334
* Fix syntax error from commit 9e696b62.Ales Kozumplik2011-04-041-1/+1
|
* Rewrite nfs url parsing in loaderBrian C. Lane2011-04-011-32/+27
|
* Fix order of nfs mountOpts in promptForNfsBrian C. Lane2011-04-011-1/+1
|
* mount needs to be told "nfs" or it assumes any argument is a device (#678414).Chris Lumens2011-03-291-1/+1
|
* Fixup rindex usage (#678086)Brian C. Lane2011-03-241-1/+1
| | | | | rindex can return a NULL and the strcmp needs to check for .iso otherwise any file without .iso would cause a segfault
* Consolidate ip address checking into functions.Radek Vykydal2011-03-101-2/+1
|
* Clarify that loader method entries are looking for a tree.Chris Lumens2011-02-251-2/+2
| | | | | | We're not looking for the stage2 image anymore, so stop referring to "installation image". Also, there's no prompting to do for rescue mode anymore either.
* Handle nfsiso in promptForNfs as well (#678413).Chris Lumens2011-02-221-1/+67
| | | | | | | The function simply does not know that nfsiso is a thing that can be done so when the source entered in the UI doesn't contain a .treeinfo file, it gives up. Instead, it also needs to try looking for and mounting ISO images.
* If the umount in getFileFromNfs fails, log it.Chris Lumens2011-02-211-2/+4
| | | | Related: rhbz#678414
* Move all kickstart functions into kickstart.c.Chris Lumens2011-01-251-45/+0
| | | | | Running the commands will now require operating on PyObjects, and I don't want to expose that outside of kickstart.c.
* Add some debugging prints.Chris Lumens2010-10-151-0/+2
|
* Remove the unused mountNfsImage and all code that was only called by it.Chris Lumens2010-10-151-193/+0
|
* Rework how image loading works for NFS installs.Chris Lumens2010-10-151-66/+107
| | | | | | Break mountNfsImage apart into the two most useful things it does: (1) Display a UI for getting NFS parameters, and (2) Fetch product.img and updates.img. It is no longer required to get the install.img.
* Pass size of structure not a size of pointer to calloc (#592227)Martin Sivak2010-07-071-1/+1
|
* Move isys and booty into the pyanaconda/ directory, adjust paths to match.Chris Lumens2010-06-281-3/+3
| | | | | | | This is required so the source layout and package layout have a similar enough structure to make our test setup work. Without this move, you can't run "make check" or checkbot without getting error messages about no such module pyanaconda.booty.
* Make sure the product.img directory is mounted before copying (#587696).Chris Lumens2010-05-281-9/+16
| | | | | copyUpdatesImg and copyProductImg require that their argument be mounted and accessible before the copy is performed.
* On NFS installs, look for product.img and updates.img under images/ (#594811).Chris Lumens2010-05-241-6/+2
| | | | | We were previously trying to look for these two up a directory level by trimming off more of the path than needed.
* Fix typo in loader/nfsinstall.cDavid Cantrell2010-05-131-2/+2
| | | | | | : -> ; Related: rhbz#587696
* Look for updates.img and product.img on NFS installs.Chris Lumens2010-05-131-2/+17
| | | | Related: rhbz#587696
* nfs: off by one error leaves extra slash in a path.Ales Kozumplik2010-04-231-1/+1
| | | | makes unpretty log messages.
* nfs: direct mounting of stage2.Ales Kozumplik2010-04-231-1/+31
| | | | | | | | | | The patch allows us to NFS mount an uncompressed directory as stage2 for instance like this: stage2=nfs:10.34.27.9:/pub/pungi/20100407/i386/os/images/squashfs-root During development this is useful because we can avoid lengthy mksquashfs calls.
* move log.c from loader into isys.Ales Kozumplik2010-03-081-1/+1
| | | | | | This is in preparation to use logging from imount.c. We don't want a dependency of isys on loader, instead move logging code into isys and change loader sources to use the log.h header in isys.
* Remove test mode from the loader, too.Chris Lumens2009-12-031-5/+0
| | | | | All previous comments about test mode being untested apply to loader, but doubly so.
* Adds interactive install support for NFS options (#537764)Ales Kozumplik2009-11-191-13/+36
| | | | This is a migration of the patch 22e2548cbb41a0c32fa3a0a2e67e67bbf3109155 from rhel5-branch, BZ#493052.
* Introduces check_asprintf macro that checks asprintfs return value and ↵Ales Kozumplik2009-11-191-93/+32
| | | | | | | | | terminates program in OOM scenarios. This is to avoid having to copy-paste the asprintf-log-abort if branch all the time. This commit also modifies existing asprintf() calls to use the new macro in places where the change wouldn't modify program's semantics.
* Replace all popt use with glib's option parsing code.David Cantrell2009-11-181-14/+18
| | | | | We have glib for other things, so we can use it for option parsing and dump another library dependency.
* Consolidate the parsing of nfs: locations for ks= and stage2= (#529197)Stijn Hoop2009-11-031-22/+30
| | | | | | Makes sure that NFS options can be used in both parameters. Previously this was only parsed for ks= and not for stage2= using two separate code paths. Move this to a shared function in loader/nfsinstall.c.
* getHostAndPath is only used by the nfs code, so move it.Chris Lumens2009-09-301-1/+35
| | | | | Also, rip out all the username/password stuff too. That's not needed for nfs.
* Fix going back from stage1 nfs/url setup dialog.Radek Vykydal2009-08-261-1/+3
| | | | | | | | | | | | | | We need to clear stage2Data when going back so that * we don't sigsegv on it later if we change nfs method to url (and also if we change from url to nfs in case of location specified via ks or boot opts) * we don't try to fetch stage2 from the location in stage2Data right after reselecting the method. Also fixes [C] and [A] from https://www.redhat.com/archives/anaconda-devel-list/2009-August/msg00043.html (sigsegv after going Back when incorrect stage2 url is specified via ks or boot params) which were partly fixed by Jeremy's ad1e95df0e277442a19f7989afe3bd758cfccb47.
* Fix going back from "NFS Setup" screen in stage 1 (#507064)Radek Vykydal2009-08-071-1/+1
|
* Fix a segfault on nfs+kickstartPeter Jones2009-04-281-0/+1
| | | | | | | This fix makes loaderData->stage2Data be initialized unconditionally. Without it, we sometimes get a garbage pointer there, and that results in a segfault (if you're lucky) in mountNfsImage when it tries to use the data.
* Revert "Work around gcc bug #492973"David Cantrell2009-03-311-1/+1
| | | | | | This reverts commit 5a0189827c1c6db21ecbfd01f00ee1f5edbb7a77. gcc-4.4.0-0.31 in rawhide fixes the problem we were seeing.
* Work around gcc bug #492973David Cantrell2009-03-301-1/+1
| | | | | | | | | Problem with -O2 and some string functions with the latest version of gcc in rawhide. Work around the problem for now so we can compile, ideally we can revert this patch in the future. gcc bug: https://bugzilla.redhat.com/show_bug.cgi?id=492973
* If ks=nfs:... is given, don't try to find the file via boot options (#480210).Chris Lumens2009-01-291-66/+68
|
* Allow 'ks' to function as it once did (#471812)David Cantrell2008-12-181-23/+78
| | | | | | | | | This is a much more readable and reasonable patch to restore the 'ks' boot option functionality. The nextserver and bootfile are read from the DHCP option set and used to build the URL to find the kickstart file. [rawhide]
* Do not store mount options in loaderData->instRepo (#467760)David Cantrell2008-11-031-10/+3
| | | | | Mount options are handled elsewhere, we do not need to store them in the instRepo variable.
* Do not test for DNS settings in mountNfsImage()David Cantrell2008-10-091-21/+0
| | | | | | We don't really need to do this anymore because if the user has provided an invalid host, the mount will fail and we pop up the dialog box anyway.
* Do not rely on loaderData->noDns to tell if we have DNS configured.David Cantrell2008-10-061-8/+17
| | | | | | | | | Since we're using NetworkManager, just try things and see if they work. For example, try to do a hostname lookup when mounting the NFS source. If it works, we have working DNS and can move on. If it fails, we can tell the user they are missing DNS information and maybe they'll get the hint to either configure DNS servers or to specify the NFS source using an IP address.
* Set the installation repo when using the askmethod UI (#463472).Chris Lumens2008-10-011-0/+6
|
* Pass family to iface_ip2str() callDavid Cantrell2008-08-281-1/+1
| | | | | iface_ip2str() requires the interface device name and the address family (e.g., AF_INET).
* Renamed loader2 subdirectory to loader (hooray for git)David Cantrell2008-08-251-0/+506