summaryrefslogtreecommitdiffstats
path: root/loader/driverdisk.c
Commit message (Collapse)AuthorAgeFilesLines
* Completely remove loader/Will Woods2012-02-151-795/+0
| | | | IT IS ACCOMPLISHED.
* Move most anaconda mount points to be under /mnt/install.Chris Lumens2011-04-131-27/+27
| | | | | | | /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.
* remove unused variablesMichal Schmidt2011-02-031-2/+2
| | | | | | | | | | | There were two kinds of unused but set variables: - the really pointless ones - the ones whose only purpose was to silence the warnings about ignoring the return values from functions declared with __attribute__((__warn_unused_result__)) Since gcc 4.5 the warnings can be disabled using -Wno-unused-result, so the variables are no longer necessary. Then -Wno-unused-but-set-variable is an overkill, so drop it.
* Move all kickstart functions into kickstart.c.Chris Lumens2011-01-251-74/+1
| | | | | Running the commands will now require operating on PyObjects, and I don't want to expose that outside of kickstart.c.
* Remove mkdirChain() from isys, use g_mkdir_with_parents()David Cantrell2010-11-101-4/+8
| | | | | | | Replace uses of mkdirChain() with g_mkdir_with_parents() and remove the existing mkdirChain() code from isys/imount.* Added a wrapper function for g_mkdir_with_parents() usage.
* Use libarchive helper functions in explodeRPM()David Cantrell2010-11-101-24/+3
| | | | | | | | Simplify the archive extraction loop in explodeRPM() by using the unpack.c helper functions. Add a new parameter to explodeRPM, the destination to unpack the archive to. This was previously handled by dlabelUnpackRPMDir() directly, but it made more sense to me to move it in to the libarchive unpack helper.
* 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.
* Get rid of mountLoopback and umountLoopback.Chris Lumens2010-10-071-5/+5
| | | | | Since mount can handle mounting files on loopback for us now, there's no reason to continue doing so manually in loader.
* Proper detection of successful module update (#618862)Martin Sivak2010-08-121-6/+12
|
* Show sane non-removable drives too in the DD dialog (#594548)Martin Sivak2010-06-291-5/+5
|
* 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.
* Change the configuration of depmod and link modules to better place (#593941)Martin Sivak2010-05-241-13/+27
| | | | | | Depmod doesn't support absolute paths so far, so we have to use small workaround. COnfigure it to prefer lib/modules/<kernel>/updates and make updates a symlink to /tmp/DD/lib/modules. This way depmod -a should see the modules and modprobe too...
* Use "kernel-modules = version" style for locating rpms providing driver updatesMartin Sivak2010-05-181-8/+11
| | | | | | We used to have kernel-modules-<version> = anything, but we want to change it to make writing spec files more developer friendly. RPM exports the versions under different tag, so we basicly iterate over two arrays at once.. Related: rhbz#508242
* Fix descriptor leak and iteration progress in driverdisc code (#592225)Martin Sivak2010-05-181-1/+2
|
* Fix verification of DDs, we were looking for wrong path (#508242)Martin Sivak2010-05-111-1/+2
|
* Use module reloading in driver disc operations (#590015)Martin Sivak2010-05-071-47/+21
| | | | 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.
* Remove the check for partitions (#508242)Martin Sivak2010-05-071-6/+0
| | | | Backporting this revert from RHEL5 to get support for CD based driverdiscs back. We have to find a cleverer way how to check this as CDs have no partitions.
* Do not crash when getDevices returns NULL (#567939)Martin Sivak2010-03-101-0/+3
|
* Use new API in libblkid to look for driverdiscs on removable devices (#508242)Martin Sivak2010-03-101-0/+3
|
* 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.
* Don't log the size of what we're unpacking anymore.Chris Lumens2010-02-011-5/+1
|
* Fix SIGSEGV in dlabel feature (#556390)Martin Sivak2010-01-201-7/+4
| | | | | | | | g_slist_alloc is only used to create a new entry in the list and it is not needed to initialize the list (it actually inserted an empty item at the beginning of the list). Also use strdup to store a copy of the device name (+ cleanup code)
* Fix the blkid infinite loop. (#555601)Martin Sivak2010-01-151-1/+1
|
* st_size is off64_t on i386, off_t on others.David Cantrell2010-01-081-0/+4
|
* fstat->st_size is a long unsigned int, not a long long unsigned int.David Cantrell2010-01-081-1/+1
|
* Backport the RHEL5 DriverDisc functionalityMartin Sivak2010-01-081-40/+304
| | | | And adapt it to use glib and better string handling functions
* Introduces check_asprintf macro that checks asprintfs return value and ↵Ales Kozumplik2009-11-191-15/+5
| | | | | | | | | 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-21/+32
| | | | | We have glib for other things, so we can use it for option parsing and dump another library dependency.
* libcurl supports https in addition to http, so change our tests.Chris Lumens2009-09-301-1/+1
|
* Edit user-visible dialogs for style.Peter Jones2009-07-131-1/+1
| | | | | We have lots of strings that we display to users which are unclear or contain poor usage and grammar. That's bad.
* Remove driverdisk --type, since mount can figure that out.Chris Lumens2009-06-021-12/+6
|
* Revert "Port the dlabel feature from RHEL5 bug #316481 into Fedora (#436951)"Jeremy Katz2009-01-081-108/+0
| | | | | | This reverts commit 89652b6fbe65e5e7922d743a99b07104d071ef42. This patch was not reviewed on the list and does not fix any emergency build breakage. Thus, per policy is being reverted.
* Port the dlabel feature from RHEL5 bug #316481 into Fedora (#436951)Martin Sivak2009-01-081-0/+108
|
* Use mount -t auto instead of passing a list of valid fstypes (#477328).Chris Lumens2009-01-051-5/+3
|
* Add another mount function that takes a list of fstypes to try.Chris Lumens2008-08-261-29/+19
|
* Renamed loader2 subdirectory to loader (hooray for git)David Cantrell2008-08-251-0/+642