summaryrefslogtreecommitdiffstats
path: root/loader2/method.c
Commit message (Collapse)AuthorAgeFilesLines
* Renamed loader2 subdirectory to loader (hooray for git)David Cantrell2008-08-251-540/+0
|
* When mount fails, pass the error message up to the UI layer.Chris Lumens2008-08-251-9/+9
|
* Support booting from FCP-attached CD/DVD drive on s390 (#184648)David Cantrell2008-07-171-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The s390 can boot El Torito CD or DVD images iff they are attached by zFCP, used as the IPL device, and contain a specially formatted boot image on the disc. IBM provided the tool to combobulate the boot image together and a description of the desired execution path. When you boot on s390, the linuxrc.s390 will look to see if you IPL'ed from a CD or DVD. If you did, it will ask if you also want to install from that device. If you answer yes (y, Y, or any case spelling of 'yes'), the script will bring the IPL device online so the kernel assigns it a device name. Then it skips over the network configuration and starts you in to loader. If you tell it no or did not IPL from a CD or DVD, it'll launch the missiles--wait, no, I mean you get the normal network installation questions before loader starts. I have no way to test this as it requires the following changes: (1) Rel-eng needs to build s390x media with -no-emul-boot and specify the new cdboot.img file on that platform. I have already contacted rel-eng about making this change. (2) I don't have a CD-ROM drive in my mainframe. IBM does and testing is all falling on them. IBM knows this...maybe. I explain all of this like anyone else on the team will ever get a chance to experience it. So there you have it. A letter opener.
* Use %m rather than strerror() where appropriate.Peter Jones2008-07-081-12/+8
|
* Check return value of asprintf() consistentlyDavid Cantrell2008-06-271-2/+6
| | | | | | | | | For instances where the asprintf() was ignored, wrap it in a test to check if it failed. If it failed, log a message and abort. There may be some instances where abort may not be what we want to do, however, we were ignoring the return value completely so if we did get a failure, it would just SIGSEGV. Now it will SIGABRT instead.
* Remove verifyStamp and validIsoImages which are no longer used.Chris Lumens2008-06-181-110/+0
|
* mountStage2 no longer takes a directory argument.Chris Lumens2008-06-181-14/+1
| | | | | This removes the capability to find implicit updates.img files, but that will be coming back in a later patch. This is just some cleanup for now.
* Rename methodData to stage2Data, since that's more appropriate.Chris Lumens2008-06-181-11/+11
|
* 2008-06-04 Ján ONDREJ <ondrejj@salstar.sk> (via ondrejj@fedoraproject.org)Ján ONDREJ2008-06-041-1/+0
| | | | * po/sk.po: Typo fix.
* Work on support for NFSISO installs when using boot.iso.Chris Lumens2008-03-181-3/+8
|
* If a file doesn't exist, don't continue trying to loopback mount it.Chris Lumens2008-03-181-0/+5
|
* Make these error messages more useful.Chris Lumens2008-03-181-1/+4
|
* mount will set up the loopback device if we let it.Chris Lumens2008-03-121-62/+15
|
* mountStage2 now needs to take an extra argument for where updates are.Chris Lumens2008-03-041-5/+12
|
* When mounting stage2 on loopback, add -o loop to mount opts.Chris Lumens2008-02-131-5/+5
|
* Use the mount program instead of our own code.Chris Lumens2008-02-111-9/+9
| | | | | Also change isys's mount function to take its arguments as a string like would be passed to the mount program, instead of a handful of flags.
* Don't use quite so many slashes in path names.Chris Lumens2008-02-041-2/+5
|
* When there are errors mounting loopback images, report them.Chris Lumens2008-01-311-2/+2
|
* Strip /dev from front of error message so it's not misleading.Chris Lumens2008-01-311-1/+1
|
* Clean up typos and other things for GPLv2+ changes.David Cantrell2007-12-171-4/+4
| | | | | | | Shorten 'Red Hat Author(s)' to just 'Author(s)'. Perhaps eventually we'll get an AUTHORS file and will just remove author names from the individual files. Also fixed a type in scripts/dumphdrlist.py where Author was listed twice.
* GPLv2+ boilerplates for loader2/ source files.David Cantrell2007-12-171-9/+15
|
* Use libcheckisomd5 from standalone isomd5sum packageJeremy Katz2007-12-101-1/+1
| | | | | | Switch to using the libcheckisomd5 library from the standalone isomd5sum package. Note that we also now always check and don't differentiate "supported" ISOs any more
* Merge the FTP and HTTP methods into a single URL method.Chris Lumens2007-12-071-1/+1
| | | | | | | This removes the separate FTP and HTTP network method dialogs in the loader and replaces them with a single configuration dialog that asks the user to input a URL. It also modified the secondary config screen to prompt just for a proxy and simplifies a lot of the conversion from URL to UI and back.
* Adjust to new udev world. Use actual device names, not /tmp/<whatever>.Bill Nottingham2007-12-071-40/+29
|
* remove duplicate lineBill Nottingham2007-11-301-2/+0
|
* Explicitly set mountOpts to NULL.Chris Lumens2007-11-131-0/+2
|
* - remove sdupprintf(), use asprintf() instead.Peter Jones2007-10-221-1/+2
|
* - fix some missing close(), gunzip_close(), and munmap() callsPeter Jones2007-10-191-0/+1
| | | | - fix handling of EINTR from init_module(2)
* Same change you just saw on rhel5-branch ported to the HEAD branch.David Cantrell2007-08-061-1/+1
|
* Move copyDirectory out of both init.c and method.c.Chris Lumens2007-06-191-71/+10
|
* 2007-01-18 Jeremy Katz <katzj@redhat.com>Jeremy Katz2007-01-181-1/+1
| | | | * loader2/method.c (unpackCpioBall): Fix the build
* * loader2/method.c (unpackCpioBall): new function to unpack adlehman2007-01-171-0/+35
| | | | | | | cpio ball into a specified root directory * loader2/method.c (copyUpdatesImg): if the updates can't be mounted try unpacking them as a cpio ball
* - fix http vs ftp testPeter Jones2006-07-291-1/+1
|
* 2006-07-27 Jeremy Katz <katzj@redhat.com>Jeremy Katz2006-07-281-0/+2
| | | | | | * anaconda.spec: Bump version. * loader2/method.c: Fix build on s390
* * loader2/cdinstall.c: loaderData->method is now an int.David Cantrell2006-07-271-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * loader2/hdinstall.c: Whitespace consistency, loaderData->method is now an int. * loader2/loader.c (doLoaderMain): loaderData->method is now an int, pass methodNum to readNetConfig(). * loader2/loader.h: char * method -> int method. * loader2/method.c: Set loaderData->method to appropriate METHOD_ value since it's now an int. * loader2/method.h: Add METHOD_* macros. * loader2/net.c (cidrCallback): Dialog wording change. * loader2/net.c (readNetConfig): Take methodNum as a param, pass methodNum to configureTCPIP(). * loader2/net.c (configureTCPIP): Take methodNum as a param, if user selects METHOD_NFS and unchecks IPv4, display error dialog and ask user to try again. * loader2/net.c (kickstartNetworkUp): Pass methodNum to readNetConfig(). * loader2/net.h: Prototype updates. * loader2/nfsinstall.c: loaderData->method is now an int. * loader2/urlinstall.c: loaderData->method is now an int.
* * loader2/urls.c (urlinstStartTransfer): Determine address familyDavid Cantrell2006-07-261-5/+4
| | | | | | | | | | | | | | | | | | and pass that to the ftpOpen() call. * urlinstall.py (UrlInstallMethod.__init__): Use urlparse. * isys/dns.c, isys/dns.h: Updated for IPv6 support. * loader2/Makefile: Cleanups. * loader2/ftp.c, loader2/ftp.h: Updated for IPv6 support. * loader2/loader.c: Whitespace consistency. * loader2/method.c: Whitespace consistency. * loader2/urls.c: Updated for IPv6 support.
* 2006-07-03 Jeremy Katz <katzj@redhat.com>Jeremy Katz2006-07-041-1/+3
| | | | | * loader2/method.c (getFileFromBlockDevice): Give a message if we fail to make the device node for some reason (markmc, #197514)
* 2006-06-30 Jeremy Katz <katzj@redhat.com>Jeremy Katz2006-06-301-8/+3
| | | | | | | | | | * scripts/mk-images: Move second stage images to images/ dir. * image.py: Adjust for stage2 in images/ * loader2/cdinstall.c: Likewise. * loader2/hdinstall.c: Likewise. * loader2/method.c: Likewise. * loader2/nfsinstall.c: Likewise. * loader2/urlinstall.c: Likewise.
* Make the boot flags variable global. We don't need to pass it (or a pointer ↵David Cantrell2006-06-121-2/+5
| | | | to it) all over the place.
* 2005-12-01 Jeremy Katz <katzj@redhat.com>Jeremy Katz2005-12-011-0/+2
| | | | | | * loader2/loader.c (main): Load squashfs. * loader2/method.c (mountLoopback): Try to mount squashfs too.
* 2005-11-09 Jeremy Katz <katzj@redhat.com>Jeremy Katz2005-11-091-7/+7
| | | | | | | | | | | | | | | | | | | * loader2/driverdisk.c: Clean up log levels. * loader2/firewire.c: Likewise. * loader2/hardware.c: Likewise. * loader2/hdinstall.c: Likewise. * loader2/lang.c: Likewise. * loader2/loader.c: Likewise. * loader2/log.h: Likewise. * loader2/mediacheck.c: Likewise. * loader2/method.c: Likewise. * loader2/modstubs.c: Likewise. * loader2/modules.c: Likewise. * loader2/net.c: Likewise. * loader2/nfsinstall.c: Likewise. * loader2/pcmcia.c: Likewise. * loader2/urls.c: Likewise. * loader2/usb.c: Likewise.
* 2005-10-20 Jeremy Katz <katzj@redhat.com>Jeremy Katz2005-10-201-1/+1
| | | | | | | | | | | | | * anaconda.spec: Bump version. * loader2/urlinstall.c (loadUrlImages): minstg2.img instead of netstg2.img * loader2/hdinstall.c (mountHDImages): minstg2.img instead of hdstg2.img * loader2/method.c (validIsoImages): Look for stage2.img instead of hdstg2.img * scripts/mk-images: mkcramfs is now mkfs.cramfs
* 2005-09-15 Jeremy Katz <katzj@redhat.com>Jeremy Katz2005-09-151-13/+8
| | | | | | | | | | | | | | | | * isys/imount.c (doPwMount): Make arguments for doPwMount simpler. Use a bitmask of flags and pass extra data like mount(2). Use flags for nfs and pass arguments onto nfsmount(). Kill some dead code. * isys/imount.c (doPwMount): Update prototype, add constants. * isys/isys.c (doMount): Update for new API. * loader2/cdinstall.c: Likewise. * loader2/driverdisk.c: Likewise. * loader2/hdinstall.c: Likewise. * loader2/loader.c: Likewise. * loader2/method.c: Likewise. * loader2/nfsinstall.c: Likewise. * loader2/usb.c: Likewise.
* Support logging levels in the loader just like in the python parts of theChris Lumens2005-08-131-30/+33
| | | | | | installer. Also make the output look the same. This isn't going to be nearly as sophisticated as the python logging module, but it will at least behave similarly with command line options.
* The arch could be up to 65 characters, a little more storage couldn'tBill Nottingham2005-05-181-4/+4
| | | | hurt.
* Add arch to buildstamp and check it. (#151927)Bill Nottingham2005-05-181-5/+5
|
* Don't overflow the buffer when copying over image location in case loopbackChris Lumens2005-04-261-1/+2
| | | | images are buried (#154715).
* 2005-04-16 Jeremy Katz <katzj@redhat.com>Jeremy Katz2005-04-171-1/+1
| | | | | | | | | | | | * loader2/kickstart.c: Allow specifying 'mediacheck' in ks.cfg to specify mediacheck. * loader2/kickstart.h: Define constant. * kickstart.py (KickstartBase.readKickstart): Define no-op for 'mediacheck' keyword for stage2 * loader2/method.c (queryIsoMediaCheck): Allow mediacheck for kickstart if 'mediacheck' passed on the command line. (#116429) * loader2/cdinstall.c (queryCDMediaCheck): Likewise.
* 2005-03-29 Jeremy Katz <katzj@redhat.com>Jeremy Katz2005-03-291-2/+2
| | | | | | | * text.py (stepToClasses): Remove silo stuff. * gui.py (stepToClasses): Likewise. * iw/silo_gui.py: Remove. * textw/silo_text.py: Remove.
* Unmount the loopback mounted ISO image to free up the loopback device forChris Lumens2005-03-111-1/+1
| | | | later use (#150887).