summaryrefslogtreecommitdiffstats
path: root/loader/hdinstall.c
Commit message (Collapse)AuthorAgeFilesLines
* 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-19/+19
| | | | | | | /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.
* 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
* Clarify that loader method entries are looking for a tree.Chris Lumens2011-02-251-5/+5
| | | | | | 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.
* Move all kickstart functions into kickstart.c.Chris Lumens2011-01-251-55/+0
| | | | | Running the commands will now require operating on PyObjects, and I don't want to expose that outside of kickstart.c.
* Use glib for getPartitionsList()David Cantrell2010-10-211-2/+2
| | | | | | Use glib functions to simplify the getPartitionsList() function in loader. Also use the g_strfreev() and g_strv_length() functions to eliminate the need for those equivalent functions in getparts.c.
* Add some debugging prints.Chris Lumens2010-10-151-0/+2
|
* Use parseDeviceAndDir instead of reimplementing the same things two more times.Chris Lumens2010-10-151-39/+20
|
* Rework how image loading works for HD installs.Chris Lumens2010-10-151-142/+116
| | | | | | This is the same as has been previously done for NFS and URL install methods. While I'm at it, add a parseDeviceAndDir convenience function similar to what we've got in nfsinstall.c.
* Get rid of mountLoopback and umountLoopback.Chris Lumens2010-10-071-1/+1
| | | | | Since mount can handle mounting files on loopback for us now, there's no reason to continue doing so manually in loader.
* Pass size of structure not a size of pointer to calloc (#592227)Martin Sivak2010-07-071-1/+1
|
* Add a slash to the path pointing to hdinstall dir (#592154)Martin Sivak2010-06-291-2/+2
|
* Move isys and booty into the pyanaconda/ directory, adjust paths to match.Chris Lumens2010-06-281-4/+4
| | | | | | | 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.
* Set repository in kickstart harddrive command (#592239)Radek Vykydal2010-05-261-0/+9
| | | | | | | | | | | | | | | With the patch, harddrive ks command behaves same as url/nfs commands wrt base repository setting, the case (2) below is fixed: The base repo is set this way: (1) If location ends with .img (e.g --dir=/images/install.img). we use repos from /etc/anaconda.repos.d (release package) Boot parameter repo= can be used to specify the repo. (2) If url/--dir doesn't end with .img (e.g --dir=/) we use it to set base repo location. Boot parameter repo= is overriden in this case.
* Use module reloading in driver disc operations (#590015)Martin Sivak2010-05-071-2/+2
| | | | We have to load all drivers to get access to devices containing driver discs. But when we copy the DD content into RAM, we have to reinitialize those drivers to pick up updated versions.
* Use g_str_has_suffix() to check end of stringDavid Cantrell2010-05-031-2/+2
| | | | | | | | g_strrstr() is not quite what should be used to check if a string ends with a substring. At least not by itself. The g_str_has_suffix() function provides that functionality. Related: rhbz#522064
* Find stage2 install.img on local hd installsDavid Cantrell2010-05-031-20/+27
| | | | | | | | | | If the user does not provide an hd directory that ends with ".img", append "/images/install.img". Use glib string functions consistently throughout the mountHardDrive() function and glib memory functions. Related: rhbz#522064
* Default to /images/install.img if no dir is given in stage2=hd: (#528809)Radek Vykydal2010-04-121-1/+4
| | | | | | | | | | If there is no directory specified in stage2=hd: parameter, /images/install.img location is checked automatically. It fixes installs from boot.iso dd-ed on USB stick. Note that on rhel6, due to askmethod parameter on boot.iso which is only temporary (see http://bugzilla.redhat.com/show_bug.cgi?id=531766#c8), user is asked about stage2 and that from boot.iso is not used automatically.
* 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-3/+0
| | | | | All previous comments about test mode being untested apply to loader, but doubly so.
* Introduces check_asprintf macro that checks asprintfs return value and ↵Ales Kozumplik2009-11-191-36/+14
| | | | | | | | | 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-16/+20
| | | | | We have glib for other things, so we can use it for option parsing and dump another library dependency.
* Fix going back from hd install UI when stage2 is given as boot param (#519206).Radek Vykydal2009-09-171-7/+4
| | | | | | | Prevents SIGSEGV. We need to reinitialize stage2Data here too (as for other methods). Also when going back from Driver Disk Source dialog - go back to hd install dialog instead of going straight to install method dialog.
* No longer force ISOs to be on ext2, ext3, or vfat partitions.Chris Lumens2009-04-171-60/+51
| | | | | This also changes it so the test for testing mode doesn't mean the rest of the function gets indented.
* Fix a segfault when the wrong HDISO repo parameter is given.Chris Lumens2008-10-011-1/+1
|
* Look in images/ for install.img on HDISO (#463474).Chris Lumens2008-09-291-1/+1
|
* Renamed loader2 subdirectory to loader (hooray for git)David Cantrell2008-08-251-0/+519