| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
| |
/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.
|
|
|
|
|
| |
rindex can return a NULL and the strcmp needs to check for .iso
otherwise any file without .iso would cause a segfault
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
Running the commands will now require operating on PyObjects, and I don't
want to expose that outside of kickstart.c.
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
Since mount can handle mounting files on loopback for us now, there's no
reason to continue doing so manually in loader.
|
| |
|
| |
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
All previous comments about test mode being untested apply to loader, but
doubly so.
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
We have glib for other things, so we can use it for option parsing and
dump another library dependency.
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
This also changes it so the test for testing mode doesn't mean the rest of
the function gets indented.
|
| |
|
| |
|
|
|